sanitizerRtFree
Description
Calls the aclrtFree interface to release the memory on the device and reports the memory release information to the check tool. The actual memory release behavior and parameter meanings are the same as those of aclrtFree.
For details about aclrtFree, see .
Prototype
aclError sanitizerRtFree(void *devPtr, char const *filename, int lineno);
Parameters
Option |
Input/Output |
Description |
|---|---|---|
devPtr |
Input |
Pointer to memory to be released. |
filename |
Input |
Name of the file where memory release is called. |
lineno |
Input |
Number of the line where memory release is called. |
Return
0 on success; else, failure.
Examples
For details, see Step 4.
Parent topic: sanitizer APIs