-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beskow_env.sh
executable file
·45 lines (34 loc) · 1.06 KB
/
beskow_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash -l
# https://www.pdc.kth.se/support/documents/development.html#compiling-dynamically
export CRAYPE_LINK_TYPE=dynamic
# source /etc/profile
module load gcc/7.2.0
module swap PrgEnv-cray PrgEnv-intel
module swap intel intel/18.0.0.128
module load cray-fftw/3.3.6.2
module add cdt/17.10 # cdt module is mandatory to use hugepages
# module load craype-hugepages32M
pkgdir="$SNIC_NOBACKUP/opt/test_cray_fftw"
srcdir="$SNIC_NOBACKUP/pdc-beskow-fluidfft/build"
mkdir -p $pkgdir
mkdir -p $srcdir
echo "pkgdir = "$pkgdir
echo "srcdir = "$srcdir
export MAKEFLAGS="-j$(nproc)"
export CC=cc
export FC=ftn
export MPICC=cc
export MPIFC=ftn
export CFLAGS="-Ofast" # -xHost"
export FCFLAGS="-Ofast"
export LDFLAGS="-nofor-main"
## Commands
# CONFIGURE="aprun -n 1 -d 1 ./configure"
# CONFIGURE="aprun -n 1 -b ./configure --host=x86_64-unknown-linux-gnu"
CONFIGURE="./configure --host=x86_64-unknown-linux-gnu"
# CONFIGURE="./configure"
# MAKE="aprun -n 1 -d $(nproc) make"
# MAKE="aprun -n 1 -d $(nproc) -b make"
# MAKE="aprun -n 1 -cc none make"
MAKE="make"
module list