Build Sundials with MKL

315 Views Asked by At

I need to build Sundials (as a dependency for another C/C++ library) on a Linux cluster which provides only MKL as BLAS and LAPACK support.

As far as I know, unlike other versions, the MKL BLAS and LAPACK wrappers are not self-contained at link time but require linking against MKL core and/or other libraries as well.

So how (if at all) can I tell CMake what to include in order to successfully build Sundials? Is it possible and safe to use flags like

$ cmake (...) -DBLAS_LIBRARIES=/path/to/mkl/<several files grouped together>

and what would be the correct syntax?

0

There are 0 best solutions below