diff --git a/ChangeLog b/ChangeLog index 6a7c63faa7..c12e01f37d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon May 12 2025 Łukasz Stolarczuk + + * Version 0.11.2 + + This patch release contains following changes: + - retrieve numanode object by os index instead of logical index (#1309) + Thu May 08 2025 Łukasz Stolarczuk * Version 0.11.1 diff --git a/src/memtargets/memtarget_numa.c b/src/memtargets/memtarget_numa.c index 51a6fbf08c..a0a1e592a0 100644 --- a/src/memtargets/memtarget_numa.c +++ b/src/memtargets/memtarget_numa.c @@ -263,17 +263,15 @@ static umf_result_t query_attribute_value(void *srcMemoryTarget, return UMF_RESULT_ERROR_NOT_SUPPORTED; } - hwloc_obj_t srcNumaNode = hwloc_get_obj_by_type( - topology, HWLOC_OBJ_NUMANODE, - ((struct numa_memtarget_t *)srcMemoryTarget)->physical_id); + hwloc_obj_t srcNumaNode = hwloc_get_numanode_obj_by_os_index( + topology, ((struct numa_memtarget_t *)srcMemoryTarget)->physical_id); if (!srcNumaNode) { LOG_PERR("Getting HWLOC object by type failed"); return UMF_RESULT_ERROR_INVALID_ARGUMENT; } - hwloc_obj_t dstNumaNode = hwloc_get_obj_by_type( - topology, HWLOC_OBJ_NUMANODE, - ((struct numa_memtarget_t *)dstMemoryTarget)->physical_id); + hwloc_obj_t dstNumaNode = hwloc_get_numanode_obj_by_os_index( + topology, ((struct numa_memtarget_t *)dstMemoryTarget)->physical_id); if (!dstNumaNode) { LOG_PERR("Getting HWLOC object by type failed"); return UMF_RESULT_ERROR_INVALID_ARGUMENT;