Memory Management [Deprecated]

Memory Management [Deprecated]#

hipFORT API Reference: Memory Management [Deprecated]
Memory Management [Deprecated]

Deprecated memory management functions of the HIP runtime API. More...

Collaboration diagram for Memory Management [Deprecated]:

Data Types

interface  hipfort::hipmemcpytoarray
 Copies data between host and device [Deprecated]. More...
 
interface  hipfort::hipmemcpyfromarray
 Copies data between host and device [Deprecated]. More...
 

Functions/Subroutines

integer(c_int) function hipfort_hipmalloc::hiphostfree::hiphostfree_ (ptr)
 Free memory allocated by the HIP-Clang hip host memory allocation API This API performs an implicit hipDeviceSynchronize() call.
 

Detailed Description

Deprecated memory management functions of the HIP runtime API.

Function/Subroutine Documentation

◆ hiphostfree_()

integer(c_int) function hipfort_hipmalloc::hiphostfree::hiphostfree_ ( type(c_ptr), value  ptr)

Free memory allocated by the HIP-Clang hip host memory allocation API This API performs an implicit hipDeviceSynchronize() call.

If pointer is NULL, the hip runtime is initialized and hipSuccess is returned.

Parameters
[in]ptrPointer to memory to be freed
Returns
hipSuccess, hipErrorInvalidValue (if pointer is invalid, including device pointers allocated with hipMalloc)
See also
hipMalloc, hipMallocPitch, hipFree, hipMallocArray, hipFreeArray, hipMalloc3D, hipMalloc3DArray, hipHostMalloc