Blender  V2.93
Macros | Typedefs | Enumerations | Functions
numaapi.h File Reference
#include <stdbool.h>
#include <stddef.h>

Go to the source code of this file.

Macros

#define NUMAAPI_VERSION_MAJOR   1
 
#define NUMAAPI_VERSION_MINOR   0
 

Typedefs

typedef enum NUMAAPI_Result NUMAAPI_Result
 

Enumerations

enum  NUMAAPI_Result { NUMAAPI_SUCCESS = 0 , NUMAAPI_NOT_AVAILABLE = 1 , NUMAAPI_ERROR = 2 , NUMAAPI_ERROR_ATEXIT = 3 }
 

Functions

NUMAAPI_Result numaAPI_Initialize (void)
 
const char * numaAPI_ResultAsString (NUMAAPI_Result result)
 
int numaAPI_GetNumNodes (void)
 
bool numaAPI_IsNodeAvailable (int node)
 
int numaAPI_GetNumNodeProcessors (int node)
 
int numaAPI_GetNumCurrentNodesProcessors (void)
 
bool numaAPI_RunProcessOnNode (int node)
 
bool numaAPI_RunThreadOnNode (int node)
 
void * numaAPI_AllocateOnNode (size_t size, int node)
 
void * numaAPI_AllocateLocal (size_t size)
 
void numaAPI_Free (void *start, size_t size)
 

Macro Definition Documentation

◆ NUMAAPI_VERSION_MAJOR

#define NUMAAPI_VERSION_MAJOR   1

Definition at line 33 of file numaapi.h.

◆ NUMAAPI_VERSION_MINOR

#define NUMAAPI_VERSION_MINOR   0

Definition at line 34 of file numaapi.h.

Typedef Documentation

◆ NUMAAPI_Result

Enumeration Type Documentation

◆ NUMAAPI_Result

Enumerator
NUMAAPI_SUCCESS 
NUMAAPI_NOT_AVAILABLE 
NUMAAPI_ERROR 
NUMAAPI_ERROR_ATEXIT 

Definition at line 36 of file numaapi.h.

Function Documentation

◆ numaAPI_AllocateLocal()

void* numaAPI_AllocateLocal ( size_t  size)

Definition at line 84 of file numaapi_stub.c.

References NULL, and size().

◆ numaAPI_AllocateOnNode()

void* numaAPI_AllocateOnNode ( size_t  size,
int  node 
)

Definition at line 78 of file numaapi_stub.c.

References node, and size().

◆ numaAPI_Free()

void numaAPI_Free ( void *  start,
size_t  size 
)

Definition at line 89 of file numaapi_stub.c.

References size().

◆ numaAPI_GetNumCurrentNodesProcessors()

int numaAPI_GetNumCurrentNodesProcessors ( void  )

Definition at line 58 of file numaapi_stub.c.

Referenced by system_cpu_num_active_group_processors().

◆ numaAPI_GetNumNodeProcessors()

int numaAPI_GetNumNodeProcessors ( int  node)

Definition at line 50 of file numaapi_stub.c.

References node.

Referenced by system_cpu_num_numa_node_processors().

◆ numaAPI_GetNumNodes()

int numaAPI_GetNumNodes ( void  )

Definition at line 41 of file numaapi_stub.c.

Referenced by system_cpu_num_numa_nodes().

◆ numaAPI_Initialize()

NUMAAPI_Result numaAPI_Initialize ( void  )

Definition at line 34 of file numaapi_stub.c.

References NUMAAPI_NOT_AVAILABLE.

Referenced by BLI_threadapi_init(), and system_cpu_ensure_initialized().

◆ numaAPI_IsNodeAvailable()

bool numaAPI_IsNodeAvailable ( int  node)

Definition at line 45 of file numaapi_stub.c.

References node.

Referenced by system_cpu_is_numa_node_available().

◆ numaAPI_ResultAsString()

const char* numaAPI_ResultAsString ( NUMAAPI_Result  result)

◆ numaAPI_RunProcessOnNode()

bool numaAPI_RunProcessOnNode ( int  node)

Definition at line 65 of file numaapi_stub.c.

References node.

◆ numaAPI_RunThreadOnNode()

bool numaAPI_RunThreadOnNode ( int  node)

Definition at line 70 of file numaapi_stub.c.

References node.

Referenced by system_cpu_run_thread_on_node().