From 89259425c8f9464c945b09f6f86b41aabb508c9e Mon Sep 17 00:00:00 2001 From: alavin87 Date: Tue, 19 Jun 2018 13:25:52 +0200 Subject: [PATCH] Solved bug in slurm manager. Newlines were missed when setting number of tasks. --- opt/drm4g/libexec/drm4g/managers/slurm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opt/drm4g/libexec/drm4g/managers/slurm.py b/opt/drm4g/libexec/drm4g/managers/slurm.py index 1f83d0a8..b7bf4294 100644 --- a/opt/drm4g/libexec/drm4g/managers/slurm.py +++ b/opt/drm4g/libexec/drm4g/managers/slurm.py @@ -61,9 +61,9 @@ def jobTemplate(self, parameters): if 'maxMemory' in parameters : args += '#SBATCH --mem=%s\n' % (parameters['maxMemory']) if 'ppn' in parameters : - args += '#SBATCH --ntasks-per-node=$ppn' + args += '#SBATCH --ntasks-per-node=$ppn\n' if 'nodes' in parameters : - args += '#SBATCH --nodes=$nodes' + args += '#SBATCH --nodes=$nodes\n' args += '#SBATCH --ntasks=$count\n' args += ''.join(['export %s=%s\n' % (k, v) for k, v in list(parameters['environment'].items())]) args += '\n'