Merge pull request #2145 from mvdbeek/pbs_ncpu

Use "$NCPUS" if defined to set GALAXY_SLOTS
This commit is contained in:
Nicola Soranzo
2016-04-14 15:50:06 +01:00
@@ -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