Caffe2 - C++ API
A deep learning, cross platform ML framework
numa.h
1 #ifndef CAFFE2_CORE_NUMA_H_
2 #define CAFFE2_CORE_NUMA_H_
3 
4 #include "caffe2/core/logging.h"
5 
6 CAFFE2_DECLARE_bool(caffe2_cpu_numa_enabled);
7 
8 namespace caffe2 {
9 
10 bool IsNUMAEnabled();
11 
12 void NUMABind(int numa_node_id);
13 
14 int GetNUMANode(const void* ptr);
15 
16 int GetNumNUMANodes();
17 
18 void NUMAMove(void* ptr, size_t size, int numa_node_id);
19 
20 int GetCurrentNUMANode();
21 
22 } // namespace caffe2
23 
24 #endif // CAFFE2_CORE_NUMA_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...