scheduler: reflect min_ncpus in multithread mem calculation (from WWU)

This commit is contained in:
David Anderson 2016-07-13 13:20:51 -07:00
parent 6a0713c0a0
commit 4a6c20e043
1 changed files with 2 additions and 1 deletions

View File

@ -822,7 +822,8 @@ bool PLAN_CLASS_SPEC::check(SCHEDULER_REQUEST& sreq, HOST_USAGE& hu) {
// if per-CPU mem usage given
//
if (mem_usage_per_cpu) {
double mem_usage_seq = mem_usage_base + mem_usage_per_cpu;
if (!min_ncpus) min_ncpus = 1;
double mem_usage_seq = mem_usage_base + min_ncpus*mem_usage_per_cpu;
// see if client has enough memory to run at all
//