LLVM OpenMP* Runtime Library
|
Public Member Functions | |
void | init () |
Initialize memory space list. | |
void | fini () |
Release resources for the memory space list. | |
omp_memspace_handle_t | get_memspace (int num_devices, const int *devices, int host_access, omp_memspace_handle_t memspace) |
Return memory space for the provided input. | |
omp_memspace_handle_t | get_memspace (int num_resources, const int *resources, omp_memspace_handle_t parent) |
Return sub memory space from the parent memory space. | |
Private Member Functions | |
kmp_memspace_t * | find (int num_resources, const int *resources, omp_memspace_handle_t memspace) |
Find memory space that matches the provided input. | |
omp_memspace_handle_t | get (int num_resources, const int *resources, omp_memspace_handle_t memspace) |
Maintain a list of target memory spaces that are identified with the requested information. There will be only one unique memory space object that matches the input.
Definition at line 1346 of file kmp_alloc.cpp.
|
inlineprivate |
Return memory space for the provided input. It tries to find existing memory space that exactly matches the provided input or create one if not found.
Definition at line 1364 of file kmp_alloc.cpp.
Referenced by get_memspace().