Skip to content

Commit 79079bd

Browse files
committed
Update README, CHANGELOG and version. Add slurm submiter
1 parent b73e69b commit 79079bd

File tree

4 files changed

+54
-2
lines changed

4 files changed

+54
-2
lines changed

Diff for: CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
v0.5: October 07, 2021
2+
==================
3+
* Update scala version to 2.12
4+
* Updated dependencies needed to support 2.12
5+
* Change build system to use SBT everywhere. This includes dependencies and packaging
6+
* Change CI to GitHub actions
7+
* Add Slurm submitter as a bultin
8+
19
v0.4: Unknown
210
==================
311

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ au BufRead,BufNewFile *.tape set filetype=ducttape
110110

111111
VSCode Mode
112112
===========
113-
If you use Visual Studio Code, there is also an extension for ducttape on the store
113+
If you use Visual Studio Code, there is also an extension for ducttape on the store that provides syntax highlighting
114114

115115
You can also instal it manually. Check the instructions in `tool-support/vscode`.
116116

Diff for: builtins/slurm.tape

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
submitter slurm :: cpus gres mem time nodelist exclude
2+
:: COMMANDS
3+
:: TASK REALIZATION CONFIGURATION {
4+
action run > exit_code {
5+
# Returns true iff the first parameter
6+
# is the name of a defined variable
7+
function var_defined {
8+
eval '[[ ${!'$1'[@]} ]]'
9+
}
10+
11+
# define script
12+
wrapper="ducttape_job.sh"
13+
14+
echo "#!/bin/bash" > $wrapper
15+
echo "set -e # stop on errors" >> $wrapper
16+
echo "set -o pipefail # stop on pipeline errors" >> $wrapper
17+
echo "set -u # stop on undeclared variables" >> $wrapper
18+
19+
# print actual jobs
20+
echo "$COMMANDS" >> $wrapper
21+
22+
SLURM_ARGS="--job-name=$TASK"
23+
if (var_defined cpus); then
24+
SLURM_ARGS+=" -c $cpus"
25+
fi
26+
if (var_defined gres); then
27+
SLURM_ARGS+=" --gres=$gres"
28+
fi
29+
if (var_defined mem); then
30+
SLURM_ARGS+=" --mem=$mem"
31+
fi
32+
if (var_defined time); then
33+
SLURM_ARGS+=" --time=$time"
34+
fi
35+
if (var_defined nodelist); then
36+
SLURM_ARGS+=" --nodelist=$nodelist"
37+
fi
38+
if (var_defined exclude); then
39+
SLURM_ARGS+=" --exclude=$exclude"
40+
fi
41+
42+
srun $SLURM_ARGS bash $wrapper
43+
}
44+
}

Diff for: version.info

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5-beta1
1+
0.5.0

0 commit comments

Comments
 (0)