File tree Expand file tree Collapse file tree 3 files changed +66
-3
lines changed Expand file tree Collapse file tree 3 files changed +66
-3
lines changed Original file line number Diff line number Diff line change 4747
4848 - name : Bench (Master v. PR)
4949 run : |
50- (cd pr && bash .github/workflows/phoenix/submit.sh .github/workflows/phoenix/bench.sh ${{ matrix.device }}) &
51- (cd master && bash .github/workflows/phoenix/submit.sh .github/workflows/phoenix/bench.sh ${{ matrix.device }}) &
50+ (cd pr && bash .github/workflows/phoenix/submit-bench .sh .github/workflows/phoenix/bench.sh ${{ matrix.device }}) &
51+ (cd master && bash .github/workflows/phoenix/submit-bench .sh .github/workflows/phoenix/bench.sh ${{ matrix.device }}) &
5252 wait %1 && wait %2
5353
5454 - name : Generate & Post Comment
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ usage () {
6+ echo " Usage: $0 [script.sh] [cpu|gpu]"
7+ }
8+
9+ if [ ! -z " $1 " ]; then
10+ sbatch_script_contents=` cat $1 `
11+ else
12+ usage
13+ exit 1
14+ fi
15+
16+ sbatch_cpu_opts=" \
17+ #SBATCH -p cpu-small # partition
18+ #SBATCH --ntasks-per-node=24 # Number of cores per node required
19+ #SBATCH --mem-per-cpu=2G # Memory per core\
20+ "
21+
22+ sbatch_gpu_opts=" \
23+ #SBATCH -CV100
24+ #SBATCH -G2\
25+ "
26+
27+ if [ " $2 " == " cpu" ]; then
28+ sbatch_device_opts=" $sbatch_cpu_opts "
29+ elif [ " $2 " == " gpu" ]; then
30+ sbatch_device_opts=" $sbatch_gpu_opts "
31+ else
32+ usage
33+ exit 1
34+ fi
35+
36+ job_slug=" ` basename " $1 " | sed ' s/\.sh$//' | sed ' s/[^a-zA-Z0-9]/-/g' ` -$2 "
37+
38+ sbatch << EOT
39+ #!/bin/bash
40+ #SBATCH -Jshb-$job_slug # Job name
41+ #SBATCH --account=gts-sbryngelson3 # charge account
42+ #SBATCH -N1 # Number of nodes required
43+ $sbatch_device_opts
44+ #SBATCH -t 02:00:00 # Duration of the job (Ex: 15 mins)
45+ #SBATCH -q embers # QOS Name
46+ #SBATCH -o$job_slug .out # Combined output and error messages file
47+ #SBATCH -W # Do not exit until the submitted job terminates.
48+
49+ set -e
50+ set -x
51+
52+ cd "\$ SLURM_SUBMIT_DIR"
53+ echo "Running in $( pwd) :"
54+
55+ job_slug="$job_slug "
56+ job_device="$2 "
57+
58+ . ./mfc.sh load -c p -m $2
59+
60+ $sbatch_script_contents
61+
62+ EOT
63+
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ sbatch_cpu_opts="\
2020"
2121
2222sbatch_gpu_opts=" \
23- #SBATCH -CV100-16GB
23+ #SBATCH -p gpu-v100,gpu-a100,gpu-h100
2424#SBATCH -G2\
2525"
2626
You can’t perform that action at this time.
0 commit comments