Building and installing rocJPEG from source code

Building and installing rocJPEG from source code#

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

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

cd rocm-systems/projects/rocjpeg

Build and install rocJPEG using the following commands:

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

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

To run the installed CTest-based verification:

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

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