Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

fortran compiler for matlab

simonferodo
Beginner
937 Views

Hi,

I'd like to usefortran compiler in Matlab environment. I followed installation instructions and first installed Microsoft Visual C++ Express, SDK and then Intel VisualFortran Compiler 9.1.033. Unfortunatelly when I run "mex -setup" command, Matlab finds only Lcc C and Microsoft Visual C/C++ compilers. Why Matlab can't find Intel Fortran compiler?

0 Kudos
6 Replies
Steven_L_Intel1
Employee
937 Views

Have you asked Mathworks for help on this? I have a vague memory that their instructions tell you to invoke the Intel ifortvars.bat file, or maybe you have to do that before running mex.

I have not used MATLAB so I can't provide specific advice. Perhaps other readers here can.

0 Kudos
g_f_thomas
Beginner
937 Views
Last I read on this (and that was months ago) they stillsupport mexing fromCVF but that may have changed so I'd check for an update. If you have their COMBuilder(s) forExcel, .NET, or Java then you can use any COM component built in this way from IVF via the COM Module Wizard.
0 Kudos
Steven_L_Intel1
Employee
937 Views

I'm a bit puzzled by Gerry's response. MATLAB supports use of Intel Visual Fortran.

Looking at this MATLAB support page, it suggests using "mex -setup" to configure things. I'm sure you can get more help from the Mathworks folks.

0 Kudos
g_f_thomas
Beginner
937 Views

Allow me to clarify the situation (for R14a/sp3):

mex -setup

does NOT recognize IVF as a mexing compiler.

Rather than theMatlab forum, the OP should check comp.soft-sys.matlab fordetails on how to hack mexing with IVF.

On marginal platforms, Intel fortran might well be mexed for all I care but that's outside the scope of this forum.

0 Kudos
simonferodo
Beginner
937 Views
I've got a suggestion that matlab can't find fortran compiler because it only supports 9.0 version of intel vusual fortran for windows. Is it possible to get version 9.0 from intel - evaluation copy for a start?
0 Kudos
g_f_thomas
Beginner
937 Views

I don't know what version of Matlab you're using. Try looking at a fortran opts.bat file, change its parameters as appropriate until you get it to work. Whatever the Matlab support forum claims (and it claims that some versions of Matlab support IVF 9.x) if you don't have an opts.bat then you're out of luck, unless of course you roll your own.

0 Kudos
Reply