From 1e6f179dce6e87e7cca9d4b86b8d0450df9dbb2f Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 4 Jun 2024 12:06:34 +0200 Subject: run.cpp: Adjust for today's NUMA API --- src/run.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/run.cpp b/src/run.cpp index c3e2495..669b0f3 100644 --- a/src/run.cpp +++ b/src/run.cpp @@ -78,10 +78,11 @@ int Run::run() { // memory will be allocated. for (int i=0; i < this->exp->chains_per_thread; i++) { int alloc_node_id = this->exp->chain_domain[this->thread_id()][i]; - nodemask_t alloc_mask; - nodemask_zero(&alloc_mask); - nodemask_set(&alloc_mask, alloc_node_id); - numa_set_membind(&alloc_mask); + struct bitmask *bitmask = numa_allocate_nodemask(); + numa_bitmask_clearall(bitmask); + numa_bitmask_setbit(bitmask, alloc_node_id); + numa_set_membind(bitmask); + numa_free_nodemask(bitmask); chain_memory[i] = new Chain[ this->exp->links_per_chain ]; } -- cgit v1.2.3