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