Skip to content
Snippets Groups Projects
Commit bb9f3d4f authored by Felip Moll's avatar Felip Moll Committed by Danny Auble
Browse files

Fix rejecting jobs under MaxMemPerCPU when allocating more cpus than tasks

MaxMemPerCPU can cause a job to be auto adjusted increasing pn_min_cpus due
to memory limits. In that situation if we also request --ntasks-per-node the
job may be rejected, because we may end up with too many cpus allocated to
the job. There shouldn't be any problem in allocating more cpus and not
using them if we require it due to MaxMemPerCPU. This works with --exclusive
flag.

This patch detects if there are enough cpus depending on pn_min_cpus and
for each node then it picks the maximum between this number and the
required cpus depending upon the job request.

Bug 9716
parent e52fe87d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment