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

Annotation of /MITgcm/tools/build_options/linux_ia32_ifort

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


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

1 cnh 1.1 #!/bin/bash
2     #
3 jmc 1.16 # $Header: $
4     # $Name: $
5    
6 cnh 1.1 # Ed Hill
7     #
8     # tested on faulks, 20030818
9     #
10     # Build options for the intel 8.0 fortran compiler
11     # the compiler is now called ifort (not ifc) and it appears to
12     # need -DWORDLENGTH=1 and not -DWORDLENGTH=4 (which is what ifc 6.0) used to have.
13 heimbach 1.7 # ph: use ifort compiler options -convert big_endian -assume byterecl
14 cnh 1.1
15 edhill 1.3 FC=ifort
16 heimbach 1.9 F90C=ifort
17 jmc 1.16 LINK='ifort -static'
18    
19 heimbach 1.7 DEFINES='-DWORDLENGTH=4'
20 edhill 1.3 CPP='cpp -traditional -P'
21 jmc 1.16 F90FIXEDFORMAT='-fixed -Tf'
22     EXTENDED_SRC_FLAG='-132'
23     #OMPFLAG='-openmp'
24    
25 heimbach 1.14 ###INCLUDES='-I/ocean/data4/ce107/netcdf-3.6.1/Linux-i686-intel8/include'
26     ###LIBS='-L/ocean/data4/ce107/netcdf-3.6.1/Linux-i686-intel8/lib -lnetcdf'
27     INCLUDES='-I/usr/local/pkg/netcdf/include'
28     LIBS='-L/usr/local/pkg/netcdf/lib -lnetcdf'
29 cnh 1.1
30     # Note that the -mp switch is for ieee "maintain precision" and is
31     # roughly equivalent to -ieee
32     if test "x$IEEE" = x ; then
33 edhill 1.3 FOPTIM='-O3 -align'
34 heimbach 1.15 F90OPTIM='-O3'
35 edhill 1.3 #P3 FOPTIM=$FOPTIM' -tpp6 -xWKM'
36     #P4 FOPTIM=$FOPTIM' -tpp7 -xWKM'
37 jmc 1.16 FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl"
38 cnh 1.1 else
39 jmc 1.6 FOPTIM='-O0 -noalign'
40 heimbach 1.15 F90OPTIM='-O0 -g'
41 jmc 1.16 FFLAGS="$FFLAGS -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl"
42     #FFLAGS="$FFLAGS -mp -w95 -W0 -WB"
43 cnh 1.1 fi
44 jmc 1.16 #- might want to use '-r8' for fizhi pkg:
45     #FFLAGS="$FFLAGS -r8"
46 cnh 1.1
47 jmc 1.16 F90FLAGS=$FFLAGS
48 cnh 1.1

  ViewVC Help
Powered by ViewVC 1.1.22