1
1

hwloc/shmem: don't abort on failure to load from shmem

Adopting can fail if the server-side hole isn't available on the client.

We can fallback to other ways to load the topology.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
Этот коммит содержится в:
Brice Goglin 2017-08-21 16:12:32 +02:00
родитель ffd209fc2e
Коммит 2d242ab9f0

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

@ -326,13 +326,13 @@ int opal_hwloc_base_get_topology(void)
fclose(file); fclose(file);
} }
} }
OPAL_ERROR_LOG(OPAL_ERR_FILE_READ_FAILURE); /* failed to adopt from shmem, fallback to other ways to get the topology */
return OPAL_ERR_FILE_READ_FAILURE; } else {
opal_output_verbose(2, opal_hwloc_base_framework.framework_output,
"hwloc:base: topology in shared memory");
topo_in_shmem = true;
return OPAL_SUCCESS;
} }
opal_output_verbose(2, opal_hwloc_base_framework.framework_output,
"hwloc:base: topology in shared memory");
topo_in_shmem = true;
return OPAL_SUCCESS;
} }
#endif #endif
/* if that isn't available, then try to retrieve /* if that isn't available, then try to retrieve