sanitizerRtFree

Function

Calls the aclrtFree interface to free the memory on the device and reports the memory release information to the detection 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

Table 1 Parameters

Parameter

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.