Skip to content

Commit 2388c74

Browse files
committed
Log numa bandwidth query errors
1 parent 8553ef5 commit 2388c74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/memory_targets/memory_target_numa.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "base_alloc_global.h"
2020
#include "memory_target_numa.h"
2121
#include "topology.h"
22+
#include "utils_log.h"
2223

2324
struct numa_memory_target_t {
2425
unsigned physical_id;
@@ -177,6 +178,8 @@ static umf_result_t numa_get_bandwidth(void *srcMemoryTarget,
177178
int ret = hwloc_memattr_get_value(topology, HWLOC_MEMATTR_ID_BANDWIDTH,
178179
dstNumaNode, &initiator, 0, &value);
179180
if (ret) {
181+
LOG_ERR("Retrieving bandwidth for initiator node %u to node %u failed.",
182+
srcNumaNode->os_index, dstNumaNode->os_index);
180183
return (errno == EINVAL) ? UMF_RESULT_ERROR_NOT_SUPPORTED
181184
: UMF_RESULT_ERROR_UNKNOWN;
182185
}

0 commit comments

Comments
 (0)