2009-06-21 7 views
4

J'essaie de porter un programme de gfortran à ifort (Intel Fortran Compiler 11). Je suis coincé avec deux fichiers qui compilent uniquement avec gfortran:Erreur de compilation lors du portage de gfortran vers ifort

gfortran -x f77 -c daedrid.ff 
gfortran -x f77-cpp-input -c daedris.ff 

lorsque je tente de lancer le compilateur FORTRAN intel avec ces fichiers, je reçois:

ifort -fpp -c daedrid.ff 
ifort: warning #10147: no action performed for specified file(s) 
ifort -fpp -c daedris.ff 
ifort: warning #10147: no action performed for specified file(s) 

et aucun fichier d'objets sont créés.

Maintenant, comment puis-je résoudre ce problème o_O?

EDIT: Renommer les extensions de fichier de ff à FPP

cp daedrid.ff daedrid.fpp 
cp daedrid.ff daedrid.fpp 

aide:

ifort -fpp -c daedrid.fpp 
daedrid.fpp(1483): (col. 9) remark: LOOP WAS VECTORIZED. 
daedrid.fpp(1490): (col. 11) remark: LOOP WAS VECTORIZED. 
daedrid.fpp(1499): (col. 13) remark: LOOP WAS VECTORIZED. 
ifort -fpp -c daedris.fpp 
daedris.fpp(1626): (col. 9) remark: LOOP WAS VECTORIZED. 

http://www.rcac.purdue.edu/userinfo/resources/black/userguide.cfm#compile_fortran_cpp

MISE À JOUR: Y at-il un moyen de faire le Fortran intel travail de compilation sans avoir à renommer les fichiers?

Répondre

5

Les options que vous recherchez sont -Tf et -fpp (et éventuellement -fixed ou -free De ifort -help, les lignes concernées sont les suivantes:.

-Tf<file>  compile file as Fortran source 

-fpp[n] run Fortran preprocessor on source files prior to compilation 
    n=0 disable running the preprocessor, equivalent to no fpp 
    n=1,2,3 run preprocessor 

-[no]fixed,-FI specifies source files are in fixed format 
-[no]free, -FR specifies source files are in free format 

Ainsi, dans l'ensemble, si vous avez la source forme fixe qui a besoin de pré-traitement, vous utiliseriez:

ifort -fpp -fixed -Tfa.ff 

pour compiler le fichier a.ff

.
Questions connexes