Debian Codegraph @

test/gitlab-ci/generate_arch_jobs.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`. -l
2
3 for L in $(sinfo -t idle -h --partition=work -o "%n %t" | grepscip-shell system . . grep. "idle" | cutscip-shell system . . cut. -d ' ' -f 1); do
4 arch="x86"
5 depend="build-x86-perf"
6 if [scip-shell system . . `[`. "$L" = "aurora1" ]; then
7 continue
8 fi
9 if [scip-shell system . . `[`. "$L" = "applem1studio" ]; then
10 continue
11 fi
12 if [scip-shell system . . `[`. "$L" = "warmup" ]; then
13 arch="arm8"
14 depend="build-arm8-perf"
15 fi
16 if [scip-shell system . . `[`. "$L" = "lukewarm" ]; then
17 arch="arm8"
18 depend="build-arm8-perf"
19 fi
20 if [scip-shell system . . `[`. "$L" = "gracehop1" ]; then
21 arch="arm8"
22 depend="build-arm8-perf"
23 fi
24 if [scip-shell system . . `[`. "$L" = "gracesup1" ]; then
25 arch="arm8"
26 depend="build-arm8-perf"
27 fi
28 if [scip-shell system . . `[`. "$L" = "spark1" ]; then
29 arch="arm8"
30 depend="build-arm8-perf"
31 fi
32
33 catscip-shell system . . cat. <<EOF
34 test-$L-perf:
35 stage: test
36 variables:
37 SLURM_NODELIST: $L
38 SLURM_CONSTRAINT: hwperf
39 needs:
40 pipeline: \$PARENT_PIPELINE_ID
41 job: $depend
42 tags:
43 - testcluster
44 before_script:
45 - rm -rf /tmp/$depend
46 - cp -r $depend /tmp/$depend
47 - cd /tmp/$depend
48 - export PATH=/tmp/$depend/bin:\$PATH
49 - export LD_LIBRARY_PATH=/tmp/$depend/lib:\$LD_LIBRARY_PATH
50 script:
51 - likwid-topology
52 - likwid-pin -p
53 - likwid-perfctr -i
54 - likwid-sysfeatures -a
55 after_script:
56 - rm -rf /tmp/$depend
57 EOF
58
59 if [scip-shell system . . `[`. "$arch" == "x86" ]; then
60 depend="build-x86-daemon"
61 if [scip-shell system . . `[`. "$L" = "aurora1" ]; then
62 continue
63 fi
64 if [scip-shell system . . `[`. "$L" = "milan1" ]; then
65 continue
66 fi
67 echoscip-shell system . . echo.
68 catscip-shell system . . cat. <<EOF
69 test-$L-daemon:
70 stage: test
71 variables:
72 SLURM_NODELIST: $L
73 SLURM_CONSTRAINT: hwperf
74 needs:
75 pipeline: \$PARENT_PIPELINE_ID
76 job: $depend
77 tags:
78 - testcluster
79 before_script:
80 - rm -rf /tmp/$depend
81 - cp -r $depend /tmp/$depend
82 - cd /tmp/$depend
83 - export PATH=/tmp/$depend/bin:\$PATH
84 - export LD_LIBRARY_PATH=/tmp/$depend/lib:\$LD_LIBRARY_PATH
85 script:
86 - likwid-topology
87 - likwid-pin -p
88 - likwid-perfctr -i
89 - likwid-sysfeatures -a
90 after_script:
91 - rm -rf /tmp/$depend
92 EOF
93 fi
94 echoscip-shell system . . echo.
95 done