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

Old version ifc to ifort

frederico_silva
Beginner
1,001 Views
Dear all,
I used to use an old version of the intel fortran compiler (ifc) to
compile a home made program for academic use. Now, I need to use the
quite new version of ifort and I'm wondering if they have the same
options. With ifc, I used the following options:

ifc -cpp -c -I$(include file) -cm -FI -Vaxlib -01 -mp -xW -pc64 -tpp7 -r8
Also, I need to use the library libguide.a . I wonder that it usually
belonged to the mkl folder and now, this library does not exists in
the new mkl version. What I have to do? I tried exhaustively to google
it but no sucess at all.

Thank you in advance,

0 Kudos
2 Replies
Steven_L_Intel1
Employee
1,001 Views
-cpp is now -fpp. You can drop -cm, -xW, -tpp7, -Vaxlib

libguide.a has been replaced by libiomp5.a, but you would normally use -openmp to get that. If you are linking to any objects or libraries compiled by ifc, you will need to recompile them with ifort.
0 Kudos
TimP
Honored Contributor III
1,001 Views
The linking instructions for MKL have changed entirely since the days of libguide.
On the MKL forum, there is this link advisor tool to show you how to specify those libraries. As Steve said, you would often prefer to use ifort -openmp option to bring in OpenMP libraries in the link step, although that tool will tell you the actual library names.
0 Kudos
Reply