[MITgcm-support] ifort

Gus Correa gus at ldeo.columbia.edu
Fri Jul 11 14:35:31 EDT 2008


Hi Nataliya

I am glad to know that you solved the problem.

I can't comment on gfortran, which I never used, sorry.
I'd guess gfortran would compile MITgcm without problems,
but for performance you need to test.

I've been compiling MITgcm with (PGI) pgf90 so far.
I may try it with Intel Fortran one of these days.
I have used Intel Fortran to compile other models, particularly GFDL's 
MOM4 and AM2.1,
which won't compile with PGI compilers anyway.

There is not a lot of C code in MITgcm, so I would guess that using gcc 
or Intel icc
along with  ifort would not make much of a difference.
I have used this type of mix to compile MPICH2 and NetCDF, for instance, 
and it works fine.
We don't have Intel C here, only Fortran.

Gus

-- 
---------------------------------------------------------------------
Gustavo J. Ponce Correa, PhD - Email: gus at ldeo.columbia.edu
Lamont-Doherty Earth Observatory - Columbia University
P.O. Box 1000 [61 Route 9W] - Palisades, NY, 10964-8000 - USA
---------------------------------------------------------------------


Nataliya Stashchuk wrote:

>Hi Gus,
>
>Thank you very much for your replay. I found the reason of my problems.
>I traced file genmake2 which was in my MITgcm code and found that neither  ifort nor icc  present in lines for possible  C and Fortran compilers.
>
>At present time I am trying to understand what is faster gfortran or ifort. Have you any experience with this?
>
>Regards,
>Nataliya
>
>
>-----Original Message-----
>From: mitgcm-support-bounces at mitgcm.org [mailto:mitgcm-support-bounces at mitgcm.org] On Behalf Of Gus Correa
>Sent: 10 July 2008 19:36
>To: MITgcm-support
>Subject: Re: [MITgcm-support] ifort
>
>Hi Nataliya (and list)
>
>It looks like your Unix/Linux search path doesn't point to the Intel
>Fortran binary directory.
>
>1) Check if ifort is on your path, using the "which" command:
>
>which ifort
>
>2) If it is not on your path, make sure you run the Intel Fortran scripts
>to setup your environment, before you try to use it.
>They add the Intel directories to your path.
>
>For the Fortran compiler:
>
>/opt/intel/fce/10.1.15/bin/ifortvars.sh (if you use bash or sh)
>/opt/intel/fce/10.1.15/bin/ifortvars.csh (if you use csh or tcsh)
>
>For the debugger:
>
>/opt/intel/idbe/10.1.15/bin/idbvars.sh (if you use bash or sh)
>/opt/intel/idbe/10.1.15/bin/bin/idbvars.csh (if you use csh or tcsh)
>
>(In 32-bit machines use fc instead of fce, and idb, instead of idbe.)
>
>I assume the path you sent on your message is the correct.
>Please check it out.
>
>You can include these commands in your .cshrc or .bashrc (or equivalent)
>file in
>your home directory, which is a more convenient way to have the
>environment setup whenever you login.
>
>I hope this helps,
>Gus Correa
>
>--
>---------------------------------------------------------------------
>Gustavo J. Ponce Correa, PhD - Email: gus at ldeo.columbia.edu
>Lamont-Doherty Earth Observatory - Columbia University
>P.O. Box 1000 [61 Route 9W] - Palisades, NY, 10964-8000 - USA
>Oceanography Bldg., Rm. 103-D, ph. (845) 365-8911, fax (845) 365-8736
>---------------------------------------------------------------------
>
>
>Nataliya Stashchuk wrote:
>
>  
>
>>Hi MITgcm users,
>>
>>I was trying to run mitgcm with ifort and got error massage after make
>>procedure
>>
>>make: ifort: Command not found
>>
>>make: *** [mitgcmuv] Error 127
>>
>>My previous actions were:
>>
>>1. ifort was installed in /opt/intel/fce/10.1.05/
>>
>>2. I prepared optfile where I specified FC='
>>/opt//intel/fce/10.1.05/bin/ifort' and FC90C='
>>/opt/intel/fce/10.1.05/bin/ifort' for fortran
>>
>>3. ../../../tools/genmake2 -mods=../code -optfile=../optfile/optfile
>>
>>4. make depend
>>
>>5. make
>>
>>I use Linux Open SUSE on AMD64.
>>
>>Could somebody help?
>>
>>Nataliya
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>MITgcm-support mailing list
>>MITgcm-support at mitgcm.org
>>http://mitgcm.org/mailman/listinfo/mitgcm-support
>>
>>
>>    
>>
>
>_______________________________________________
>MITgcm-support mailing list
>MITgcm-support at mitgcm.org
>http://mitgcm.org/mailman/listinfo/mitgcm-support
>
>_______________________________________________
>MITgcm-support mailing list
>MITgcm-support at mitgcm.org
>http://mitgcm.org/mailman/listinfo/mitgcm-support
>  
>




More information about the MITgcm-support mailing list