1 |
#!/bin/bash |
2 |
|
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_ifort.aces+mth,v 1.3 2006/08/08 01:59:52 jmc Exp $ |
4 |
|
5 |
# test Multi-Treaded with OpenMP: |
6 |
# to get 1 node with 2 cpu : qsub -I -l nodes=1:ppn=2 |
7 |
# then on computer node: |
8 |
# needs to load intel compiler version 9: |
9 |
# > module load ifc/9.0.021 icc/9.0.021 intel/9.0 |
10 |
# set for 2 threads, and generally, needs 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 |
|
19 |
|
20 |
FC='ifort' |
21 |
CC='icc' |
22 |
LINK='ifort' |
23 |
INCLUDES='-I/usr/local/pkg/ifc/ifc-9.0.021/include' |
24 |
LIBS='-L/usr/local/pkg/ifc/ifc-9.0.021/lib' |
25 |
|
26 |
DEFINES='-DWORDLENGTH=4' |
27 |
CPP='cpp -traditional -P' |
28 |
EXTENDED_SRC_FLAG='-132' |
29 |
OMPFLAG='-openmp' |
30 |
|
31 |
NOOPTFLAGS='-O0' |
32 |
NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F' |
33 |
|
34 |
if test "x$IEEE" = x ; then |
35 |
FOPTIM='-O3 -align' |
36 |
FFLAGS='-r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl' |
37 |
else |
38 |
FOPTIM='-O0 -noalign' |
39 |
FFLAGS='-r8 -i4 -w95 -W0 -WB -pc64 -xW -convert big_endian -assume byterecl' |
40 |
fi |
41 |
|
42 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
43 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F' |