Building and installing rocDecode from source code

Building and installing rocDecode from source code#

rocDecode is delivered as part of TheRock. For TheRock installation details, refer to the TheRock documentation.

To build rocDecode standalone from source, clone the rocDecode project and change to the project directory:

cd rocm-systems/projects/rocdecode

Build and install rocDecode using the following commands:

mkdir build && cd build
cmake ../
make -j8
sudo make install

After installation, the rocDecode libraries will be copied to /opt/rocm/lib and the rocDecode header files will be copied to /opt/rocm/include/rocdecode.

To run the installed CTest-based verification:

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

Run make test to test your build. To run the test with the verbose option, run make test ARGS="-VV".