MATLAB Answers

How do I link my mex file to mkl?

7 views (last 30 days)
Jed on 18 Nov 2015
I am trying to create a mex file that uses MKL. I know that Matlab itself uses the MKL library for some of its computational routines (e.g., ffts), but perhaps it is a different version and there are some conflicts? In any case, I have written a C program that is structured like this:
<a bunch of code including a function called mkl_test>
int main()
I can compile it and run it just fine. I then modify it into a mex function as follows:
#include <mex.h>
<a bunch of code including a function called mkl_test>
void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
I can successully run the mex compilation, but when I attemp to run it, I get the following:
MKL FATAL ERROR: Cannot load neither nor
... then Matlab crashes.
Any help would be greatly appreciated!


Sign in to comment.

Answers (0)

Sign in to answer this question.