sanitizerRtMemsetAsync
Function
Calls the aclrtMemsetAsync interface to initialize the memory, sets the content in the memory to a specified value, and reports the memory initialization information to the detection tool. This interface is an asynchronous interface. The actual memory initialization behavior and parameter meanings are the same as those of aclrtMemsetAsync.
For details about aclrtMemsetAsync, see .
Prototype
aclError sanitizerRtMemsetAsync(void *devPtr, size_t maxCount, int32_t value, size_t count, aclrtStream stream, char const *filename, int lineno);
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
devPtr |
Input |
Pointer to the start address of the memory. |
maxCount |
Input |
Maximum memory size, in bytes. |
value |
Input |
Specified value of the initialized memory. |
count |
Input |
Size of the initialized memory, in bytes. |
stream |
Input |
Specified stream. |
filename |
Input |
Name of the file where memory initialization is called. |
lineno |
Input |
Number of the line where memory initialization is called. |
Return
0 on success; else, failure.
Examples
For details, see Step 4.