Armadillo http://arma.sourceforge.net/ is C++ linear algebra library that is needed to support some other software stacks. To get best performance using MKL as backend is adviced.
The challenge is that default installer does not find MKL from non-standard location.
module load mkl
Edit “./build_aux/cmake/Modules/ARMA_FindMKL.cmake” and add MKL path to “PATHS”
Edit “./build_aux/cmake/Modules/ARMA_FindMKL.cmake” and replace mkl_intel_thread with mkl_sequential (we do not want threaded libs on the cluster)
Edit “include/armadillo_bits/config.hpp” and enable ARMA_64BIT_WORD
cmake . && make
make install DESTDIR=/share/apps/armadillo/<version>