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

Public Member Functions

 DataCopyKernelArgMatrixPadding (int elementSize, unsigned int paddingValue, int src_rows, int src_columns, int dst_rows, int dst_columns)
 A constructor. More...
 
void copyDataHtoD (void *hdata, CUdeviceptr ddata, size_t size, CUstream stream) override
 
void copyDataDtoH (CUdeviceptr ddata, void *hdata, size_t size, CUstream stream) override
 
- Public Member Functions inherited from yacx::detail::DataCopy
 DataCopy ()
 A constructor.
 

Constructor & Destructor Documentation

◆ DataCopyKernelArgMatrixPadding()

yacx::detail::DataCopyKernelArgMatrixPadding::DataCopyKernelArgMatrixPadding ( int  elementSize,
unsigned int  paddingValue,
int  src_rows,
int  src_columns,
int  dst_rows,
int  dst_columns 
)
inline

A constructor.

Parameters
elementSizesize of each element of the matrix in bytes
paddingValuevalue to fill up additional rows and columns
src_rowsnumber of rows of current matrix without padding
src_columnsnumber of columns of currentmatrix without padding
dst_rowsnumber of rows for new matrix with padding
dst_columnsnumber of columns for new matrix with padding

Member Function Documentation

◆ copyDataDtoH()

void DataCopyKernelArgMatrixPadding::copyDataDtoH ( CUdeviceptr  ddata,
void *  hdata,
size_t  size,
CUstream  stream 
)
overridevirtual

copy data from device to host

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

Implements yacx::detail::DataCopy.

◆ copyDataHtoD()

void DataCopyKernelArgMatrixPadding::copyDataHtoD ( void *  hdata,
CUdeviceptr  ddata,
size_t  size,
CUstream  stream 
)
overridevirtual

copy data from host to device

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

Implements yacx::detail::DataCopy.


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