1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
edhill |
1.4 |
# $Header: $ |
4 |
edhill |
1.1 |
# |
5 |
edhill |
1.4 |
# 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 |
edhill |
1.1 |
# |
9 |
edhill |
1.4 |
# Please note that the appropriate module commands: |
10 |
|
|
# |
11 |
|
|
# module add mpich/intel |
12 |
|
|
# |
13 |
|
|
# will add /usr/local/pkg/ifc/ifc-8.0.034/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 may also be |
16 |
|
|
# helpful if you encounter missing-library problems. Or, |
17 |
|
|
# alternatively, one may choose to link with one of the intel |
18 |
|
|
# "-static" or "-i-static" flags. |
19 |
|
|
|
20 |
edhill |
1.1 |
|
21 |
edhill |
1.4 |
FC='mpif77' |
22 |
|
|
CC='mpicc' |
23 |
|
|
LINK='mpif77' |
24 |
|
|
INCLUDES='-I/usr/local/pkg/ifc/ifc-8.1.018/include -I/usr/local/pkg/mpich/mpich-intel/include/' |
25 |
|
|
LIBS='-L/usr/local/pkg/ifc/ifc-8.1.018/lib' |
26 |
edhill |
1.1 |
|
27 |
edhill |
1.4 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
28 |
edhill |
1.1 |
CPP='cpp -traditional -P' |
29 |
edhill |
1.4 |
|
30 |
|
|
NOOPTFLAGS='-O0' |
31 |
|
|
NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F' |
32 |
edhill |
1.1 |
|
33 |
|
|
# Note that the -mp switch is for ieee "maintain precision" and is |
34 |
|
|
# roughly equivalent to -ieee |
35 |
|
|
if test "x$IEEE" = x ; then |
36 |
|
|
FOPTIM='-O3 -align' |
37 |
edhill |
1.4 |
#P3 FOPTIM=$FOPTIM' -tpp6 -xWKM' |
38 |
|
|
#P4 FOPTIM=$FOPTIM' -tpp7 -xWKM' |
39 |
heimbach |
1.3 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -assume byterecl -convert big_endian' |
40 |
edhill |
1.1 |
else |
41 |
edhill |
1.4 |
# FOPTIM='-O0 -noalign -CA -CB -CU -CV -CS' |
42 |
|
|
FOPTIM='-O0 -noalign' |
43 |
|
|
# FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' |
44 |
|
|
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -pc64 -xW -assume byterecl -convert big_endian' |
45 |
|
|
# FLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB -assume byterecl -convert big_endian' |
46 |
edhill |
1.1 |
fi |
47 |
|
|
|
48 |
edhill |
1.4 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
49 |
|
|
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F' |