Memory copy function, which allocates and copies the destination memory between the host and device based on the memory location specified in MemoryData.
1 | static APP_ERROR MemoryHelper::MxbsMallocAndCopy(MemoryData& dest, const MemoryData& src); |
Parameter |
Input/Output |
Description |
|---|---|---|
dest |
Input |
Destination memory to be copied. |
src |
Input |
Source memory to be copied. |
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |