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