Your library installation comes with several example programs demonstrating the use of the AOCL-DA C APIs. These are found in the examples folder within your AOCL-DA installation. For C++ users, an additional header file, aoclda_cpp_overloads.hpp, is available in the include folder of your installation, containing APIs which use templates and function overloading to remove the reference to explicit floating-point types.
To use AOCL-DA in your application, compile your code with a C or C++ compiler, including the AOCL-DA header files aoclda.h or aoclda_cpp_overloads.hpp (these are located in the include folder of your installation), then link the objects to the AOCL-DA library, along with its dependences aoclsparse, libflame, libblis, libaoclutils, a fortran runtime and openmp.
The following subsections provide some explicit commands to manually build and link programs calling AOCL-DA on the command line. Note that INT_LIB is either LP64 or ILP64 for 32 and 64 bit integers respectively and if ILP64 libraries are used, the macro AOCLDA_ILP64 needs to be defined in your compilation step.
If you prefer to build using CMake, you may refer to the CMakeLists.txt example in the examples folder of your installation.