psrdada-sys 0.2.2

Bindgen wrappers for psrdada
Documentation
#ifndef __DADA_IPCIO_CUDA_H
#define __DADA_IPCIO_CUDA_H

/* ************************************************************************


   ************************************************************************ */

#include "ipcio.h"

// if zeroing buffers from a pointer is permitted
#define DADA_IPCIO_READ_ZERO_CUDA

#ifdef __cplusplus
extern "C" {
#endif

/*! read bytes from ipcbuf directly to cuda device memory */
ssize_t ipcio_read_cuda (ipcio_t* ipc, char* ptr, size_t bytes, cudaStream_t stream);

/*! read bytes from ipcbuf, then zero the original buffer */
ssize_t ipcio_read_zero_cuda (ipcio_t* ipc, char* ptr, char * zero_ptr, size_t bytes, cudaStream_t stream);

ssize_t ipcio_read_cuda_work (ipcio_t* ipc, char* ptr, char * zero_ptr, size_t bytes, cudaStream_t stream);

/*! zero the next buffer in the ring */
ssize_t ipcio_zero_next_block_cuda (ipcio_t* ipc, char * dev_ptr, size_t dev_bytes, cudaStream_t stream);

#ifdef __cplusplus
}
#endif

#endif