Skip to content
Snippets Groups Projects
Commit 44a56363 authored by Martin Bauer's avatar Martin Bauer
Browse files

Added 'debug' jobclass to pizdaint scripts

parent 7951df7f
No related merge requests found
......@@ -7,7 +7,7 @@
#SBATCH --ntasks-per-core={tasks_per_core}
#SBATCH --ntasks-per-node={tasks_per_node}
#SBATCH --cpus-per-task={cpus_per_task}
#SBATCH --partition=normal
#SBATCH --partition={partition}
#SBATCH --constraint=gpu
{additional_lines}
......
......@@ -37,6 +37,10 @@ def createJobscript(wall_time=None, nodes=None, cores=None, initial_dir=None, jo
if not error_file:
error_file = job_name
partition = 'normal'
if nodes <= 4 and wall_time.total_seconds() < 30 * 60:
partition = 'debug'
tasks_per_node = min(CORES_PER_NODE, cores)
additional_lines = ""
if account:
......@@ -52,10 +56,11 @@ def createJobscript(wall_time=None, nodes=None, cores=None, initial_dir=None, jo
output_file=output_file,
additional_lines=additional_lines,
error_file=error_file,
partition=partition,
job_name=job_name,
wall_time=wall_time)
exec_line = "srun %s %s \n"
exec_line = "srun -n %d %s %s \n"
if exe_name is not None:
for param_file in parameter_files:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment