Skip to content

Commit

Permalink
Merge pull request #48 from GEOS-ESM/feature/mathomp4/reduce-jobs
Browse files Browse the repository at this point in the history
Reduce number of jobs in make step at NCCS and NAS
  • Loading branch information
mathomp4 committed Oct 14, 2020
2 parents 35455f6 + b4c82b8 commit 4a7eb2e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.csh
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,15 @@ if ( ($SITE == NCCS) || ($SITE == NAS) ) then
# use set number of CPUs on NCCS or NAS
#--------------------------------------
@ ncpus_val = $NCPUS_DFLT
@ numjobs_val = $ncpus_val - 2 # save some CPUs for memory
@ numjobs_val = $ncpus_val / 3 # save some CPUs for memory

# use only even number of CPUs
#-----------------------------
@ check = ( $numjobs_val % 2 )
if ($check == 1) then
@ numjobs_val --
echo "Rounding down to an even $numjobs_val CPUs."
endif

# Are we on a compute node?
# -------------------------
Expand Down

0 comments on commit 4a7eb2e

Please sign in to comment.