14.2.2. On Windows - 5.2 English - 57404

AOCL User Guide (57404)

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

AOCL-RNG should be installed as instructed in Using Prebuilt Binaries.

Complete the following steps to use AOCL-RNG library on Windows:

  1. Create a 64-bit console app project in Visual Studio 17 2022.

  2. Use the following navigation to select Clang-cl compiler: Project > Properties > Configuration Properties > General > Platform Toolset > LLVM(Clang-cl)

  3. Use get_random.c as a reference application.

  4. Copy the AOCL-RNG header file rng.h and AOCL-RNG dll library rng_amd.dll and rng_amd.lib to the same project folder.

  5. Copy AOCL-LibM DLL library libalm.dll and libalm.lib to the same project folder.

  6. Copy AOCL-BLAS single-threaded DLL library AOCL-LibBlis-Win-dll.dll and AOCL-LibBlis-Win-dll.lib to the same project folder.

  7. Use the following navigation to add WIN64 preprocessor definition: Project > Properties > C/C++ > Preprocessor > Preprocessor Definitions

  8. Compile and then run the application.

  9. You may create Fortran based project in similar manner and compile it using ifort compiler.

  10. You can also compile your application using AOCL-RNG static library rng_amd-static.lib.