need to use get_first instead of get_begin since we don't want to execute
this loop if "nodes" is an empty list. get_first, in this loop context, allows us to do just that, while get_begin doesn't. This fixes a --host problem that appeared on the Linux PPC64 build. This commit was SVN r7703.
Этот коммит содержится в:
родитель
7b07dbc163
Коммит
af9ccdf04a
@ -131,7 +131,7 @@ static int orte_ras_dash_host_allocate(orte_jobid_t jobid)
|
|||||||
duplicate */
|
duplicate */
|
||||||
|
|
||||||
for (i = 0; NULL != mapped_nodes[i]; ++i) {
|
for (i = 0; NULL != mapped_nodes[i]; ++i) {
|
||||||
for (item = opal_list_get_begin(&nodes);
|
for (item = opal_list_get_first(&nodes);
|
||||||
item != opal_list_get_end(&nodes);
|
item != opal_list_get_end(&nodes);
|
||||||
item = opal_list_get_next(item)) {
|
item = opal_list_get_next(item)) {
|
||||||
node = (orte_ras_node_t*) item;
|
node = (orte_ras_node_t*) item;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user