21 |
# module load pgi (Version 11.7) |
# module load pgi (Version 11.7) |
22 |
# and with mpich2: |
# and with mpich2: |
23 |
# module load mvapich2 |
# module load mvapich2 |
24 |
# or with openmpi: |
# or with openmpi: (support also OpenMP to run mpi+mth) |
25 |
# module load openmpi |
# module load openmpi |
26 |
|
|
27 |
|
#------- |
28 |
|
# compile (genmake2 -omp) and run with OpenMP: needs to set environment var. |
29 |
|
# OMP_NUM_THREADS and generally, needs to increase the thread stack-size: |
30 |
|
# - sh,bash: |
31 |
|
# > export OMP_NUM_THREADS=2 |
32 |
|
# > export OMP_STACKSIZE=400m |
33 |
|
# - csh,tcsh: |
34 |
|
# > setenv OMP_NUM_THREADS 2 |
35 |
|
# > setenv OMP_STACKSIZE 400m |
36 |
#------- |
#------- |
37 |
|
|
38 |
if test "x$MPI" = xtrue ; then |
if test "x$MPI" = xtrue ; then |
54 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
55 |
EXTENDED_SRC_FLAG='-Mextend' |
EXTENDED_SRC_FLAG='-Mextend' |
56 |
GET_FC_VERSION="-V" |
GET_FC_VERSION="-V" |
57 |
|
OMPFLAG='-mp' |
58 |
|
|
59 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
60 |
NOOPTFILES='' |
NOOPTFILES='' |