UseIntelMKLwithMatlabForFasterSPM

From NAMIC Wiki
Revision as of 22:04, 28 September 2010 by Inorton (talk | contribs) (Created page with '1) Download and install Intel MKL (academic version is free) 2) cd to the following directory (default is: /opt/intel/mkl/10.*.*.*/) /opt/intel/mkl/10.*.*.*/tools/builder…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home < UseIntelMKLwithMatlabForFasterSPM

1) Download and install Intel MKL (academic version is free)

2) cd to the following directory (default is: /opt/intel/mkl/10.*.*.*/)

  /opt/intel/mkl/10.*.*.*/tools/builder/

3) Edit "blas_list" and add the following lines to the bottom (per 4):

dcabs1
scabs1
lsame
xerbla

4) Run make, and select the appropriate options based on the help. My command line is:

 make ia32 MKLROOT=/opt/intel/mkl/10.2.5.035/ export=blas_list

5) Copy the file "mkl_custom.so" to -/matlab-#/bin/glnx86

(need to know processor and family - see dmesg)

6) BACKUP, then edit the file -/matlab-#/bin/glnx86/blas.spec and change the (appropriate) line to read like:

GenuineIntel Family 15 Model  * mkl_custom.so     # Pentium IV (Foster)

7) Start matlab.

If the make command above was wrong, there will be "symbol not found" errors. Otherwise check for the mkl_custom.so file in the output of:

>> version -modules



Pieced together from the following sources:

[1] http://en.wikibooks.org/wiki/SPM/Faster_SPM

[2] http://imaging.mrc-cbu.cam.ac.uk/imaging/SpmWithPentium4

[3] http://software.intel.com/en-us/articles/using-intel-mkl-with-matlab/

[4] http://software.intel.com/en-us/forums/showthread.php?t=63436