Neko 1.99.6
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
opencl_buffer Struct Reference

#include <buffer.h>

Collaboration diagram for opencl_buffer:

Public Attributes

voidhost
 
cl_mem dev
 
size_t size
 
int registered
 
struct opencl_buffernext
 

Detailed Description

Device buffer: a lazily grown pair of a host buffer and a device buffer, owned by the device layer. A buffer is linked into a registry on its first reservation, and opencl_buffer_free_all() (called from opencl_finalize before the context is released) releases all registered buffers and resets them to an empty state, from which they grow again on demand after a subsequent device init

Definition at line 54 of file buffer.h.

Member Data Documentation

◆ dev

cl_mem opencl_buffer::dev

Device buffer

Definition at line 56 of file buffer.h.

◆ host

void* opencl_buffer::host

Host buffer

Definition at line 55 of file buffer.h.

◆ next

struct opencl_buffer* opencl_buffer::next

Registry link

Definition at line 59 of file buffer.h.

◆ registered

int opencl_buffer::registered

Buffer linked into the registry

Definition at line 58 of file buffer.h.

◆ size

size_t opencl_buffer::size

Capacity in bytes

Definition at line 57 of file buffer.h.


The documentation for this struct was generated from the following file: