Building from Source on Windows - 5.2 English - 57404

AOCL User Guide (57404)

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

On Windows, the clang-cl compiler is supported along with the Intel Fortran compiler. The following steps are required to build AOCL-DA from source.

  1. In an MSVC terminal use C:\Program Files (x86)\Intel\oneAPI\setvars.bat to enable the Intel Fortran compiler to be found.

  2. For Python builds, set the environment variable CMAKE_PREFIX_PATH to point to the folder site-packages\pybind11\share\cmake\pybind11 within your Python installation.

  3. Run the CMake configure step using one of the following commands together with any of the options in the table in the next section:

    • cmake -T ClangCL -DCMAKE_Fortran_COMPILER=ifort

    • cmake -G Ninja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=ifort ..

  4. Run the CMake build step using either

    • devenv .\AOCL-DA.sln /build "Debug" or "Release" for using MSVC build system

    • cmake -build . --target all/install --config Release/Debug for e.g. Ninja

  5. Optionally, install the Python wheel.