-
Notifications
You must be signed in to change notification settings - Fork 29
SIRF, Gadgetron and MKL
Kris Thielemans edited this page May 30, 2020
·
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 want to use MKL with Gadgetron:
- Install Intel MKL following the instructions at their website. For debian based linux follow this link. The latter will install MKL in
opt/intel
- Gadgetron's FindMKL.cmake will try to look for MKL libraries in
/opt/intel
on Unix/Apple and inC:/Program Files (x86)/Intel/Composer XE
in Windows. Make sure that this is the location of the library or pass the variableMKLROOT_PATH
(Unix/Apple) or set the environment variableMKLROOT_PATH
on Windows. - Configure the SuperBuild to pass
Gadgetron_USE_MKL=ON
. To disable/enable after you've runcmake
use-UGadgetron_USE_MKL -DGadgetron_USE_MKL=ON
orOFF
accordingly.
If the version of MKL you have is not sufficient for Gadgetron, the configuration will fail and you'll have to disable MKL as in 3.
Notice that other packages may look for a blas implementation issuing CMake's find_package(BLAS)
. This will look for MKL taking hint directories from the environment variable LD_LIBRARY_PATH
, DYLD_LIBRARY_PATH
and LIB
, on Unix, Apple and Windows respectively.
See also Readme