From 41d4ee7c1b7c245be37d38e60df5777d904e4029 Mon Sep 17 00:00:00 2001 From: hategan Date: Thu, 9 Jan 2025 15:19:53 -0800 Subject: [PATCH] On Frontier, the node count is mandatory. We should probably discuss having one node as a default and specify that in the spec. In the mean time, add one node as default for slurm. --- src/psij/executors/batch/slurm/slurm.mustache | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/psij/executors/batch/slurm/slurm.mustache b/src/psij/executors/batch/slurm/slurm.mustache index b044ba27..962bc2ab 100644 --- a/src/psij/executors/batch/slurm/slurm.mustache +++ b/src/psij/executors/batch/slurm/slurm.mustache @@ -38,6 +38,9 @@ #SBATCH --cpus-per-task={{.}} {{/cpu_cores_per_process}} {{/job.spec.resources}} +{{^job.spec.resources}} +#SBATCH --nodes=1 +{{/job.spec.resources}} {{#formatted_job_duration}} #SBATCH --time={{.}}