AOCL-RNG should be installed as instructed in Using Prebuilt Binaries.
Complete the following steps to use AOCL-RNG library on Windows:
Create a
64-bit console appproject inVisual Studio 17 2022.Use the following navigation to select
Clang-clcompiler:Project > Properties > Configuration Properties > General > Platform Toolset > LLVM(Clang-cl)Use
get_random.cas a reference application.Copy the AOCL-RNG header file
rng.hand AOCL-RNG dll libraryrng_amd.dllandrng_amd.libto the same project folder.Copy AOCL-LibM DLL library
libalm.dllandlibalm.libto the same project folder.Copy AOCL-BLAS single-threaded DLL library
AOCL-LibBlis-Win-dll.dllandAOCL-LibBlis-Win-dll.libto the same project folder.Use the following navigation to add
WIN64preprocessor definition:Project > Properties > C/C++ > Preprocessor > Preprocessor DefinitionsCompile and then run the application.
You may create Fortran based project in similar manner and compile it using ifort compiler.
You can also compile your application using AOCL-RNG static library
rng_amd-static.lib.