Skip to content

Commit

Permalink
Use "$NCPUS" if defined to set GALAXY_SLOTS
Browse files Browse the repository at this point in the history
On our PBS cluster we do not have $PBS_NCPUS, and $PBS_NODEFILE contains the
hostname of the nodes the task runs on. But we do have "$NCPUS" with the
correct number of CPUS.
  • Loading branch information
mvdbeek committed Apr 15, 2016
1 parent e193e46 commit 4343219
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ elif [ -n "$SLURM_NTASKS" ] || [ -n "$SLURM_CPUS_PER_TASK" ]; then
GALAXY_SLOTS=`expr "${SLURM_NTASKS:-1}" \* "${SLURM_CPUS_PER_TASK:-1}"`
elif [ -n "$NSLOTS" ]; then
GALAXY_SLOTS="$NSLOTS"
elif [ -n "$NCPUS" ]; then
GALAXY_SLOTS="$NCPUS"
elif [ -n "$PBS_NCPUS" ]; then
GALAXY_SLOTS="$PBS_NCPUS"
elif [ -f "$PBS_NODEFILE" ]; then
Expand Down

0 comments on commit 4343219

Please sign in to comment.