aclrtFreeHost

Description

Frees memory. This API is synchronous.

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

0 on success; else, failure.

See Also

For the API call example, see Data Transfer.