Subscribe to our RSS news feed
AAPL 199.94 (-1.25)

> Forum Guidelines.

Welcome to the Genius Bar. Here's how this forum works:

1. Members are encouraged to make a guide that details something that they might have found troubling or challenging.
Chances are, if you've seen the same question asked over and over again, you should write a guide for it.

2. This is not the forum for asking questions. If you have a question about a thread that's already here, feel free to ask it.
Just don't start a thread for a specific question. Use the other forums here for that.

3. Posting links to off-site tutorials is not allowed.

4. That's it! Thanks for sharing your information with the rest of us. :)

To keep this forum clean this forum is moderated. You can post in existing topics but new ones will have to be approved before they show up.

 
Reply to this topic Start new topic
[Guide] OSX+Matlab+unsupported CPU
***
  • Group: Members
  • Posts: 119
  • Joined: 16-March 07
  • Member No.: 93,057
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:

CODE
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:

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


replace this string with:

CODE
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.
PM Profile Card
Go to the top of the page
+ Quote Post
Reply to this topic Start new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 21st November 2009 - 03:10 AM