Hi,
I'm porting a Windows C/C++ application that uses MKL to the Macintosh, and am running into a crash almost immediately.
The call I'm doing is this:
vsSub(&len, src1, src2, dest);
, where len is declared as int, src1, src2 and dest are declared as float*.
What happens is that my application crashes on EXC_BAD_ACCESS in mkl_vml_sSub. The exact same code executes and behaves well on Windows.
I've linked the single library (-lmkl_rt) version, and am using XCode 4.6 with LLVM GCC 4.2. I have tried linking the static libraries, the dynamic libraries and both in the threaded and non-threaded versions. I have also tried explicitly switching off threading via environment variables.
I compile with the "Use Open MP" flag set to "yes" in all parts of my application, and my application consists of a number of statically linked libraries plus some 3rd party libraries and .dylibs, including Qt.
My guess is that I've missed something in the configuration or linking of the MKL library, but does anyone know what that may be?