3 #include <c10/util/Logging.h> 4 #include <c10/util/Optional.h> 6 C10_DECLARE_bool(caffe2_cpu_numa_enabled);
18 C10_API
void NUMABind(
int numa_node_id);
33 C10_API
void NUMAMove(
void* ptr,
size_t size,
int numa_node_id);
void NUMAMove(void *ptr, size_t size, int numa_node_id)
Move the memory pointed to by ptr of a given size to another NUMA node.
int GetCurrentNUMANode()
Get the current NUMA node id.
int GetNUMANode(const void *ptr)
Get the NUMA id for a given pointer ptr
bool IsNUMAEnabled()
Check whether NUMA is enabled.
To register your own kernel for an operator, do in one (!) cpp file: C10_REGISTER_KERNEL(OperatorHand...
void NUMABind(int numa_node_id)
Bind to a given NUMA node.
int GetNumNUMANodes()
Get number of NUMA nodes.