MIVisionX prerequisites

MIVisionX prerequisites#

MIVisionX can be used with or without ROCm.

MIVisionX on ROCm requires ROCm running on an accelerators based on the CDNA architecture installed with the AMDGPU installer and the rocm usecase:

sudo amdgpu-install --usecase=rocm

MIVisionX can be installed on the following operating systems:

  • Ubuntu 22.04 or 24.04

  • RHEL 8 or 9

  • SLES 15-SP5

  • Microsoft Windows 10 or 11

  • macOS 13 Ventura and later

Building MIVisionX from source on Linux requires CMake Version 3.10 or later, AMD Clang++ Version 18.0.0 or later, and the following compiler support:

  • C++17

  • OpenMP

  • Threads

When building MIVisionX from source on Linux, the MIVisionX-setup.py Python script can be used to install prerequisites:

MIVisionX-setup.py [-h]   [--directory DIRECTORY; default: ~/]
                          [--opencv OpenCV_VERSION; default: 4.6.0]
                          [--ffmpeg {ON|OFF}; default: ON]
                          [--amd_rpp {ON|OFF}; default: ON]
                          [--neural_net {ON|OFF}; default: ON]
                          [--inference {ON|OFF}; default: ON]
                          [--developer {ON|OFF}; default:OFF]
                          [--reinstall {ON|OFF}; default:OFF]
                          [--backend {HIP|OCL|CPU}]
                          [--rocm_path ROCM_PATH; default: /opt/rocm]
directory: The user home directory.
opencv: The OpenCV version to install.
ffmpeg: Install the required FFMpeg libraries.
amd_rpp: Install the packages needed to install and use RPP.
neural_net: Install the packages needed to install and use neural net.
inference: Install the packages needed to install and use neural net inference.
developer: Use the developer options.
reinstall: Remove the previous dependency installations and install new dependencies.
backend: Specifies the backend to use.
rocm_path: The ROCm installation path.

Note

libstdc++-12-dev isn’t installed by the setup script and must be installed manually on Ubuntu 22.04 only.

The following prerequisites are required and are installed with both the Linux package installer and the setup script:

Note

libavcodec-dev, libavformat-dev, libavutil-dev, and libswscale-dev are the only FFmpeg libraries required by MIVisionX. They’re installed by default with the setup script and by the package installers.