- 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).
brew update > /dev/null || true
brew install cmake --without-docs
brew install hdf5
brew install tbb
brew install eigen
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.
- Clone the CADET source code
git clone https://github.com/modsim/CADET.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