Skip to content

Commit

Permalink
[Docs] Revert the deprecation of hipHostMalloc/hipHostFree
Browse files Browse the repository at this point in the history
  • Loading branch information
neon60 committed Dec 4, 2024
1 parent bff0ac5 commit 40ba97f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
17 changes: 0 additions & 17 deletions docs/reference/deprecated_api_list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,6 @@ Several of our API functions have been flagged for deprecation. Using the
following functions results in errors and unexpected results, so we encourage
you to update your code accordingly.

Deprecated since ROCm 6.3.0
============================================================

Deprecated memory management functions.

.. list-table::
:widths: 40, 60
:header-rows: 1
:align: left

* - function
-
* - :cpp:func:`hipHostMalloc`
- replaced with :cpp:func:`hipExtHostAlloc`
* - :cpp:func:`hipHostFree`
- replaced with :cpp:func:`hipFreeHost`

Deprecated since ROCm 6.1.0
============================================================

Expand Down
9 changes: 4 additions & 5 deletions include/hip/hip_runtime_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -3444,6 +3444,10 @@ hipError_t hipMallocHost(void** ptr, size_t size);
*/
HIP_DEPRECATED("use hipHostMalloc instead")
hipError_t hipMemAllocHost(void** ptr, size_t size);
// end doxygen deprecated management memory
/**
* @}
*/
/**
* @brief Allocates device accessible page locked (pinned) host memory
*
Expand Down Expand Up @@ -3478,11 +3482,6 @@ hipError_t hipMemAllocHost(void** ptr, size_t size);
* @see hipSetDeviceFlags, hiptHostFree
*/
hipError_t hipHostMalloc(void** ptr, size_t size, unsigned int flags);
// end doxygen deprecated management memory
/**
* @}
*/

/**
* @brief Allocates device accessible page locked (pinned) host memory
*
Expand Down

0 comments on commit 40ba97f

Please sign in to comment.