Neko 1.99.6
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
buffer.h File Reference
#include <stddef.h>
Include dependency graph for buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hip_buffer
 

Macros

#define HIP_BUFFER_INIT   {NULL, NULL, 0, 0, 0, NULL}
 
#define HIP_BUFFER_INIT_DEV   {NULL, NULL, 0, 1, 0, NULL}
 

Typedefs

typedef struct hip_buffer hip_buffer_t
 

Functions

void hip_buffer_reserve (hip_buffer_t *buf, size_t size)
 
void hip_buffer_free_all (void)
 

Macro Definition Documentation

◆ HIP_BUFFER_INIT

#define HIP_BUFFER_INIT   {NULL, NULL, 0, 0, 0, NULL}

Definition at line 61 of file buffer.h.

◆ HIP_BUFFER_INIT_DEV

#define HIP_BUFFER_INIT_DEV   {NULL, NULL, 0, 1, 0, NULL}

Definition at line 62 of file buffer.h.

Typedef Documentation

◆ hip_buffer_t

Definition at line 59 of file buffer.h.

Function Documentation

◆ hip_buffer_free_all()

void hip_buffer_free_all ( void  )

Free all registered buffers and reset them to an empty state

Definition at line 70 of file buffer.hip.

Here is the call graph for this function:

◆ hip_buffer_reserve()

void hip_buffer_reserve ( hip_buffer_t buf,
size_t  size 
)

Ensure that a buffer holds at least size bytes on both the host and the device side (device side only for device-only buffers), growing it if necessary

Definition at line 47 of file buffer.hip.

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