From 69a088220762aee08182fafd965c64c4b3898ef9 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Wed, 12 Oct 2011 21:34:46 +0000 Subject: [PATCH] Correctly setup hwloc when passing a topology from an external source This commit was SVN r25277. --- opal/mca/hwloc/base/hwloc_base_dt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opal/mca/hwloc/base/hwloc_base_dt.c b/opal/mca/hwloc/base/hwloc_base_dt.c index 9511811392..4e2b2395d9 100644 --- a/opal/mca/hwloc/base/hwloc_base_dt.c +++ b/opal/mca/hwloc/base/hwloc_base_dt.c @@ -66,6 +66,11 @@ int opal_hwloc_unpack(opal_buffer_t *buffer, void *dest, hwloc_topology_destroy(t); goto cleanup; } + /* since we are loading this from an external source, we have to + * explicitly set a flag so hwloc sets things up correctly + */ + hwloc_topology_set_flags(t, HWLOC_TOPOLOGY_FLAG_IS_THISSYSTEM); + /* now load the topology */ hwloc_topology_load(t); if (NULL != xmlbuffer) { free(xmlbuffer);