From 40ba97f781f2b533b9ec90eca43c301bb3a9f3af Mon Sep 17 00:00:00 2001 From: Istvan Kiss Date: Wed, 4 Dec 2024 13:36:36 +0100 Subject: [PATCH] [Docs] Revert the deprecation of hipHostMalloc/hipHostFree --- docs/reference/deprecated_api_list.rst | 17 ----------------- include/hip/hip_runtime_api.h | 9 ++++----- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/docs/reference/deprecated_api_list.rst b/docs/reference/deprecated_api_list.rst index f212a0ad34..a21643478c 100644 --- a/docs/reference/deprecated_api_list.rst +++ b/docs/reference/deprecated_api_list.rst @@ -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 ============================================================ diff --git a/include/hip/hip_runtime_api.h b/include/hip/hip_runtime_api.h index 6db037f0b5..ca0bb87d7a 100644 --- a/include/hip/hip_runtime_api.h +++ b/include/hip/hip_runtime_api.h @@ -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 * @@ -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 *