I am trying to compile my code on Windows 7 (64-bit) with MSVS 2010 and Intel Fortran 2013. In my code I called mkl library and I selected the option "Use Intel Math Kernel Library" in projection property. In the debug mode, the code runs well. But when I run the application compiled with release mode, error jumps up and says"program can't start because the mkl_intel_thread.dll is missing". How can I fix it?
You could copy that file from the intel redist folder to your program's release bin folder. I guess there's a way to get VS to copy it automatically but it doesn't do that for me either so I copy the dll (in my case just libiomp5md.dll) manually.
If the file is there, make sure it's not the 32-bit one.
Why the compiler in debug mode can find MKL library but the release mode can't?
I used command "mklvars ..." to setup the environment variable, but it didn't work too. Should I manually add environment variables?