AMD OpenVX installation

Contents

AMD OpenVX installation#

AMD OpenVX is built as part of the top-level MIVisionX CMake project. Build MIVisionX to produce libopenvx.so and libvxu.so.

Prerequisites#

  • CPU: AMD64

  • GPU: AMD Radeon Graphics [optional]

Refer to openvx/include/VX for the Khronos OpenVX standard headers and to openvx/include/vx_ext_amd.h for AMD vendor extensions.

Note

The AMD GPU HIP backend is not supported on Windows. On Windows the default backend is OpenCL.

Build#

Build from the MIVisionX repository root. Optionally install OpenCV to enable RunVX camera capture and image display (set OpenCV_DIR to the OpenCV/build folder).

git clone https://github.com/ROCm/MIVisionX.git
cd MIVisionX
cmake -B build               # HIP backend (default on Linux); add -DBACKEND=OCL for OpenCL, -DGPU_SUPPORT=OFF for CPU
cmake --build build --config Release
sudo cmake --install build