(git:0de0cc2)
offload_buffer.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "offload_buffer.h"
#include "offload_library.h"
#include "offload_runtime.h"

Go to the source code of this file.

Functions

void offload_create_buffer (const int length, offload_buffer **buffer)
 Allocates a buffer of given length, ie., number of elements. More...
 
void offload_free_buffer (offload_buffer *buffer)
 Deallocate given buffer. More...
 
double * offload_get_buffer_host_pointer (offload_buffer *buffer)
 Returns a pointer to the host buffer. More...
 

Function Documentation

◆ offload_create_buffer()

void offload_create_buffer ( const int  length,
offload_buffer **  buffer 
)

Allocates a buffer of given length, ie., number of elements.

Author
Ole Schuett

Definition at line 20 of file offload_buffer.c.

Here is the call graph for this function:

◆ offload_free_buffer()

void offload_free_buffer ( offload_buffer buffer)

Deallocate given buffer.

Author
Ole Schuett

Definition at line 52 of file offload_buffer.c.

Here is the caller graph for this function:

◆ offload_get_buffer_host_pointer()

double* offload_get_buffer_host_pointer ( offload_buffer buffer)

Returns a pointer to the host buffer.

Author
Ole Schuett

Definition at line 68 of file offload_buffer.c.