Difference between revisions of "UseIntelMKLwithMatlabForFasterSPM"

From NAMIC Wiki
Jump to: navigation, search
(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…')
 
m (Blanked the page)
 
Line 1: Line 1:
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):
 
<pre>
 
dcabs1
 
scabs1
 
lsame
 
xerbla
 
</pre>
 
 
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:
 
<pre>
 
GenuineIntel Family 15 Model  * mkl_custom.so    # Pentium IV (Foster)
 
</pre>
 
 
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:
 
<pre>
 
>> version -modules
 
</pre>
 
 
 
 
 
=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
 

Latest revision as of 20:10, 13 July 2018

Home < UseIntelMKLwithMatlabForFasterSPM