aclrtMemPoolFreeAsync
Note: This API is reserved and is not supported currently.
Function
Frees the memory allocated by the aclrtMemPoolMallocAsync API. The memory is returned to the memory pool instead of being physically freed. This is an asynchronous API.
Prototype
1 | aclError aclrtMemPoolFreeAsync(void *ptr, aclrtStream stream) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
ptr |
Input |
Pointer to the address of the memory to be freed. |
stream |
Input |
Stream for executing the memory freeing task. For details about the type definition, see aclrtStream. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Parent topic: Stream-Ordered Memory Allocation