Building AOCL-BLAS Using Command-Line Arguments - 5.2 English - 57404

AOCL User Guide (57404)

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

The project configuration and build procedures can be triggered from the command prompt as well. The corresponding steps are described in the following sections.

Configuring the Project in Command Prompt

In the AOCL-BLAS project folder, create a folder out. Open the command prompt in this directory and run the following command to configure the project:

$ cmake -S .. -B . -G "Visual Studio 17 2022"
-DCMAKE_BUILD_TYPE=Release
-DBLIS_CONFIG_FAMILY=amdzen -DBUILD_SHARED_LIBS=ON
-DENABLE_THREADING=openmp
-DCOMPLEX_RETURN=intel -DOpenMP_libomp_LIBRARY="C:\Program
Files\LLVM\lib\libomp.lib" -TClangCL

You can refer CMake Config Options and update the parameter options in the command according to the project requirements or run the following command for a detailed description of the available options:

$ cmake -S .. -B . -G "Visual Studio 17 2022" -DPRINT_CONFIGURE_HELP=ON

Building the Project in Command Prompt

Open command prompt in the blis\out directory. Invoke CMake with the build command with release or debug option. For example:

$ cmake --build . --config Release

For building the library using multiple threads, run the following command:

$ cmake --build . --config Release -j

The library files would be generated in the Release or Debug folder based on the project settings.