Skip to content

SIRF, Gadgetron and MKL

Kris Thielemans edited this page May 4, 2017 · 3 revisions

Gadgetron can make use of the Intel Math Kernel Library. This will speed up some calculations and might give you some extra functionality. However, this is currently not needed for SIRF.

If you don't have MKL (or if your version is too old), while configuring Gadgetron you will see a message like

CMake Warning at SuperBuild/External_Gadgetron.cmake:28 (find_package):
  By not providing "FindMKL.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "MKL", but
  CMake did not find one.
 
  Could not find a package configuration file provided by "MKL" with any of
  the following names:
 
    MKLConfig.cmake
    mkl-config.cmake
 
  Add the installation prefix of "MKL" to CMAKE_PREFIX_PATH or set "MKL_DIR"
  to a directory containing one of the above files.  If "MKL" provides a
  separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMake/ExternalProjectDependency.cmake:593 (include)
  CMake/ExternalProjectDependency.cmake:639 (ExternalProject_Include_Dependencies)
  SuperBuild.cmake:45 (ExternalProject_Include_Dependencies)
  CMakeLists.txt:14 (include)

This warning can be ignored. In particular, setting MKL_DIR will not help in finding MKL (as MKL does not provide a config.cmake file). If you do have MKL and CMake didn't find it, you can try to set the MKLROOT_PATH CMake (or environment) variable.