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  cuda_buffer
 

Macros

#define CUDA_BUFFER_INIT   {NULL, NULL, 0, 0, 0, 0, NULL}
 
#define CUDA_BUFFER_INIT_SYMM   {NULL, NULL, 0, 1, 0, 0, NULL}
 
#define CUDA_BUFFER_INIT_DEV   {NULL, NULL, 0, 0, 1, 0, NULL}
 

Typedefs

typedef struct cuda_buffer cuda_buffer_t
 

Functions

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

Macro Definition Documentation

◆ CUDA_BUFFER_INIT

#define CUDA_BUFFER_INIT   {NULL, NULL, 0, 0, 0, 0, NULL}

Definition at line 62 of file buffer.h.

◆ CUDA_BUFFER_INIT_DEV

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

Definition at line 64 of file buffer.h.

◆ CUDA_BUFFER_INIT_SYMM

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

Definition at line 63 of file buffer.h.

Typedef Documentation

◆ cuda_buffer_t

Definition at line 60 of file buffer.h.

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.

Here is the call graph for this function:

◆ 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 call graph for this function:
Here is the caller graph for this function: