From 48c773fdaa3d6dd7e1b5b9a0fbc2e8b219b36b3e Mon Sep 17 00:00:00 2001 From: Maximilian Schmidt <max.schmidt@fz-juelich.de> Date: Fri, 30 Mar 2018 17:24:37 +0900 Subject: [PATCH] Add example for jobscript_template --- config_template.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/config_template.py b/config_template.py index 4f3f7ad..fbda94e 100644 --- a/config_template.py +++ b/config_template.py @@ -3,10 +3,25 @@ base_path = None # Place to store simulations data_path = None # Template for job scripts -jobscript_template = """ +jobscript_template = ''' # Instruction for the queuing system -mpirun python {base_path}/run_simulation.py {label}""" +mpirun python {base_path}/run_simulation.py {label}''' + +""" +Here is an example for the Slurm queueing system: + +# jobscript_template = '''#!/bin/bash +# #SBATCH --job-name MAM +# #SBATCH -o {sim_dir}/{label}.%j.o +# #SBATCH -e {sim_dir}/{label}.%j.e +# #SBATCH --mem=120G +# #SBATCH --time=06:00:00 +# #SBATCH --exclusive +# #SBATCH --cpus-per-task={local_num_threads} +# #SBATCH --ntasks={num_processes} +# mpirun python {base_path}/run_simulation.py {label} {network_label}''' +""" # Command to submit jobs on the local cluster submit_cmd = None -- GitLab