Multi-Thread AOCL - 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 install a multi-thread AOCL:

  1. Clone the AOCL from Git repository (amd/aocl.git).

    $ git clone https://github.com/amd/aocl.git
    $ cd aocl
    
  2. Configure the library as required:

    # CMake commands
    
    # GCC (Default) and LP64
    $ cmake --preset aocl-linux-make-lp-ga-gcc-config --fresh
    
    # GCC and ILP64
    $ cmake --preset aocl-linux-make-ilp-ga-gcc-config --fresh
    
    # AOCC and LP64
    $ cmake --preset aocl-linux-make-lp-ga-aocc-config --fresh
    
    # AOCC and ILP64
    $ cmake --preset aocl-linux-make-ilp-ga-aocc-config --fresh
    
    # GCC (Default) and LP64 with Desired OpenMP library Path
    $ cmake --preset aocl-linux-make-lp-ga-gcc-config --fresh -DOpenMP_libomp_LIBRARY=<path to OpenMP library>
    
  3. Build the unified binary and install using the command:

    $ cmake --build build --config Release -j --target install