1
1

Check the return code from opal_paffinity before continuing to set maffinity as it can only be done if the map_to_socket_core function succeeds.

This commit was SVN r19396.
Этот коммит содержится в:
Ralph Castain 2008-08-23 03:13:29 +00:00
родитель b45029fd0e
Коммит f722f134f7

Просмотреть файл

@ -138,7 +138,7 @@ static void init_maffinity(int *my_mem_node, int *max_mem_node)
{
static opal_carto_graph_t *topo;
opal_value_array_t dists;
int i, num_core, socket, rc;
int i, num_core, socket;
opal_paffinity_base_cpu_set_t cpus;
char *myslot = NULL;
opal_carto_node_distance_t *dist;
@ -165,7 +165,11 @@ static void init_maffinity(int *my_mem_node, int *max_mem_node)
if(OPAL_PAFFINITY_CPU_ISSET(i, cpus))
break;
rc = opal_paffinity_base_get_map_to_socket_core(i, &socket, &i);
if (OMPI_SUCCESS != opal_paffinity_base_get_map_to_socket_core(i, &socket, &i)) {
/* no topology info available */
goto out;
}
asprintf(&myslot, "slot%d", socket);
slot_node = opal_carto_base_find_node(topo, myslot);