Skip to content

Commit

Permalink
Add megabyte unit to slurm memory config (#1216)
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Ernst <r.f.ernst-3@umcutrecht.nl>
  • Loading branch information
rernst authored and pditommaso committed Jul 9, 2019
1 parent c84135d commit efabdd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -61,7 +61,7 @@ class SlurmExecutor extends AbstractGridExecutor {
// be stored, just collected). In both cases memory use is based upon the job's
// Resident Set Size (RSS). A task may exceed the memory limit until the next periodic
// accounting sample. -- https://slurm.schedmd.com/sbatch.html
result << '--mem' << task.config.getMemory().toMega().toString()
result << '--mem' << task.config.getMemory().toMega().toString() + 'M'
}

// the requested partition (a.k.a queue) name
Expand Down
Expand Up @@ -130,7 +130,7 @@ class SlurmExecutorTest extends Specification {
#SBATCH -o /work/path/.command.log
#SBATCH --no-requeue
#SBATCH -t 01:00:00
#SBATCH --mem 50
#SBATCH --mem 50M
#SBATCH -a 1
'''
.stripIndent().leftTrim()
Expand All @@ -150,7 +150,7 @@ class SlurmExecutorTest extends Specification {
#SBATCH --no-requeue
#SBATCH -c 2
#SBATCH -t 02:00:00
#SBATCH --mem 200
#SBATCH --mem 200M
#SBATCH -b 2
'''
.stripIndent().leftTrim()
Expand All @@ -170,7 +170,7 @@ class SlurmExecutorTest extends Specification {
#SBATCH --no-requeue
#SBATCH -c 8
#SBATCH -t 51:00:00
#SBATCH --mem 3072
#SBATCH --mem 3072M
#SBATCH -x 3
'''
.stripIndent().leftTrim()
Expand Down

0 comments on commit efabdd2

Please sign in to comment.