Commit 6269e9c7 authored by Ondrej Vysocky's avatar Ondrej Vysocky
Browse files

FIX not include numa.h if it is not available #59

parent 33e47fef
...@@ -189,7 +189,7 @@ void Environment::initHWSizes() ...@@ -189,7 +189,7 @@ void Environment::initHWSizes()
NODE_SIZE_SOCKET = x86_adapt_get_nr_avaible_devices(X86_ADAPT_DIE); NODE_SIZE_SOCKET = x86_adapt_get_nr_avaible_devices(X86_ADAPT_DIE);
//NODE_SIZE_THREAD = 1; TODO get real number of avail threads per core - not used now //NODE_SIZE_THREAD = 1; TODO get real number of avail threads per core - not used now
SOCKET_SIZE_CPU = NODE_SIZE_CPU / NODE_SIZE_SOCKET; SOCKET_SIZE_CPU = NODE_SIZE_CPU / NODE_SIZE_SOCKET;
#else #else //ifdef HAVE_NUMA_H
NODE_SIZE_CPU = sysconf(_SC_NPROCESSORS_ONLN); NODE_SIZE_CPU = sysconf(_SC_NPROCESSORS_ONLN);
NODE_SIZE_SOCKET = numa_node_of_cpu(NODE_SIZE_CPU-1)+1; NODE_SIZE_SOCKET = numa_node_of_cpu(NODE_SIZE_CPU-1)+1;
//NODE_SIZE_THREAD = 1; TODO //NODE_SIZE_THREAD = 1; TODO
......
...@@ -11,7 +11,9 @@ ...@@ -11,7 +11,9 @@
#include <stdint.h> #include <stdint.h>
#include <memory> #include <memory>
#include "x86_adapt.h" #include "x86_adapt.h"
#else #endif
#ifdef HAVE_NUMA_H
#include <numa.h> #include <numa.h>
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment