Matlab crashes when using both built-in MKL library, and MEX file invoking MKL
I'm trying to implement the band-matrix LU decomposition algorithm from the MKL in a matlab executeable file (MEX). Here I have trouble using the parallel libraries from the intel MKL, which causes my matlab version to crash.
Version Info: Matlab r2010b - 64bit Windows 7 64-bit Compiler: MSVC++ express 2008 MKL Version using in MEX linking: 10.2.6.037 MKL Version used by Matlab: 10.0.3 (From what I could find in the help)
How to cause error The error comes up if I use my .mex file in conjunction with the intermal matlab function 'lu'. This is done to test my implementation. If I use either by itself, nothing odd happens.
In the Intel help for using MKL in Matlab, it is stated that it will crash if I use different versions in the MKL from what is used in Matlab. When I try to link to the libguide40.lib file though, my Matlab still crashes. The crash also happens so fast, that I can't see what the output window states. Is it possible to make it pause, or output to a text file?
(Solution) My only current solution is to build to the sequential libraries. Is it possible to either update the matlab MKL library, or somehow make my build work in parallel regardless?