There are multiple CMake options you can configure. The following sections explain the CMake options to:
Include or exclude individual AOCL libraries (see CMake Options to Select Libraries).
Provide the source code for the selected libraries by using one of the following options:
Setting the path of the AOCL libraries source code (see CMake Options to Set Library Source Path)
Setting the GIT repository and tag or branch name (see CMake Options to Set GIT Repository and Tag/Branch)
Static or Shared Library:
Static Library
-DBUILD_SHARED_LIBS=OFFShared Library
-DBUILD_SHARED_LIBS=ON(default)
Select Data Type (LP64 or ILP64):
LP64
-DENABLE_ILP64=OFF(default)ILP64
-DENABLE_ILP64=ON
Enable or disable threading:
Multithreading
-DENABLE_MULTITHREADING=ONSingle threading
-DENABLE_MULTITHREADING=OFF(default)
Link Desired OpenMP library using
-DOpenMP_libomp_LIBRARY=<path to OpenMP library>when,-DENABLE_MULTITHREADING=ON.
Here is an example of a configuration command:
Linux
$ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
-DENABLE_ILP64=OFF -DENABLE_AOCL_BLAS=ON -DENABLE_AOCL_UTILS=ON
-DENABLE_AOCL_LAPACK=ON -DENABLE_MULTITHREADING=ON -DOpenMP_libomp_LIBRARY=""
-DCMAKE_INSTALL_PREFIX=$PWD/install_package
Windows
$ cmake -S . -B build -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release
-DBUILD_SHARED_LIBS=OFF -DENABLE_ILP64=OFF -DENABLE_AOCL_BLAS=ON
-DENABLE_AOCL_UTILS=ON -DENABLE_AOCL_LAPACK=ON -DENABLE_MULTITHREADING=ON
-TClangCl -DCMAKE_INSTALL_PREFIX=%CD%/install_package
-DCMAKE_CONFIGURATION_TYPES=Release