diff options
Diffstat (limited to 'intern/numaapi/include/numaapi.h')
-rw-r--r-- | intern/numaapi/include/numaapi.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/intern/numaapi/include/numaapi.h b/intern/numaapi/include/numaapi.h index 7b5b50fdf39..bddb51448f8 100644 --- a/intern/numaapi/include/numaapi.h +++ b/intern/numaapi/include/numaapi.h @@ -71,6 +71,16 @@ bool numaAPI_IsNodeAvailable(int node); int numaAPI_GetNumNodeProcessors(int node); //////////////////////////////////////////////////////////////////////////////// +// Topology helpers. +// +// Those are a bit higher level queries, but is still rather platform-specific +// and generally useful. + +// Get number of processors within the NUMA nodes on which current thread is +// set affinity on. +int numaAPI_GetNumCurrentNodesProcessors(void); + +//////////////////////////////////////////////////////////////////////////////// // Affinities. // Runs the current process and its children on a specific node. |