/[MITgcm]/MITgcm/tools/build_options/linux_amd64_ifort+mpi_ice_nas
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_amd64_ifort+mpi_ice_nas

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6 by heimbach, Tue Oct 26 19:32:04 2010 UTC revision 1.7 by zhc, Thu Jun 16 16:30:07 2011 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  #  #
3  # $Header$  # $Header$
4  # $Name$  # $Name$
5    
6  # tested on pleiades using:  # tested on pleiades using SLES11 and:
7  # module load comp-intel/11.1.046 mpi/mpt.1.25 netcdf/3.6.0/intel  # module load comp-intel/2011.2 mpi-sgi/mpt.2.04-fsa netcdf/4.0
8  #  
9  # Note: option -xSSE4.2 (left commented below) can be used on queue "normal_N"  FC=ifort
10  #  (not compatible with  "normal" queue processors) to get additional speed-up.  
11    DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'
12  FC=ifort  CPP='/lib/cpp  -traditional -P'
13    EXTENDED_SRC_FLAG='-132'
14  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'  OMPFLAG='-openmp'
15  CPP='/lib/cpp  -traditional -P'  CFLAGS='-fPIC'
16  EXTENDED_SRC_FLAG='-132'  LDADD='-shared-intel'
17  OMPFLAG='-openmp'  
18  CFLAGS='-fPIC'  LIBS='-L/nasa/sgi/mpt/2.04-fsa/lib -lmpi -L/nasa/netcdf/4.0/lib -lnetcdf'
19  LDADD='-shared-intel'  INCLUDES='-I/nasa/sgi/mpt/2.04-fsa/include -I/nasa/netcdf/4.0/include'
20    INCLUDEDIRS='/nasa/sgi/mpt/2.04-fsa/include'
21  LIBS='-L/nasa/sgi/mpt/1.25/lib -lmpi -L/nasa/netcdf/3.6.0/intel/lib -lnetcdf'  MPIINCLUDEDIR='/nasa/sgi/mpt/2.04-fsa/include'
22  INCLUDES='-I/nasa/sgi/mpt/1.25/include -I/nasa/netcdf/3.6.0/intel/include'  MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h'
23  INCLUDEDIRS='/nasa/sgi/mpt/1.25/include'  MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h ./mpi_headers/mpif_parameters.h'
24  MPIINCLUDEDIR='/nasa/sgi/mpt/1.25/include'  
25  MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h'  NOOPTFLAGS='-O0 -fPIC'
26  MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h ./mpi_headers/mpif_parameters.h'  
27    if test "x$IEEE" = x ; then
28  NOOPTFLAGS='-O0 -fPIC'      #  No need for IEEE-754
29        FFLAGS="$FFLAGS -fPIC -W0 -WB -convert big_endian -assume byterecl -align"
30  if test "x$IEEE" = x ; then      FOPTIM='-O2 -ip -fp-model precise -axSSSE4.2,SSSE3 -traceback -ftz'
31      #  No need for IEEE-754      NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F'
32      FFLAGS="$FFLAGS -fPIC -w95 -W0 -WB -convert big_endian -assume byterecl -align"  else
33      FOPTIM='-O2 -ip -xSSE4.1 -fp-model precise -ftz'      #  Try to follow IEEE-754
34  #    FOPTIM='-O2 -ip -xSSE4.2 -fp-model precise -ftz'      FFLAGS="$FFLAGS -fPIC -w95 -W0 -WB -convert big_endian -assume byterecl -noalign"
35      NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F'      FOPTIM='-O0'
36  else  fi
37      #  Try to follow IEEE-754  #- might want to use '-r8' for fizhi pkg:
38      FFLAGS="$FFLAGS -fPIC -w95 -W0 -WB -convert big_endian -assume byterecl -noalign"  #FFLAGS="$FFLAGS -r8"
39      FOPTIM='-O0'  
40  fi  #- For really big executable (> 2 GB), uncomment following 2 lines
41  #- might want to use '-r8' for fizhi pkg:  #FFLAGS="$FFLAGS -mcmodel=medium -shared-intel"
42  #FFLAGS="$FFLAGS -r8"  #CFLAGS='-mcmodel=medium'
   
 #- For really big executable (> 2 GB), uncomment following 2 lines  
 #FFLAGS="$FFLAGS -mcmodel medium -shared-intel"  
 #CFLAGS='-mcmodel=medium'  

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.22