Skip to content

Commit

Permalink
Merge pull request #18 from alavin87/bug_slurm
Browse files Browse the repository at this point in the history
Solved bug in Slurm manager
  • Loading branch information
cofinoa authored Jul 5, 2018
2 parents b13c2b6 + 8925942 commit 54e9b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opt/drm4g/libexec/drm4g/managers/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 54e9b59

Please sign in to comment.