CMake Build Options - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English
Table 7.1 AOCL-DA - CMake Build Options#

Build Option

Feature

BUILD_ILP_64

  • ON: build with 64-bit integers

  • OFF (default): build with 32-bit integers

BUILD_SMP

  • ON (default): build with OpenMP and link to threaded BLAS and LAPACK libraries

  • OFF: build in serial and link to serial BLAS and LAPACK

BUILD_EXAMPLES

  • ON (default): compile the example programs

  • OFF: ignore the example programs

BUILD_GTEST

  • ON (default): compile the test programs

  • OFF: ignore the test programs

Note: to run the programs use the ctest command

BUILD_SHARED_LIBS

  • ON: shared library build

  • OFF (default): static library build

Note: for Python wheel, a shared library build is necessary

BUILD_PYTHON

  • ON: build the Python interfaces

  • OFF (default): do not build Python interfaces

Note: a shared library build is necessary for Python interfaces

BUILD_FORTRAN

  • ON (default): build the Fortran dependencies

  • OFF: do not build Fortran dependencies (useful if you do not have access to a Fortran compiler)

CMAKE_AOCL_ROOT

Specify a location for the AOCL libraries, overriding the AOCL_ROOT environment variable

ARCH

Sets the -march flag to target a specific Zen generation (e.g., znver5). Setting -DARCH=dynamic will build the library with dynamic dispatch enabled (see the Tuning Guide for further details). Set -DARCH=native for a native build.