summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-06-04 14:22:49 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-06-04 14:22:49 +0200
commitc38c071f71b05df3a307ed1c24f818a0b3feca86 (patch)
tree2e06dac171fd545fe521f61526441ea19740dd7d /src
parent1e6f179dce6e87e7cca9d4b86b8d0450df9dbb2f (diff)
unconditionally compile with NUMA
Diffstat (limited to 'src')
-rw-r--r--src/experiment.cpp4
-rw-r--r--src/run.cpp8
2 files changed, 0 insertions, 12 deletions
diff --git a/src/experiment.cpp b/src/experiment.cpp
index 7551d1f..4b9e31a 100644
--- a/src/experiment.cpp
+++ b/src/experiment.cpp
@@ -22,9 +22,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#if defined(NUMA)
#include <numa.h>
-#endif
// Local includes
#include "chain.h"
@@ -490,10 +488,8 @@ int Experiment::parse_args(int argc, char* argv[]) {
break;
}
-#if defined(NUMA)
this->numa_max_domain = numa_max_node();
this->num_numa_domains = this->numa_max_domain + 1;
-#endif
switch (this->numa_placement) {
case LOCAL:
diff --git a/src/run.cpp b/src/run.cpp
index 669b0f3..baa5b02 100644
--- a/src/run.cpp
+++ b/src/run.cpp
@@ -23,9 +23,7 @@
#include <unistd.h>
#include <cstddef>
#include <algorithm>
-#if defined(NUMA)
#include <numa.h>
-#endif
// Local includes
#include <AsmJit/AsmJit.h>
@@ -67,7 +65,6 @@ int Run::run() {
Chain** chain_memory = new Chain*[this->exp->chains_per_thread];
Chain** root = new Chain*[this->exp->chains_per_thread];
-#if defined(NUMA)
// establish the node id where this thread
// will run. threads are mapped to nodes
// by the set-up code for Experiment.
@@ -86,11 +83,6 @@ int Run::run() {
chain_memory[i] = new Chain[ this->exp->links_per_chain ];
}
-#else
- for (int i = 0; i < this->exp->chains_per_thread; i++) {
- chain_memory[i] = new Chain[this->exp->links_per_chain];
- }
-#endif
// initialize the chains and
// select the function that