Fix building with USE_NUMA

This commit is contained in:
Matthias Hochsteger 2024-09-02 10:14:04 +02:00
parent 16c49d41eb
commit 00664898c3

View File

@ -10,6 +10,7 @@
#include <atomic> #include <atomic>
#include <functional> #include <functional>
#include <list> #include <list>
#include <cmath>
#include <ostream> #include <ostream>
#include <thread> #include <thread>
@ -1010,7 +1011,7 @@ public:
int num_nodes = numa_num_configured_nodes(); int num_nodes = numa_num_configured_nodes();
size_t pagesize = numa_pagesize(); size_t pagesize = numa_pagesize();
int npages = ceil ( double(s)*sizeof(T) / pagesize ); int npages = std::ceil ( double(s)*sizeof(T) / pagesize );
// cout << "size = " << numa_size << endl; // cout << "size = " << numa_size << endl;
// cout << "npages = " << npages << endl; // cout << "npages = " << npages << endl;