|
Neko 1.99.6
A portable framework for high-order spectral element flow simulations
|
#include <hip/hip_runtime.h>#include <device/device_config.h>#include <device/hip/check.h>#include <device/hip/buffer.h>Go to the source code of this file.
Functions | |
| void | hip_buffer_reserve (hip_buffer_t *buf, size_t size) |
| void | hip_buffer_free_all (void) |
Variables | |
| static hip_buffer_t * | buffer_registry = NULL |
Free all registered buffers and reset them to an empty state
Definition at line 70 of file buffer.hip.

| void hip_buffer_reserve | ( | hip_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 47 of file buffer.hip.


|
static |
Registry of all reserved device buffers
Definition at line 45 of file buffer.hip.