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