From 168df2b2ac053046d1e411aff75d06da3b5b8995 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Fri, 23 Jan 2004 19:30:09 +0000 Subject: [PATCH] Increase a partition's processor count for an oversized node only if fast_schedule == 0 (i.e. the node's value is used directly rather than the partition's configuration value). --- src/slurmctld/node_mgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slurmctld/node_mgr.c b/src/slurmctld/node_mgr.c index c0c5c6e4ac9..2ce7de8329d 100644 --- a/src/slurmctld/node_mgr.c +++ b/src/slurmctld/node_mgr.c @@ -1111,7 +1111,8 @@ validate_node_specs (char *node_name, uint32_t cpus, reason_down = "Low CPUs"; } node_ptr->cpus = cpus; - if ((config_ptr->cpus != cpus) && (node_ptr->partition_ptr)) + if ((config_ptr->cpus != cpus) && (node_ptr->partition_ptr) && + (slurmctld_conf.fast_schedule == 0)) node_ptr->partition_ptr->total_cpus += (cpus - config_ptr->cpus); -- GitLab