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

problem mpi

Mouhamad_A_
Beginner
787 Views

Dear all,

 

 I am trying to compile the following program, using ompi compiled with intel,

 

mpif90 -c -convert native -m64 -O3 -mieee-fp -m64 PLM.F90
mpif90 -o a.out PLM.o /work/crct/mo9378al/sources/arpege-climat/build-5.2-ompi-intel/packs/502_main.00.MPIINTEL.x/lib/libxrd.local.a /work/crct/mo9378al/arpege-5.2/ompi-intel/lib/libgribex.a

but I get the following error.

--

 ///// LFIOUV - Unite logique  7, facteur multiplicatif lu sur fichier= 12, attendu=  6                                             
 ///// LFIOUV - Nom='restart'                                                                                                       
 ///// LFIOUV - Nom SYSTEME='/panfs/carterfs.u-bourgogne.fr/work_crct/mo9378al/Compute_restart_intel/restart'                       
 ///// LFIOUV - On essaie de s'adapter au facteur multiplicatif lu sur le fichier...                                                
 ///// LFIOUV - Nom='restart'                                                                                                       
 ///// LFIOUV - Nom SYSTEME='/panfs/carterfs.u-bourgogne.fr/work_crct/mo9378al/Compute_restart_intel/restart'                       
 ///// LFIOUV - Unite  7 OUVERTE, derniere Modification OK a 20111013_164658,    293 Articles de donnees,  2058240 mots en tout     
 */*/* FAITOU - KREP= -60, KNUMER=  7, LDNOMM= T, CDSTTU='    OLD', LDERFA= T,  LDIMST= F, KNIMES= 1, KNBARP=     0 KNBARI=   293   
 ***** FAITOU - CDNOMC='Cadre.rest'                                                                                                 
 ***** FAITOU - UN ARTICLE DU CADRE EST MANQUANT, UNITE  7                *****
  ***** FAITOU - UN ARTICLE DU CADRE EST MANQUANT, UNITE

--

I thing it is a problem of little/big endian.

 

Could you please tell me if the command I have missed something in the compilation ?

 

Thank u a lot for your help

 

regards

 

Mouhamad

 

0 Kudos
3 Replies
TimP
Honored Contributor III
787 Views

If the file will always be big-endian, you could use the Intel-specific syntax for that in the OPEN, or you could pass the corresponding environment variable to each rank....

The options you passed to mpif90 appear to pertain to pgi Fortran.  If you meant -convert big-endian, you should consult the compiler documentation.  If ifort doesn't recognize the ieee-fp option, ifort options in that area include -fp-model precise, -prec-div -prec-sqrt, -assume protect_parens.....

0 Kudos
Mouhamad_A_
Beginner
787 Views

Dear Tim Prince,

 

 Thanks a lot for your reply.

 

 I am going to try what you have suggested me.

 

 

Thanks again

 

Mouhamad

 

 

0 Kudos
TimP
Honored Contributor III
787 Views

Compile option -convert big_endian would apply to all data files.  Apparently, according to the table entitled "OPEN Statement specifiers" in the compiler html reference, native would be the same as little_endian.

0 Kudos
Reply