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

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

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


Revision 1.4 - (hide annotations) (download)
Fri Jul 30 06:21:33 2010 UTC (13 years, 9 months ago) by dimitri
Branch: MAIN
CVS Tags: checkpoint62k, checkpoint62j, checkpoint62m, checkpoint62l
Changes since 1.3: +7 -7 lines
- add seaice_growth.F to NOOPTFILES
  seaice_growth.F compiled with -O2
  can cause HSALT to grow and model to blow up
- moved "-align" to FFLAGS and "-fp-model precise -ftz" after "-O2" in FOPTIM
  according to Art Lazanoff this syntax is safer and more correct
  results of CS510 ocean/ice configuration do not change

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

  ViewVC Help
Powered by ViewVC 1.1.22