![]() |
(git:f56c6e3)
|
#include <stddef.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | offload_mempool_stats_t |
| Internal struct for pool statistics. More... | |
Typedefs | |
| typedef struct offload_mempool_stats_t | offload_mempool_stats_t |
| Internal struct for pool statistics. | |
Functions | |
| void * | offload_mempool_host_malloc (size_t size) |
| Internal routine for allocating host memory from the pool. | |
| void * | offload_mempool_device_malloc (size_t size) |
| Internal routine for allocating device memory from the pool. | |
| void | offload_mempool_host_free (const void *memory) |
| Internal routine for releasing memory back to the pool. | |
| void | offload_mempool_device_free (const void *memory) |
| Internal routine for releasing memory back to the pool. | |
| void | offload_mempool_clear (void) |
| Internal routine for freeing all memory in the pool. | |
| void | offload_mempool_stats_get (offload_mempool_stats_t *memstats) |
| Internal routine to query statistics. | |
| void | offload_mempool_stats_print (int fortran_comm, void(*print_func)(const char *, int, int), int output_unit) |
| Print allocation statistics. | |
| typedef struct offload_mempool_stats_t offload_mempool_stats_t |
Internal struct for pool statistics.
| void * offload_mempool_host_malloc | ( | const size_t | size | ) |
Internal routine for allocating host memory from the pool.
Definition at line 205 of file offload_mempool.c.
| void * offload_mempool_device_malloc | ( | const size_t | size | ) |
Internal routine for allocating device memory from the pool.
Definition at line 213 of file offload_mempool.c.
| void offload_mempool_host_free | ( | const void * | memory | ) |
Internal routine for releasing memory back to the pool.
Definition at line 249 of file offload_mempool.c.
| void offload_mempool_device_free | ( | const void * | memory | ) |
Internal routine for releasing memory back to the pool.
Definition at line 257 of file offload_mempool.c.
| void offload_mempool_clear | ( | void | ) |
Internal routine for freeing all memory in the pool.
Definition at line 286 of file offload_mempool.c.
| void offload_mempool_stats_get | ( | offload_mempool_stats_t * | memstats | ) |
Internal routine to query statistics.
Definition at line 321 of file offload_mempool.c.
| void offload_mempool_stats_print | ( | int | fortran_comm, |
| void(*)(const char *, int, int) | print_func, | ||
| int | output_unit | ||
| ) |
Print allocation statistics.
Print allocation statistics.
Definition at line 343 of file offload_mempool.c.