1
1

Minor fix for the min-dist mapping algorithm: we need to call 'get_nbobjs_by_type' first, before we get the sorted list of nodes - we need to add node objects and fill them in the summary object for the current topology. This patch was submitted by Elena Elkina and pushed by Josh Ladd. This should be added to cmr:v1.7:reviewer=jladd

This commit was SVN r28578.
Этот коммит содержится в:
Joshua Ladd 2013-05-31 15:19:59 +00:00
родитель d1dc4da292
Коммит 61ffb47573
2 изменённых файлов: 4 добавлений и 1 удалений

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

@ -93,7 +93,7 @@ Trunk (not on release branches yet)
formats. formats.
- Added Location Aware Mapping Algorithm (LAMA) mapping component. - Added Location Aware Mapping Algorithm (LAMA) mapping component.
- Fixes for MPI_STATUS handling in corner cases.- - Fixes for MPI_STATUS handling in corner cases.-
- Add a distance-based mapping component to find the socket "closest" to the PCI bus.
1.7.1 1.7.1
----- -----

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

@ -241,6 +241,9 @@ static int mindist_map(orte_job_t *jdata)
} }
} }
} }
/* first we need to fill summary object for root with information about nodes
* so we call opal_hwloc_base_get_nbobjs_by_type */
opal_hwloc_base_get_nbobjs_by_type(node->topology, HWLOC_OBJ_NODE, 0, OPAL_HWLOC_AVAILABLE);
OBJ_CONSTRUCT(&numa_list, opal_list_t); OBJ_CONSTRUCT(&numa_list, opal_list_t);
opal_hwloc_get_sorted_numa_list(node->topology, orte_rmaps_base.device, &numa_list); opal_hwloc_get_sorted_numa_list(node->topology, orte_rmaps_base.device, &numa_list);
if (opal_list_get_size(&numa_list) > 0) { if (opal_list_get_size(&numa_list) > 0) {