1
1

hwloc: do not count not allowed cores in df_search_cores

Этот коммит содержится в:
Gilles Gouaillardet 2015-09-17 13:10:34 +09:00
родитель 131681acc6
Коммит 975b6fd51b

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

@ -492,6 +492,10 @@ static void df_search_cores(hwloc_obj_t obj, unsigned int *cnt)
obj->userdata = (void*)data;
}
if (NULL == opal_hwloc_base_cpu_set) {
if (!hwloc_bitmap_isincluded(obj->cpuset, obj->allowed_cpuset)) {
/* do not count not allowed cores */
return;
}
data->npus = 1;
}
*cnt += data->npus;