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

#include <buffer.h>

Collaboration diagram for hip_buffer:

Public Attributes

voidhost
 
voiddev
 
size_t size
 
int dev_only
 
int registered
 
struct hip_buffernext
 

Detailed Description

Device buffer: a lazily grown pair of a pinned host buffer and a device buffer, owned by the device layer. A buffer is linked into a registry on its first reservation, and hip_buffer_free_all() (called from hip_finalize) 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 51 of file buffer.h.

Member Data Documentation

◆ dev

void* hip_buffer::dev

Device buffer

Definition at line 53 of file buffer.h.

◆ dev_only

int hip_buffer::dev_only

Device buffer only, no pinned host buffer

Definition at line 55 of file buffer.h.

◆ host

void* hip_buffer::host

Pinned host buffer (NULL if device-only)

Definition at line 52 of file buffer.h.

◆ next

struct hip_buffer* hip_buffer::next

Registry link

Definition at line 57 of file buffer.h.

◆ registered

int hip_buffer::registered

Buffer linked into the registry

Definition at line 56 of file buffer.h.

◆ size

size_t hip_buffer::size

Capacity in bytes

Definition at line 54 of file buffer.h.


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