5.1.2. Building from Source on Linux - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English

Complete the following steps to build AOCL-Compression from source:

  1. Download the AOCL-Compression source package from GitHub (amd/aocl-compression).

  2. Follow the steps in the README file to build the library and test bench for Linux.

  3. 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 variable OMP_NUM_THREADS. To run the library built with AOCL_ENABLE_THREADS=ON in single threaded mode, set OMP_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.