To use AOCL-Sparse in your application, compile your source with C or
C++ compiler including the AOCL-Sparse header files
(-I$SPARSE_ROOT/include). If 64-bit integers are used, define the
appropriate macro (-Daoclsparse_ILP64). Afterwards, link the objects
with C++ linker to the AOCL-Sparse library, dependencies (libflame,
libblis, and libaoclutils in that order), and pthreads library. You
must match the size of integers for the dependency libraries (LP64
versus ILP64). If multi-threaded library is used, appropriate
compiler flags must be defined and the corresponding dependent
libraries must be linked. Either static or shared libraries can be
used. In the case of shared libraries, you must set their location in
LD_LIBRARY_PATH before running the resulting executables.
The following sections provide commands to manually build two sample
programs from AOCL-Sparse examples directory (tests/examples) in
two different scenarios.