|
LLVM OpenMP 22.0.0git
|
#include <stdlib.h>#include <omp.h>Go to the source code of this file.
Macros | |
| #define | NUM_DEVICES 4 |
| #define | CHECK_OR_RET_FAIL(Expr) |
Functions | |
| int | __tgt_get_num_devices (void) |
| int | __tgt_get_mem_resources (int num_devices, const int *devices, int host, omp_memspace_handle_t memspace, int *resources) |
| void * | __tgt_omp_alloc (size_t size, omp_allocator_handle_t allocator) |
| void | __tgt_omp_free (void *ptr, omp_allocator_handle_t allocator) |
| static int | test_user_allocator (omp_memspace_handle_t ms) |
| static int | test_allocator (omp_allocator_handle_t al) |
| static int | test_mem_space (void) |
| static int | test_mem_allocator (void) |
| static int | test_sub_mem_space (void) |
| int | main () |
| #define CHECK_OR_RET_FAIL | ( | Expr | ) |
Definition at line 43 of file omp60_memory_routines.c.
Referenced by main(), test_allocator(), test_mem_allocator(), test_mem_space(), test_sub_mem_space(), and test_user_allocator().
| #define NUM_DEVICES 4 |
Definition at line 11 of file omp60_memory_routines.c.
Referenced by __tgt_get_num_devices(), test_mem_allocator(), test_mem_space(), and test_sub_mem_space().
|
extern |
Definition at line 18 of file omp60_memory_routines.c.
References i.
Definition at line 16 of file omp60_memory_routines.c.
References NUM_DEVICES.
|
extern |
Definition at line 33 of file omp60_memory_routines.c.
References size.
|
extern |
Definition at line 37 of file omp60_memory_routines.c.
Definition at line 217 of file omp60_memory_routines.c.
References CHECK_OR_RET_FAIL, test_mem_allocator(), test_mem_space(), and test_sub_mem_space().
|
static |
Definition at line 61 of file omp60_memory_routines.c.
References CHECK_OR_RET_FAIL, omp_alloc(), and omp_free().
Referenced by test_mem_allocator().
Definition at line 135 of file omp60_memory_routines.c.
References CHECK_OR_RET_FAIL, count, i, NUM_DEVICES, omp_default_mem_space, omp_get_num_devices(), omp_null_allocator, and test_allocator().
Referenced by main().
Definition at line 69 of file omp60_memory_routines.c.
References CHECK_OR_RET_FAIL, count, i, NUM_DEVICES, omp_default_mem_space, omp_get_num_devices(), omp_null_mem_space, and test_user_allocator().
Referenced by main().
Definition at line 189 of file omp60_memory_routines.c.
References CHECK_OR_RET_FAIL, i, NUM_DEVICES, omp_default_mem_space, omp_null_mem_space, and sub.
Referenced by main().
|
static |
Definition at line 50 of file omp60_memory_routines.c.
References CHECK_OR_RET_FAIL, omp_alloc(), omp_free(), and omp_null_allocator.
Referenced by test_mem_space().