7#ifndef OFFLOAD_MEMPOOL_H
8#define OFFLOAD_MEMPOOL_H
static void print_func(const char *msg, int, int output_unit)
Wrapper for printf, passed to dbm_library_print_stats.
subroutine, public offload_mempool_stats_print(mpi_comm, output_unit)
Print allocation statistics.
void offload_mempool_host_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_device_free(const void *memory)
Internal routine for releasing memory back to the pool.
void offload_mempool_stats_get(offload_mempool_stats_t *memstats)
Internal routine to query statistics.
void * offload_mempool_device_malloc(size_t size)
Internal routine for allocating device memory from the pool.
void * offload_mempool_host_malloc(size_t size)
Internal routine for allocating host memory from the pool.
Internal struct for pool statistics.