Intel® Parallel Studio XE 2015 for Fortran

9 ビュー (過去 30 日間)
Philip
Philip 2014 年 9 月 30 日
回答済み: Xiangcheng Lee 2018 年 6 月 20 日
I would like to use Intel Visual Fortran Composer XE 2015 for Fortran along with Microsoft Visual Studio 2013 Professional to compile Fortran code into mex files. Currently MATLAB only supports Intel Visual Fortran Composer XE 2013 for Fortran along with Microsoft Visual Studio 2012 Professional. Is there a way I can edit the mex options so MATLAB recognizes the new compilers? Thanks for the help.
  1 件のコメント
José-Luis
José-Luis 2014 年 10 月 9 日
編集済み: José-Luis 2014 年 10 月 9 日
Not using the supported compilers might work, but is a recipe for many sleepless nights trying to figure out why things either don't work or fail in subtle ways...

サインインしてコメントする。

採用された回答

Amro
Amro 2014 年 11 月 15 日
編集済み: Amro 2014 年 11 月 15 日
You could create your own version of the necessary configurations from the existing ones.
First copy the latest XML file from: $MATLABROOT\bin\win64\mexopts\intel_fortran_13_vs2012.xml and place it on the desktop. Next modify it to work with your compiler version. Mostly you'll have to adjust it to look for the IFORT_COMPILER15 environment variable. You might need to modify a few other paths...
Finally when you want to compile a Fortran MEX-file, simply specify your custom config file as:
mex -f intel_fortran_15_vs2013.xml -largeArrayDims some_func.f
If you're interested, here are my versions of the XML files (C, C++, and Fortran): GitHub Gist
  2 件のコメント
Philip
Philip 2014 年 12 月 23 日
I finally got around to trying your suggestion and it worked flawlessly. Thank you!
Lu zhang
Lu zhang 2016 年 8 月 16 日
Hi,@Amro,I meet the similar problem, I use Matlab 2012a while the fortran compiler is vs2013 + Intel® Visual Fortran x15 in win10. Besides I don't quite understand how to adjust the xml file to my fortran compiler (it's already added to the environment path).Can you explain the procedure in details. Many thanks

サインインしてコメントする。

その他の回答 (1 件)

Xiangcheng Lee
Xiangcheng Lee 2018 年 6 月 20 日
Hi,Philip. I met the same problem. can you teach me how to create my own version of the necessary configurations. I use the Intel Visual Fortran XE 2013 and Microsoft Visual Studio 2013. but my version of MATLAB only support intel_fortran_13_vs2012.xml . I hope can get your reply, Thanks so much!

カテゴリ

Help Center および File ExchangeFortran with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by