Skip to content
Kiriti Gowda edited this page Sep 20, 2023 · 3 revisions

MIVisionX CTest

Build, Install & Test

Use the below commands to set up and build MIVisionX

Clone Project

git clone https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX.git

Note: MIVisionX has support for two GPU backends: OPENCL and HIP:

Instructions for building MIVisionX with the HIP GPU backend (i.e., default GPU backend):

  • run the setup script to install all the dependencies required by the HIP GPU backend:
python MIVisionX/MIVisionX-setup.py
  • run the below commands to build MIVisionX with the HIP GPU backend:
mkdir build-hip
cd build-hip
cmake ../MIVisionX
make -j8
sudo cmake --build . --target PyPackageInstall
sudo make install

Run tests

make test

NOTE: run tests with verbose option make test ARGS="-VV"

CTest Options

Use below commands in the MIVisionX build directory

List All Test Names

ctest -N

Run Individual Tests

ctest -R TEST_NAME_TO_RUN

NOTE: Run test with verbose option ctest -R TEST_NAME_TO_RUN -VV

Run All Tests

ctest

NOTE: Run tests with verbose option ctest -VV

Clone this wiki locally