Refs trac:3429
Fix bug reported by FreyGuy19713: in cases where HNP node has multiple entries in a hostfile or other allocation, we need to track the total slots allocated to that node. This commit was SVN r27673. The following Trac tickets were found above: Ticket 3429 --> https://svn.open-mpi.org/trac/ompi/ticket/3429
Этот коммит содержится в:
родитель
c5b0bcd9f7
Коммит
2fdd367aa9
@ -9,7 +9,7 @@
|
|||||||
* University of Stuttgart. All rights reserved.
|
* University of Stuttgart. All rights reserved.
|
||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2011 Los Alamos National Security, LLC. All rights
|
* Copyright (c) 2011-2012 Los Alamos National Security, LLC. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
@ -112,17 +112,12 @@ int orte_ras_base_node_insert(opal_list_t* nodes, orte_job_t *jdata)
|
|||||||
|
|
||||||
/* flag that hnp has been allocated */
|
/* flag that hnp has been allocated */
|
||||||
orte_hnp_is_allocated = true;
|
orte_hnp_is_allocated = true;
|
||||||
/* adjust the total slots in the job - note
|
/* update the total slots in the job */
|
||||||
* that the HNP ess module will not have entered
|
orte_ras_base.total_slots_alloc += node->slots;
|
||||||
* a value for its slots, so that will be zero.
|
|
||||||
* Thus, this only has impact if we re-allocate
|
|
||||||
*/
|
|
||||||
orte_ras_base.total_slots_alloc -= hnp_node->slots;
|
|
||||||
/* copy the allocation data to that node's info */
|
/* copy the allocation data to that node's info */
|
||||||
hnp_node->slots = node->slots;
|
hnp_node->slots += node->slots;
|
||||||
hnp_node->slots_max = node->slots_max;
|
hnp_node->slots_max = node->slots_max;
|
||||||
hnp_node->launch_id = node->launch_id;
|
hnp_node->launch_id = node->launch_id;
|
||||||
hnp_node->slots = node->slots;
|
|
||||||
if (orte_managed_allocation) {
|
if (orte_managed_allocation) {
|
||||||
/* the slots are always treated as sacred
|
/* the slots are always treated as sacred
|
||||||
* in managed allocations
|
* in managed allocations
|
||||||
@ -152,8 +147,6 @@ int orte_ras_base_node_insert(opal_list_t* nodes, orte_job_t *jdata)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* update the total slots in the job */
|
|
||||||
orte_ras_base.total_slots_alloc += hnp_node->slots;
|
|
||||||
/* don't keep duplicate copy */
|
/* don't keep duplicate copy */
|
||||||
OBJ_RELEASE(node);
|
OBJ_RELEASE(node);
|
||||||
} else {
|
} else {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user