You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When submitting a PGAP singularity job using SLURM to a node slice, PGAP grabs all cores, which leads to problems for the other jobs running on that node
(our nodes have 128 cores /256 GB and a slice is 32 cores / 64GB, more than enough for our average PGAP job)
Describe the solution you'd like
determine the number of cores from the scheduler info, see additional context
Describe alternatives you've considered
provide the --cpus option similar to the node job settings. The PGAP logs still show 128 cores.
import os
#for SGE:
nslots = int(os.environ['NSLOTS']))
# for SLURM:
nslots = int(os.environ['SLURM_CPUS_PER_TASK']))
The text was updated successfully, but these errors were encountered:
vdejager
changed the title
determine the number of cores from the scheduler and not form the node
determine the number of cores from the scheduler and not from the node
Jan 17, 2023
@vdejager we have implemented the feature you requested, and it will be available in the next release of PGAP. In the interim, it would be very helpful to us if you could test it by running pgap.py from the dev branch (which can be found here: https://github.com/ncbi/pgap/blob/dev/scripts/pgap.py).
Please note that you'll need to provide the --no-self-update option.
Is your feature request related to a problem? Please describe.
When submitting a PGAP singularity job using SLURM to a node slice, PGAP grabs all cores, which leads to problems for the other jobs running on that node
(our nodes have 128 cores /256 GB and a slice is 32 cores / 64GB, more than enough for our average PGAP job)
Describe the solution you'd like
determine the number of cores from the scheduler info, see additional context
Describe alternatives you've considered
provide the --cpus option similar to the node job settings. The PGAP logs still show 128 cores.
Additional context
https://stackoverflow.com/questions/56267313/determine-number-of-processors-assigned-to-job
The text was updated successfully, but these errors were encountered: