- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all,
I am working on an AMD64 machine running Linux, Matlab 2008b and MKL 10.2.4.
I wrote a piece of cpp code calling MKL functions. I have compiled it successfully in Matlab using gnu C compiler.My compile script looks like this.
mex -v -I"/home/tom/intel/mkl/10.2.4.032/include" quad_mkl.cpp -L"/home/tom/intel/mkl/10.2.4.032/lib/em64t" -lmkl_solver_ilp64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core
But I got runtime error like the following.
[s2] = quad_mkl(x1, x2, lx2, w, lam, a, u, sigsq, d, t)
??? Invalid MEX-file '/home/tom/intel/mkl/10.2.4.032/lib/em64t/quad_mkl.mexa64':
libmkl_intel_ilp64.so: cannot open shared object file: No such file or directory.
This happens even when I run it in the same folder with libmkl_intel_ilp64.so. Can anybody here give me some help? Thanks!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
As you use ilp64 libraries, you should use -DMKL_ILP64 command line option. See user guide:
Compiling for ILP64: icc -DMKL_ILP64 -I/include
Of course, you may define MKL_ILP64 in your C/C++ code.
Thanks,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
well, please try to replace-lmkl_intel_ilp64 by the-lmkl_intel_lp64
and your linking line will looks like:
mex -v -I"/home/tom/intel/mkl/10.2.4.032/include" quad_mkl.cpp -L"/home/tom/intel/mkl/10.2.4.032/lib/em64t" -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core
and try again..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have changed the linking line as you said, but it gave me the same runtime error.
[s2] = quad_mkl(x1, x2, lx2, w, lam, a, u, sigsq, d, t)
??? Invalid MEX-file '/home/tom/intel/mkl/10.2.4.032/lib/em64t/quad_mkl.mexa64':
libmkl_intel_lp64.so: cannot open shared object file: No such file or directory.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page