Testing the MIVisionX installation

Testing the MIVisionX installation#

The MIVisionX test suite is available in the MIVisionX GitHub repository and covers core OpenVX (API, conformance, GDF, and vision tests) and the AMD RPP extension.

Using ctest#

After a source build, run the full test suite from the build directory:

cd build-hip   # or build-ocl / build-cpu
make test

After installing the mivisionx-test package, verify the installation using:

mkdir mivisionx-test && cd mivisionx-test
cmake /opt/rocm/share/mivisionx/test/
ctest -VV

Verifying with a sample#

Use RunVX to run the Canny edge detection sample as a quick smoke test:

export PATH=$PATH:/opt/rocm/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rocm/lib
runvx /opt/rocm/share/mivisionx/samples/gdf/canny.gdf

OpenVX conformance tests#

To run the full Khronos OpenVX 1.3 conformance test suite against MIVisionX:

python tests/openvx_conformance_tests/runConformanceTests.py --backend_type HOST

See tests/openvx_conformance_tests/README.md for all available options including --backend_type HIP, --backend_type OCL, and --jobs.