Problem using Intel MKL with MEX
3 次查看(过去 30 天)
显示 更早的评论
Dear All,
Is it possible to use Intel MKL 10.3 in MEX? I am having problem in using MKL 10.3 along with MEX. I have no problem in compiling and linking the source code. But MATLAB crashes with no helpful message when I run the executable. The same code works perfectly in Visual Studio C++. Is there any conflict for using MKL in MALTAB?
Thanks
3 个评论
IntelMKL
2013-2-19
Afala, In your snippet it seems like the free() calls would naturally be called twice since stat==0 as you say. So it seems you should expect what you get. Besides this, it seems that MKL is not the problem since the problem goes away when you comment the free() calls (and presumeably not the MKL_Free_Buffers() calls).
If you still think this is a problem with using Intel MKL, another option is to post this question (a larger test case would also be helpful) on the Intel MKL user's forum: http://software.intel.com/en-us/forums/intel-math-kernel-library
I don't recall any known problems with useing MKL 10.3 with this version of Matlab.
采纳的回答
James Tursa
2013-2-19
Your posted code looks erroneous because in the success case it will naturally drop through the FAILURE label and do the free stuff again. Maybe you want something like this instead:
if (stat!=0) {
printf("\nFAILED to compute \n");
}
MKL_FreeBuffers();
free( dpar );
free( f );
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!