aclrtFreeHost

Description

Frees the memory.

Restrictions

  • This API immediately releases the input memory. No implicit device synchronization or stream synchronization is performed within the function. Ensure that the memory pointer is not accessed after this API is called.
  • aclrtFreeHost frees only memory allocated by the aclrtMallocHost call.

Prototype

aclError aclrtFreeHost(void *hostPtr)

Parameters

Parameter

Input/Output

Description

hostPtr

Input

Pointer to memory to free.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.

See Also

For the API call example, see Data Transfer.