caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Ugly MKL Problem

Open eddy-ilg opened this issue 12 years ago • 2 comments

Hi,

I have an issue similar to that in #130, but the other way arround: When compiling and linking to libcaffe.a, a forwad pass through the network crashes with the following message:

...: /misc/software-lin/x/mkl/lib/intel64/libmkl_intel_thread.so: undefined symbol: omp_get_num_procs

I figure that MKL does some "smart" loading and cannot find openmpi. How can I find out more about what is going wrong?

Forgive me the comment - but the MKL loader sucks. My application links fine but won't execute and the error message is meaningless. Since MKL is propritary, I cannot recompile it to trace the error either.

Best,

Eddy

eddy-ilg avatar Apr 21 '14 12:04 eddy-ilg

You might try adding the iomp5 library to your Makefile like it is in our cluster Makefile.

We fully agree that MKL is less than ideal, so in the dev branch of Caffe we have added ATLAS and OpenBLAS as alternative matrix computation backends. ~~However, it isn't quite stable yet (due to problems with boost #297 #336) so be advised it's an adventurous choice. If you're familiar with boost (especially RNG and shared pointers), or know someone who is, we'd appreciate more eyes to help track down the problem.~~ Fixed in #348.

git checkout dev

will take you to a place without MKL, where the vectors and matrices run free.

shelhamer avatar Apr 21 '14 16:04 shelhamer

p.s. dev has recovered from its recent issues, so do give it a try and refer to docs/installation.md for the latest installation documentation on ATLAS and OpenBLAS.

shelhamer avatar Apr 22 '14 05:04 shelhamer