Building the C++ library
The following section describes building the AMICI C++ library:
CBLAS compatible BLAS library
a C++17 compatible compiler
a C compiler
Optional: * HDF5 libraries * boost for serialization
To use AMICI from C++, run the
./scripts/buildSuiteSparse.sh ./scripts/buildSundials.sh ./scripts/buildAmici.sh
script to build the AMICI library.
On some systems, the CMake executable may be named something
cmake. In this case, set the
CMAKE environment variable
to the correct name (e.g.
export CMAKE=cmake3, in case you have CMake
The static library can then be linked from
In CMake-based packages, amici can be linked via
For further usage, consult the AMICI C++ interface documentation.
Supported CBLAS libraries
The C++ interfaces require a system installation of a CBLAS-compatible Basic Linear Algebra Subprograms (BLAS) library. AMICI has been tested with various implementations such as Accelerate, Intel MKL, cblas, openblas and atlas.
Optional SuperLU_MT support
To build AMICI with SuperLU_MT support, run
./scripts/buildSuperLUMT.sh ./scripts/buildSundials.sh cd build/ cmake -DSUNDIALS_SUPERLUMT_ENABLE=ON .. make