@@ -43,7 +43,7 @@ int orte_rmaps_rr_byslot(orte_job_t *jdata,
4343 orte_std_cntr_t num_slots ,
4444 orte_vpid_t num_procs )
4545{
46- int rc , i , nprocs_mapped ;
46+ int i , nprocs_mapped ;
4747 orte_node_t * node ;
4848 orte_proc_t * proc ;
4949 int num_procs_to_assign , extra_procs_to_assign = 0 , nxtra_nodes = 0 ;
@@ -94,12 +94,7 @@ int orte_rmaps_rr_byslot(orte_job_t *jdata,
9494 for (i = 0 ; i < num_procs_to_assign && nprocs_mapped < app -> num_procs ; i ++ ) {
9595 /* add this node to the map - do it only once */
9696 if (!ORTE_FLAG_TEST (node , ORTE_NODE_FLAG_MAPPED )) {
97- if (ORTE_SUCCESS > (rc = opal_pointer_array_add (jdata -> map -> nodes , (void * )node ))) {
98- ORTE_ERROR_LOG (rc );
99- return rc ;
100- }
10197 ORTE_FLAG_SET (node , ORTE_NODE_FLAG_MAPPED );
102- OBJ_RETAIN (node ); /* maintain accounting on object */
10398 ++ (jdata -> map -> num_nodes );
10499 }
105100 if (NULL == (proc = orte_rmaps_base_setup_proc (jdata , node , app -> idx ))) {
@@ -149,12 +144,7 @@ int orte_rmaps_rr_byslot(orte_job_t *jdata,
149144
150145 /* add this node to the map - do it only once */
151146 if (!ORTE_FLAG_TEST (node , ORTE_NODE_FLAG_MAPPED )) {
152- if (ORTE_SUCCESS > (rc = opal_pointer_array_add (jdata -> map -> nodes , (void * )node ))) {
153- ORTE_ERROR_LOG (rc );
154- return rc ;
155- }
156147 ORTE_FLAG_SET (node , ORTE_NODE_FLAG_MAPPED );
157- OBJ_RETAIN (node ); /* maintain accounting on object */
158148 ++ (jdata -> map -> num_nodes );
159149 }
160150 if (add_one ) {
@@ -221,7 +211,7 @@ int orte_rmaps_rr_bynode(orte_job_t *jdata,
221211 int j , nprocs_mapped , nnodes ;
222212 orte_node_t * node ;
223213 orte_proc_t * proc ;
224- int num_procs_to_assign , navg , idx ;
214+ int num_procs_to_assign , navg ;
225215 int extra_procs_to_assign = 0 , nxtra_nodes = 0 ;
226216 hwloc_obj_t obj = NULL ;
227217 float balance ;
@@ -293,12 +283,7 @@ int orte_rmaps_rr_bynode(orte_job_t *jdata,
293283 }
294284 /* add this node to the map, but only do so once */
295285 if (!ORTE_FLAG_TEST (node , ORTE_NODE_FLAG_MAPPED )) {
296- if (ORTE_SUCCESS > (idx = opal_pointer_array_add (jdata -> map -> nodes , (void * )node ))) {
297- ORTE_ERROR_LOG (idx );
298- return idx ;
299- }
300286 ORTE_FLAG_SET (node , ORTE_NODE_FLAG_MAPPED );
301- OBJ_RETAIN (node ); /* maintain accounting on object */
302287 ++ (jdata -> map -> num_nodes );
303288 }
304289 if (oversubscribed ) {
@@ -456,7 +441,6 @@ int orte_rmaps_rr_byobj(orte_job_t *jdata,
456441 orte_node_t * node ;
457442 orte_proc_t * proc ;
458443 int nprocs , start ;
459- int idx ;
460444 hwloc_obj_t obj = NULL ;
461445 unsigned int nobjs ;
462446 bool add_one ;
@@ -547,12 +531,7 @@ int orte_rmaps_rr_byobj(orte_job_t *jdata,
547531 }
548532 /* add this node to the map, if reqd */
549533 if (!ORTE_FLAG_TEST (node , ORTE_NODE_FLAG_MAPPED )) {
550- if (ORTE_SUCCESS > (idx = opal_pointer_array_add (jdata -> map -> nodes , (void * )node ))) {
551- ORTE_ERROR_LOG (idx );
552- return idx ;
553- }
554534 ORTE_FLAG_SET (node , ORTE_NODE_FLAG_MAPPED );
555- OBJ_RETAIN (node ); /* maintain accounting on object */
556535 ++ (jdata -> map -> num_nodes );
557536 }
558537 nmapped = 0 ;
@@ -638,7 +617,6 @@ static int byobj_span(orte_job_t *jdata,
638617 orte_node_t * node ;
639618 orte_proc_t * proc ;
640619 int nprocs , nxtra_objs ;
641- int idx ;
642620 hwloc_obj_t obj = NULL ;
643621 unsigned int nobjs ;
644622
@@ -699,12 +677,7 @@ static int byobj_span(orte_job_t *jdata,
699677 OPAL_LIST_FOREACH (node , node_list , orte_node_t ) {
700678 /* add this node to the map, if reqd */
701679 if (!ORTE_FLAG_TEST (node , ORTE_NODE_FLAG_MAPPED )) {
702- if (ORTE_SUCCESS > (idx = opal_pointer_array_add (jdata -> map -> nodes , (void * )node ))) {
703- ORTE_ERROR_LOG (idx );
704- return idx ;
705- }
706680 ORTE_FLAG_SET (node , ORTE_NODE_FLAG_MAPPED );
707- OBJ_RETAIN (node ); /* maintain accounting on object */
708681 ++ (jdata -> map -> num_nodes );
709682 }
710683 /* get the number of objects of this type on this node */
0 commit comments