-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
58 lines (52 loc) · 1.28 KB
/
.gitlab-ci.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
.script_template: &script_definition
script:
- |
#
# NOTES: WORKDIR is on constance/marianas/newell
# ./ is only on the Kubernetes instance
#
export WORKDIR="$HOME/gitlab/$CI_JOB_ID/"
mkdir -p "$WORKDIR"
cp -a ./ "$WORKDIR"
cd "$WORKDIR"
# touch output
# tail -f output &
# echo submitting batch job
# Follow job output
touch output
# tail -f output &
sbatch -A EXASGD -p $SLURM_Q --wait --gres=gpu:1 -o output -e output $WORKDIR/BUILD.sh
res=$?
echo "finished batch job: $res"
# cat output
#
# NOTE: If the job fails, comment out the line below and cd to
# $HOME/gitlab/$CI_JOB_ID and run ./build.sh by hand to
# figure out what went wrong.
# cd $WORKDIR
# ./BUILD.sh
#
rm -rf "$WORKDIR"
exit $res
.tags_template: &tags_definition
tags:
- k8s
- ikp
- exasgd
- marianas
build_on_marianas:
stage: build
variables:
SLURM_Q: "dl"
<<: *tags_definition
<<: *script_definition
only:
- branches@exasgd/solvers/hiop
build_on_newell:
stage: build
variables:
SLURM_Q: "newell"
<<: *tags_definition
<<: *script_definition
only:
- branches@exasgd/solvers/hiop