You're reading an old version of this documentation. For the latest released version, please have a look at v5.0.1.
Build for OSX¶
Prerequisites¶
CMake (>= 3.12.0)
GCC >= 7.0, Clang >= 3.9, or Intel C++ 18.0
Optional: Git
Assumed directory structure:
|- CADET | - src | - include | - [...] | - build | - install
Note that the version numbers of the files and packages below are subject to change and will not always reflect the most recent version.
Also note that you have to use the same compiler for all packages. This is especially important if some of the packages are installed via a package manager such as Homebrew which uses the system compiler (Clang).
Build dependencies¶
brew update > /dev/null || true
brew install cmake --without-docs
brew install hdf5
brew install tbb
brew install eigen
LAPACK¶
You can either use the native LAPACK implementation provided by Mac OS X (vecLib, Accelerate) or install the freely available Intel MKL which is very fast and probably faster than Accelerate.
Build CADET¶
Clone the CADET source code
git clone https://github.com/cadet/cadet-core.git CADET
Create the directories
CADET/build
andCADET/install
If using Intel MKL, execute
export MKLROOT=/opt/intel/mkl
Using standard LAPACK: Execute
cmake -DCMAKE_INSTALL_PREFIX="<ROOT>/install" ../
Using MKL (sequential): Execute
cmake -DCMAKE_INSTALL_PREFIX="<ROOT>/install" -DBLA_VENDOR=Intel10_64lp_seq ../
Using MKL (parallel): Execute
cmake -DCMAKE_INSTALL_PREFIX="<ROOT>/install" -DBLA_VENDOR=Intel10_64lp ../
Execute
make
Execute
make install