(git:e966546)
Loading...
Searching...
No Matches
offload_mempool.h File Reference
#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 Documentation

◆ offload_mempool_stats_t

Internal struct for pool statistics.

Author
Hans Pabst

Function Documentation

◆ offload_mempool_host_malloc()

void * offload_mempool_host_malloc ( const size_t  size)

Internal routine for allocating host memory from the pool.

Author
Ole Schuett

Definition at line 205 of file offload_mempool.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ offload_mempool_device_malloc()

void * offload_mempool_device_malloc ( const size_t  size)

Internal routine for allocating device memory from the pool.

Author
Ole Schuett

Definition at line 213 of file offload_mempool.c.

Here is the call graph for this function:

◆ offload_mempool_host_free()

void offload_mempool_host_free ( const void *  memory)

Internal routine for releasing memory back to the pool.

Author
Ole Schuett

Definition at line 249 of file offload_mempool.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ offload_mempool_device_free()

void offload_mempool_device_free ( const void *  memory)

Internal routine for releasing memory back to the pool.

Author
Ole Schuett

Definition at line 257 of file offload_mempool.c.

Here is the call graph for this function:

◆ offload_mempool_clear()

void offload_mempool_clear ( void  )

Internal routine for freeing all memory in the pool.

Author
Ole Schuett

Definition at line 286 of file offload_mempool.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ offload_mempool_stats_get()

void offload_mempool_stats_get ( offload_mempool_stats_t memstats)

Internal routine to query statistics.

Author
Hans Pabst

Definition at line 321 of file offload_mempool.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ offload_mempool_stats_print()

void offload_mempool_stats_print ( int  fortran_comm,
void(*)(const char *, int, int)  print_func,
int  output_unit 
)

Print allocation statistics.

Author
Hans Pabst

Print allocation statistics.

Author
Hans Pabst

Definition at line 343 of file offload_mempool.c.

Here is the call graph for this function: