7#ifndef OFFLOAD_BUFFER_H
8#define OFFLOAD_BUFFER_H
double * offload_get_buffer_host_pointer(offload_buffer *buffer)
Return a pointer to the host buffer (Fortran API).
void offload_buffer_h2d(offload_buffer *buffer, const int length)
Copy data from host to device (Fortran API).
void offload_free_buffer(offload_buffer *buffer)
Deallocate given buffer.
double * offload_get_buffer_device_pointer(offload_buffer *buffer)
Return a pointer to the device buffer (Fortran API).
void offload_buffer_d2h(offload_buffer *buffer, const int length)
Copy data from device to host (Fortran API).
void offload_create_buffer(const int length, offload_buffer **buffer)
Allocate a buffer (NULL or valid) with the given number of elements.
Internal representation of a buffer.