Skip to content

Commit ea99b42

Browse files
authored
Update submit.sh
1 parent b793bf2 commit ea99b42

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/phoenix/submit.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,19 @@ usage() {
1111
sbatch_script="$1"
1212
device="$2"
1313

14+
job_slug="`basename "$1" | sed 's/\.sh$//' | sed 's/[^a-zA-Z0-9]/-/g'`-$2"
15+
1416
# read the body of the user script
1517
sbatch_body=$(<"$sbatch_script")
1618

1719
# common SBATCH directives
1820
sbatch_common_opts="\
19-
#SBATCH -J shb-${sbatch_script%%.sh}-$device # job name
20-
#SBATCH --account=gts-sbryngelson3 # account
21+
#SBATCH -J shb-${sbatch_script%%.sh}-$device # job name
22+
#SBATCH --account=gts-sbryngelson3 # account
2123
#SBATCH -N1 # nodes
2224
#SBATCH -t 03:00:00 # walltime
2325
#SBATCH -q embers # QOS
24-
#SBATCH -o ${sbatch_script%%.sh}-$device.%j.out # stdout+stderr
26+
#SBATCH -o $job_slug.out # stdout+stderr
2527
#SBATCH --mem-per-cpu=2G # default mem (overridden below)
2628
"
2729

0 commit comments

Comments
 (0)