|
Neko 1.99.6
A portable framework for high-order spectral element flow simulations
|
#include <buffer.h>

Public Attributes | |
| void * | host |
| cl_mem | dev |
| size_t | size |
| int | registered |
| struct opencl_buffer * | next |
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
| struct opencl_buffer* opencl_buffer::next |
| int opencl_buffer::registered |