Neko 1.99.6
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
buffer.hip File Reference
#include <hip/hip_runtime.h>
#include <device/device_config.h>
#include <device/hip/check.h>
#include <device/hip/buffer.h>

Go to the source code of this file.

Functions

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

Variables

static hip_buffer_tbuffer_registry = NULL
 

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:

Variable Documentation

◆ buffer_registry

hip_buffer_t* buffer_registry = NULL
static

Registry of all reserved device buffers

Definition at line 45 of file buffer.hip.