AOCL-DA requires Fortran runtime libraries for linking, so prior to
compiling you will need to source the ifort compiler using, e.g.,
C:\Program Files (x86)\Intel\oneAPI\setvars.bat.
The following command can then be used to compile and link with the cl compiler.
cl <example_name>.cpp /I \<path to aocl-da headers>\include\<INT_LIB>
/EHsc /MD
\<path to>\aocl-da\lib\<INT_LIB>\aocl-da.lib
\<path to>\amd-sparse\lib\<INT_LIB>\aoclsparse.lib
\<path to>\amd-libflame\lib\<INT_LIB>\AOCL-LibFlame-Win-MT-dll.lib
\<path to>\amd-blis\lib\<INT_LIB>\AOCL-LibBlis-Win-MT-dll.lib
\<path to>\amd-utils\lib\libaoclutils.lib /openmp:llvm
The same command should work with cl replaced by clang-cl (in which case simply use /openmp) and linking statically using /MT
Note that if you have built the library from source with -DBUILD_FORTRAN=OFF
then there is no need to link any Fortran runtime libraries.