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 <CL/cl.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  opencl_buffer
 

Macros

#define OPENCL_BUFFER_INIT   {NULL, NULL, 0, 0, NULL}
 

Typedefs

typedef struct opencl_buffer opencl_buffer_t
 

Functions

void opencl_buffer_reserve (opencl_buffer_t *buf, size_t size)
 
void opencl_buffer_free_all (void)
 

Macro Definition Documentation

◆ OPENCL_BUFFER_INIT

#define OPENCL_BUFFER_INIT   {NULL, NULL, 0, 0, NULL}

Definition at line 63 of file buffer.h.

Typedef Documentation

◆ opencl_buffer_t

Definition at line 61 of file buffer.h.

Function Documentation

◆ opencl_buffer_free_all()

void opencl_buffer_free_all ( void  )

Free all registered buffers and reset them to an empty state

Definition at line 69 of file buffer.c.

Here is the call graph for this function:

◆ opencl_buffer_reserve()

void opencl_buffer_reserve ( opencl_buffer_t buf,
size_t  size 
)

Ensure that a buffer holds at least size bytes on both the host and the device side, growing it if necessary

Definition at line 46 of file buffer.c.

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