/[MITgcm]/MITgcm/tools/build_options/linux_ia32_ifort+authors
ViewVC logotype

Annotation of /MITgcm/tools/build_options/linux_ia32_ifort+authors

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


Revision 1.2 - (hide annotations) (download)
Sun Mar 21 17:59:13 2010 UTC (14 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint63a, checkpoint63
Changes since 1.1: +9 -6 lines
- remove "-r8 -i4" options (more similar to other compiler optfile).
- does not set FFLAGS (done in genmake2) but append to it.

1 jmc 1.1 #!/bin/bash
2    
3 jmc 1.2 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_ifort+authors,v 1.1 2009/04/15 23:52:07 jmc Exp $
4 jmc 1.1 # $Name: $
5    
6     # Build options for the intel 9.0 fortran compiler
7     # ph: use ifort compiler options -convert big_endian -assume byterecl
8    
9     # tested on faulks (FC.6)
10     # was also tested on hugo (FC.4, FC.9), eddy (FC.5)
11    
12     # OpenMP : Tested on hugo, eddy and faulks
13     #-------
14 jmc 1.2 # run with OpenMP: needs to set environment var. OMP_NUM_THREADS
15 jmc 1.1 # and generally, needs to increase the stack-size:
16     # - sh,bash:
17     # > export OMP_NUM_THREADS=2
18     # > export KMP_STACKSIZE=400m
19     # - csh,tcsh:
20     # > setenv OMP_NUM_THREADS 2
21     # > setenv KMP_STACKSIZE 400m
22     #-------
23    
24     FC=/usr/local/pkg/intel/intel_fc_90/bin/ifort
25     F90C=/usr/local/pkg/intel/intel_fc_90/bin/ifort
26     LINK='/usr/local/pkg/intel/intel_fc_90/bin/ifort -i-static -no-ipo'
27    
28     DEFINES='-DWORDLENGTH=4'
29     CPP='cpp -traditional -P'
30 jmc 1.2 F90FIXEDFORMAT='-fixed -Tf'
31 jmc 1.1 EXTENDED_SRC_FLAG='-132'
32     OMPFLAG='-openmp'
33    
34     INCLUDES='-I/usr/local/pkg/netcdf/netcdf-3.5.1/include'
35    
36     # Note that the -mp switch is for ieee "maintain precision" and is
37     # roughly equivalent to -ieee
38     if test "x$IEEE" = x ; then
39     FOPTIM='-O3 -align'
40     #P3 FOPTIM=$FOPTIM' -tpp6 -xWKM'
41     #P4 FOPTIM=$FOPTIM' -tpp7 -xWKM'
42 jmc 1.2 FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl"
43 jmc 1.1 else
44     FOPTIM='-O0 -noalign -check all'
45 jmc 1.2 FFLAGS="$FFLAGS -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl"
46     #FFLAGS="$FFLAGS -mp -w95 -W0 -WB"
47 jmc 1.1 fi
48 jmc 1.2 #- might want to use '-r8' for fizhi pkg:
49     #FFLAGS="$FFLAGS -r8"
50    
51 jmc 1.1 F90FLAGS=$FFLAGS
52     F90OPTIM=$FOPTIM
53    

  ViewVC Help
Powered by ViewVC 1.1.22