mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 22:00:33 +05:00
Fix building with USE_NUMA
This commit is contained in:
parent
16c49d41eb
commit
00664898c3
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user