Returns memory to ArrayFire's memory manager. More...
Functions | |
| void | free (const void *ptr) |
| Returns memory to ArrayFire's memory manager. | |
| void | freeV2 (const void *ptr) |
| Returns memory to ArrayFire's memory manager. | |
| af_err | af_free_device (void *ptr) |
| Returns memory to ArrayFire's memory manager. | |
| af_err | af_free_device_v2 (void *ptr) |
| Returns memory to ArrayFire's memory manager. | |
Returns memory to ArrayFire's memory manager.
The memory will return to the memory pool.
Releases control of the memory allocated by af::allocV2 functions to ArrayFire's memory manager. ArrayFire may reuse the memory for subsequent operations. This memory should not be used by the client after this point.
| af_err af_free_device | ( | void * | ptr | ) |
Returns memory to ArrayFire's memory manager.
This function will free a device pointer even if it has been previously locked.
| [in] | ptr | The pointer allocated by af_alloc_device to be freed |
| af_err af_free_device_v2 | ( | void * | ptr | ) |
Returns memory to ArrayFire's memory manager.
This function will free a device pointer even if it has been previously locked.
| [in] | ptr | The pointer allocated by af_alloc_device_v2 to be freed |
| void free | ( | const void * | ptr | ) |
Returns memory to ArrayFire's memory manager.
The memory will return to the memory pool.
Releases control of the memory allocated by af::allocV2 functions to ArrayFire's memory manager. ArrayFire may reuse the memory for subsequent operations. This memory should not be used by the client after this point.
| [in] | ptr | the memory allocated by the af::alloc function that will be freed |
| void freeV2 | ( | const void * | ptr | ) |
Returns memory to ArrayFire's memory manager.
The memory will return to the memory pool.
Releases control of the memory allocated by af::allocV2 functions to ArrayFire's memory manager. ArrayFire may reuse the memory for subsequent operations. This memory should not be used by the client after this point.
| [in] | ptr | The pointer returned by af::allocV2 |
This function will free a device pointer even if it has been previously locked.