yacx-YetAnotherCudaExecutor  0.6.2
wrapper to easily compile and execute cuda kernels
Public Member Functions | List of all members
yacx::detail::DataCopy Class Referenceabstract
Inheritance diagram for yacx::detail::DataCopy:
yacx::detail::DataCopyKernelArg yacx::detail::DataCopyKernelArgMatrixPadding

Public Member Functions

 DataCopy ()
 A constructor.
 
virtual void copyDataHtoD (void *hdata, CUdeviceptr ddata, size_t size, CUstream stream)=0
 
virtual void copyDataDtoH (CUdeviceptr ddata, void *hdata, size_t size, CUstream stream)=0
 

Member Function Documentation

◆ copyDataDtoH()

virtual void yacx::detail::DataCopy::copyDataDtoH ( CUdeviceptr  ddata,
void *  hdata,
size_t  size,
CUstream  stream 
)
pure virtual

copy data from device to host

Parameters
ddatapointer to device data
hdatapointer to host data
sizesize of the data

Implemented in yacx::detail::DataCopyKernelArgMatrixPadding, and yacx::detail::DataCopyKernelArg.

◆ copyDataHtoD()

virtual void yacx::detail::DataCopy::copyDataHtoD ( void *  hdata,
CUdeviceptr  ddata,
size_t  size,
CUstream  stream 
)
pure virtual

copy data from host to device

Parameters
hdatapointer to host data
ddatapointer to device data
sizesize of the data

Implemented in yacx::detail::DataCopyKernelArgMatrixPadding, and yacx::detail::DataCopyKernelArg.


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