Frees device memory. This API is synchronous.
aclrtFree frees only the memory allocated by using aclrtMalloc or aclrtMallocCached.
aclError aclrtFree(void *devPtr)
Parameter |
Input/Output |
Description |
|---|---|---|
devPtr |
Input |
Pointer to memory to free. |
0 on success; else, failure.
For the API call example, see Data Transfer.