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

조회 수: 3 (최근 30일)
Bruce Elliott
Bruce Elliott 2016년 6월 10일
댓글: Bruce Elliott 2016년 6월 14일
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
Geoff Hayes
Geoff Hayes 2016년 6월 11일
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?
Bruce Elliott
Bruce Elliott 2016년 6월 14일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by