sanitizerRtMemcpy2dAsync
Function
Calls the aclrtMemcpy2dAsync interface to copy the matrix data memory and reports the memory copy information to the detection tool. This interface is an asynchronous interface. The actual memory copy behavior and parameter meanings of matrix data are the same as those of aclrtMemcpy2dAsync.
For details about aclrtMemcpy2dAsync, see .
Prototype
aclError sanitizerRtMemcpy2dAsync(void *dst, size_t dpitch, const void *src, size_t spitch, size_t width, size_t height, aclrtMemcpyKind kind, aclrtStream stream, char const *filename, int lineno);
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
dst |
Input |
Pointer to the destination memory address. |
dpitch |
Input |
Address distance between two adjacent columns of vectors in the destination memory. |
src |
Input |
Pointer to the source memory address. |
spitch |
Input |
Address distance between two adjacent columns of vectors in the source memory. |
width |
Input |
Matrix width to be copied. |
height |
Input |
Matrix height to be copied. The maximum height can be set to 5242880 (5 x 1024 x 1024). Otherwise, a failure is returned. |
kind |
Input |
Memory copy kind. |
stream |
Input |
Stream specified by the current matrix data memory copy behavior. |
filename |
Input |
Name of the file where matrix data memory copy is called. |
lineno |
Input |
Number of the line where matrix data memory copy is called. |
Return
0 on success; else, failure.
Example
For details, see Step 4.