Complete the following steps to build AOCL-Compression from source:
Download the AOCL-Compression source package from GitHub (amd/aocl-compression).
Follow the steps in the
READMEfile to build the library and test bench for Linux.To build the library with multi-threaded support, set the CMake build option
AOCL_ENABLE_THREADS=ON. The library uses OpenMP for multi-threaded support. Maximum numbers of threads to use can be set using the environment variableOMP_NUM_THREADS. To run the library built withAOCL_ENABLE_THREADS=ONin single threaded mode, setOMP_NUM_THREADS=1.Refer to the section Optional Build Parameters for the complete list of supported CMake build options.
It is recommended that applications use the unified APIs of the library over the native APIs for ease of integration and minimal code modifications required for addition of new compression methods.