-
Notifications
You must be signed in to change notification settings - Fork 8
/
jenkins-build.sh
32 lines (27 loc) · 1.23 KB
/
jenkins-build.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
#!/bin/bash
# Build script for puma.pnl.gov
# TODO parameterize vs hard-coded path?
WORKSPACE=/lustre/jenkins/chgl-workspace
# Load required modules
export MODULEPATH=/home/firo017/softwares/modules:$MODULEPATH
export CHPL_COMM=gasnet
export CHPL_COMM_SUBSTRATE=ibv
export CHPL_LAUNCHER=slurm-gasnetrun_ibv
source util/setchplenv.bash
module load gcc/8.2.0
module load openmpi/3.1.3
module load clang/8.0.1
module load chapel/1.20.0
# Execute peformance tests
export CHPL_TEST_LAUNCHCMD="$CHPL_HOME/util/test/chpl_launchcmd.py --CHPL_LAUNCHCMD_DEBUG"
export CHPL_LAUNCHER_WALLTIME=20:00:00
export CHPL_TEST_TIMEOUT=3600
export GASNET_BACKTRACE=1
export CHPL_TEST_PERF_DIR=$WORKSPACE/test_performance/dat
cd $WORKSPACE/test_performance
rm -rf Logs
start_test --performance -junit-xml -junit-xml-file $WORKSPACE/test_performance/Logs/chapel-perf-tests.xml --test-root=$WORKSPACE/test_performance/ -numlocales 4
# Replace Chapel references with CHGL
sed -i 's/Chapel Performance Graphs/CHGL Performance Graphs/g' $CHPL_TEST_PERF_DIR/html/index.html
sed -i 's/Chapel Performance Graphs/CHGL Performance Graphs/g' $CHPL_TEST_PERF_DIR/html/graphdata.js
sed -i 's|http://chapel-lang.org/perf/|https://pnnl.github.io/chgl/|g' $CHPL_TEST_PERF_DIR/html/index.html