Jump to content

[Guide] OSX+Matlab+unsupported CPU


antst
 Share

1 post in this topic

Recommended Posts

Problem: Matlab for MacOS X/Intel uses stripped down Intel MKL library which comes with Matlab. This library constists computational cores only for particular CPUs (more exact: P4P and P4M cores). So, on hackintoshes which built on non-supported CPUs Matlab can crash which accessing BLAS library, because MKL frontend will try to load core which not included with Matlab.

If you start Matlab in xterm, you can see something like:

 

MKL FATAL ERROR: dlopen(libmkl_def.dylib, 1): image not found

 

Solution: go to matlab folder. Then in subdirectory "bin/maci" find file "blas.spec" and open it in text editor, it should looks like:

 

GenuineIntel Family  * Model  * libmkl.dylib mklcompat.dylib #Intel Mac

 

replace this string with:

 

GenuineIntel Family  * Model  * libblas.dylib #Intel Mac

 

This will force Matlab to use BLAS library which comes with OSX. It is, in fact, ATLAS, so performance should be good enough.

Link to comment
Share on other sites

 Share

×
×
  • Create New...