Skip to content

Commit

Permalink
Merge pull request #4699 from aannabe/perlmutter_gpu
Browse files Browse the repository at this point in the history
Fix Nexus GPU jobs for NERSC/Perlmutter
  • Loading branch information
ye-luo authored Aug 15, 2023
2 parents c72edd1 + 146e863 commit b24ba10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nexus/lib/machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b24ba10

Please sign in to comment.