1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_ifort+mpi_aces,v 1.7 2009/06/15 02:21:47 jmc Exp $ |
4 |
# |
5 |
# These are the build options used with the Intel 8.x compiler for the |
6 |
# daily testing on ACES (which are initiated by cron jobs on the "ao" |
7 |
# head node). |
8 |
# |
9 |
# Please note that the appropriate module commands: |
10 |
# |
11 |
# module add mpich2/1.0.3/intel |
12 |
# |
13 |
# will add /usr/local/pkg/ifc/ifc-???????/lib to LD_LIBRARY_PATH |
14 |
# which is needed by any executables generated with this optfile. |
15 |
# The PBS -V option for exporting environment variables <== does not work |
16 |
# may also be helpful if you encounter missing-library problems. |
17 |
# Or, alternatively, one may choose to link with one of the intel |
18 |
# "-static" or "-i-static" flags. |
19 |
|
20 |
|
21 |
FC='mpif77' |
22 |
CC='mpicc' |
23 |
F90C='mpif90 -fixed -c ' |
24 |
LINK='mpif77' |
25 |
#INCLUDES='-I/usr/local/pkg/ifc/ifc-8.1.018/include -I/usr/local/pkg/mpich/mpich-intel/include/' |
26 |
#LIBS='-L/usr/local/pkg/ifc/ifc-8.1.018/lib' |
27 |
INCLUDES='-I/usr/local/pkg/mpich2/mpich2-1.0.3/intel/include/' |
28 |
LIBS='-L/usr/local/pkg/mpich2/mpich2-1.0.3/intel/lib' |
29 |
|
30 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
31 |
CPP='cpp -traditional -P' |
32 |
EXTENDED_SRC_FLAG='-132' |
33 |
OMPFLAG='-openmp' |
34 |
|
35 |
NOOPTFLAGS='-O0' |
36 |
NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F' |
37 |
|
38 |
# Note that the -mp switch is for ieee "maintain precision" and is |
39 |
# roughly equivalent to -ieee |
40 |
if test "x$IEEE" = x ; then |
41 |
FOPTIM='-O3 -align' |
42 |
#P3 FOPTIM=$FOPTIM' -tpp6 -xWKM' |
43 |
#P4 FOPTIM=$FOPTIM' -tpp7 -xWKM' |
44 |
FFLAGS='-r8 -i4 -w95 -W0 -WB -assume byterecl -convert big_endian' |
45 |
else |
46 |
# FOPTIM='-O0 -noalign -CA -CB -CU -CV -CS' |
47 |
FOPTIM='-O0 -noalign -CB -CU -CV' |
48 |
FFLAGS='-r8 -i4 -w95 -W0 -WB -pc64 -xW -assume byterecl -convert big_endian' |
49 |
# FLAGS='-mp -r8 -i4 -w95 -W0 -WB -assume byterecl -convert big_endian' |
50 |
fi |
51 |
F90FLAGS=$FFLAGS |
52 |
F90OPTIM=$FOPTIM |
53 |
|
54 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
55 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F' |