|
| | 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 |
| |
|
| DataCopy () |
| | A constructor.
|
| |
◆ 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
-
| elementSize | size of each element of the matrix in bytes |
| paddingValue | value to fill up additional rows and columns |
| src_rows | number of rows of current matrix without padding |
| src_columns | number of columns of currentmatrix without padding |
| dst_rows | number of rows for new matrix with padding |
| dst_columns | number of columns for new matrix with padding |
◆ copyDataDtoH()
| void DataCopyKernelArgMatrixPadding::copyDataDtoH |
( |
CUdeviceptr |
ddata, |
|
|
void * |
hdata, |
|
|
size_t |
size, |
|
|
CUstream |
stream |
|
) |
| |
|
overridevirtual |
copy data from device to host
- Parameters
-
| ddata | pointer to device data |
| hdata | pointer to host data |
| size | size 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
-
| hdata | pointer to host data |
| ddata | pointer to device data |
| size | size of the data |
Implements yacx::detail::DataCopy.
The documentation for this class was generated from the following files: