Skip to content

Commit

Permalink
Add job id to sbatch filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgparkinson authored Mar 15, 2019
1 parent 6a14a4f commit d157179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/BatchJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def write_batch_file(self, runFileName='run.sh', inputs_file_name='inputs'):
'#SBATCH --ntasks-per-socket=' + str(int(self.tasks_per_socket)) + ' # How many tasks on each CPU or socket (not sure what this really means)' + '\n',
'#SBATCH --distribution=cyclic:cyclic # Distribute tasks cyclically on nodes and sockets' + '\n',
'# Memory usage (MB)' + '\n', '#SBATCH --mem-per-cpu=' + str(self.memory_limit) + '\n',
'#SBATCH --output=' + os.path.join(self.folder, 'sbatch.out') + ' # Standard output and error log' + '\n']
'#SBATCH --output=' + os.path.join(self.folder, 'sbatch%j.out') + ' # Standard output and error log' + '\n']


# The commands to execute will look the same regardless of whether you're using SLURM or not
Expand Down

0 comments on commit d157179

Please sign in to comment.