Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/header/TransferBench.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,10 @@ namespace {
if (IsCpuMemType(memType)) {

// Set NUMA policy prior to call to hipHostMalloc
numa_set_preferred(deviceIdx);
// Skip memory-less NUMA nodes to avoid set_mempolicy EINVAL
if (deviceIdx < 0 || numa_bitmask_isbitset(numa_get_mems_allowed(), deviceIdx)) {
numa_set_preferred(deviceIdx);
}
Comment on lines +1551 to +1554

// Allocate host-pinned memory (should respect NUMA mem policy)
int flags = 0;
Expand Down