1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_ifort.aces+mth,v 1.2 2006/08/02 20:14:50 jmc Exp $ |
4 |
# |
5 |
# get 1 node with 2 cpu : qsub -I -l nodes=1:ppn=2 |
6 |
# on computer node: |
7 |
# needs to load intel compiler version 9: |
8 |
# > module load ifc/9.0.021 icc/9.0.021 intel/9.0 |
9 |
# and set for 2 threads, |
10 |
# + in many cases, need to increase the stack-size: |
11 |
#- sh,bash: |
12 |
# > export OMP_NUM_THREADS=2 |
13 |
# > export KMP_STACKSIZE=400m |
14 |
#- csh,tcsh: |
15 |
# > setenv OMP_NUM_THREADS 2 |
16 |
# > setenv KMP_STACKSIZE 400m |
17 |
|
18 |
FC='ifort' |
19 |
CC='icc' |
20 |
LINK='ifort' |
21 |
INCLUDES='-I/usr/local/pkg/ifc/ifc-9.0.021/include' |
22 |
LIBS='-L/usr/local/pkg/ifc/ifc-9.0.021/lib' |
23 |
|
24 |
DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING' |
25 |
CPP='cpp -traditional -P' |
26 |
|
27 |
NOOPTFLAGS='-O0' |
28 |
NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F' |
29 |
|
30 |
if test "x$IEEE" = x ; then |
31 |
FOPTIM='-O3 -align' |
32 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -openmp -convert big_endian -assume byterecl' |
33 |
else |
34 |
FOPTIM='-O0 -noalign' |
35 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -openmp -pc64 -xW -convert big_endian -assume byterecl' |
36 |
fi |
37 |
|
38 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
39 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F' |