diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-11 19:47:10 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-11 19:47:10 +0300 |
commit | ff44a9957ee553a71585e66ffea615503075313a (patch) | |
tree | 4188c0aca8644026cdbc5368febf7cda72b899d8 /intern/numaapi/include/numaapi.h | |
parent | c1dd74580ed8352b9f6c96d816a604ebb4f3c39d (diff) |
Update bundled version of NUMA API library
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. |