Dear Satrajit and list,
Many thanks for this tip.
I eagerly tried setting OMP_NUM_THREADS=2 and then starting Matlab...
everything seemed fine... I completed a DICOM conversion... started a
TBR conversion... and then Matlab crashed (all the windows magically
disappeared) just as the TBR routine started to write the files to the disk.
Setting OMP_NUM_THREADS=1 fixes this problem.
It's 100% reproducible on my system.
Has anyone got OMP_NUM_THREADS=2 to work on their setup?
My specs:
SPM2 devel version (downloaded March 3rd 2005)
Mex files re-compiled using ICC 8.0
Matlab R14 SP2
Gentoo Linux (updated yesterday)
Kernel 2.6.10-r4
ATI xorg drivers
Pentium4 2.8Ghz with HT
1GB of DDR SDRAM
I'm using the default version of MKL which shipped with Matlab R14SP2
Any thoughts,
Many thanks,
Jack
Satrajit Ghosh wrote:
>Hi Simona,
>
>If you really wanted to use the virtual CPU on Intel machines (windows
>or linux), as of Matlab 7 you can set the environment variable
>OMP_NUM_THREADS to the number of "processors" on your system. Since
>Matlab uses MKL the calls to MKL will be multithreaded.
>
>Mathworks:
>Multithreading Disabled in Intel Math Kernel Library (MKL) BLAS
>
>The Intel Math Kernel Library (MKL) is multithreaded in several areas.
>By default, this threading capability is disabled. To enable threading
>in the MKL library, set the value of the OMP_NUM_THREADS environment
>variable. Intel recommends setting the value of the OMP_NUM_THREADS
>variable to the number of processors you want to use in your
>application.
>
>and you might want to read the following two links
>
>http://www.mathworks.com/support/solutions/data/1-V63VS.html?solution=1-V63VS
>http://www.mathworks.com/support/solutions/data/1-ZGD1M.html?solution=1-ZGD1M
>
>Cheers,
>
>Satra
>
>
>
>
|