From 146e863d3bc61b5ea78be8cdf5d8211a9fe27c69 Mon Sep 17 00:00:00 2001 From: Gani Annaberdiyev Date: Mon, 14 Aug 2023 12:24:29 -0700 Subject: [PATCH] fix gpu jobs for perlmutter --- nexus/lib/machines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nexus/lib/machines.py b/nexus/lib/machines.py index 4983d47a77..2f04ffffb8 100644 --- a/nexus/lib/machines.py +++ b/nexus/lib/machines.py @@ -2314,7 +2314,7 @@ def write_job_header(self,job): echo $SLURM_SUBMIT_DIR cd $SLURM_SUBMIT_DIR ''' - if job.threads>1: + if (job.threads>1) and ('cpu' in job.constraint): c+=''' export OMP_PROC_BIND=true export OMP_PLACES=threads