Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
buffer.cu File Reference
Include dependency graph for buffer.cu:

Go to the source code of this file.

Functions

void cuda_buffer_reserve (cuda_buffer_t *buf, size_t size)
void cuda_buffer_free_all (void)

Variables

static cuda_buffer_t * buffer_registry = NULL

Function Documentation

◆ cuda_buffer_free_all()

void cuda_buffer_free_all ( void )

Free all registered buffers and reset them to an empty state

Definition at line 87 of file buffer.cu.

◆ cuda_buffer_reserve()

void cuda_buffer_reserve ( cuda_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 50 of file buffer.cu.

Here is the caller graph for this function:

Variable Documentation

◆ buffer_registry

cuda_buffer_t* buffer_registry = NULL
static

Registry of all reserved device buffers

Definition at line 48 of file buffer.cu.