aclrtFree

Description

Frees device memory. This API is synchronous.

aclrtFree frees only the memory allocated by using aclrtMalloc or aclrtMallocCached.

Prototype

aclError aclrtFree(void *devPtr)

Parameters

Parameter

Input/Output

Description

devPtr

Input

Pointer to memory to free.

Returns

0 on success; else, failure.

See Also

For the API call example, see Data Transfer.