MATLAB Answers

0

Why doesn't Matlab find my Intel Visual Fortran compiler?

Asked by Bruce Elliott on 10 Jun 2016
Latest activity Commented on by Bruce Elliott on 14 Jun 2016
I submitted a post about this to the newsgroup but have not received any responses thus far.
I have Intel Parallel Studio 2013 XE with VS2010, including Intel Visual Fortran, installed on my laptop running Windows 7. The compiler runs fine from within Visual Studio, but when I try to use it to compile a Mex file, I get the error
Error using mex
No supported compiler or SDK was found. (etc.)
The Windows environment variable IFORT_COMPILER14 is defined and points to the folder C:\Program Files (x86)\Intel\Composer XE 2013 SP1\. I also have the files
  • intel_fortran_13_vs2010.xml
  • intelf13msvs2010engmatopts.bat
  • intelf13msvs2010opts.bat
  • intelf13msvs2010opts.stp
in %matlabroot\bin\win64\mexopts\, but I don't know how to trouble-shoot them.
What does Matlab do to find an installed compiler? Can I manually check for anything that Matlab is looking for?
I get this error running both R2015b and R2016a.

  2 Comments

Bruce - try turning on verbosity when setting up mex as
>> mex -setup -v
This may give you an idea as to the step that MATLAB is following when looking for your compiler.
By the way, have you verified that this is a supported compiler for your versions of MATLAB?
Geoff - Thanks - Someone where I work also suggested the -v flag (which I'd overlooked somehow), and it was helpful. It looks like my installation of Visual Studio might be corrupt in some way, so I'm uninstalling and reinstalling it to see if that helps.
And yes - I took the presence of the files in the bin\win64\mexopts\ that referred to my compiler to mean that it is supported by this version. Also, the verbose output from the mex command indicated that it would be happy to setup the compiler if it could only find the files and registry entries that it was looking for.

Sign in to comment.

Products

0 Answers