-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenvironment.sh
35 lines (35 loc) · 1019 Bytes
/
environment.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
# Shell script to contain environment settings for various systems
# Usage: 'source environment.sh <system>'
SYSTEM=$1
case $SYSTEM in
idun)
module load intel
export CC=mpiicc
export KMP_AFFINITY=verbose, compact
export CFLAGS+=" -DWITH_MPIIO"
export FFMPEG=${HOME}/tools/bin/ffmpeg
export FFMPEG_FLAGS="-y -r 25 -i plot/%4d.png -b:v 16384k"
;;
vilje)
module load intelcomp/18.0.1 mpt/2.14
export KMP_AFFINITY=verbose,compact
export CC=mpicc
export CFLAGS+=" -DWITH_MPIIO"
export FFMPEG=${HOME}/tools/bin/ffmpeg
export FFMPEG_FLAGS="-y -r 25 -i plot/%4d.png -b:v 16384k"
;;
local)
export CC=mpicc
export FFMPEG=ffmpeg
export FFMPEG_FLAGS="-y -r 25 -i plot/%4d.png -tune grain -b:v 16384k"
;;
macbook)
export CC=mpicc;
export OMPI_CC=gcc-7
export FFMPEG=ffmpeg
export FFMPEG_FLAGS="-y -r 25 -i plot/%4d.png -tune grain -b:v 16384k -pix_fmt yuv420p"
;;
*)
echo "Environment not predefined for system '${SYSTEM}'"
;;
esac