Skip to content

Commit

Permalink
Add ROCm 6.3 deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
neon60 committed Nov 13, 2024
1 parent 5a39a87 commit 839fa39
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
17 changes: 17 additions & 0 deletions docs/reference/deprecated_api_list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ 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
16 changes: 9 additions & 7 deletions include/hip/hip_runtime_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -3444,11 +3444,6 @@ hipError_t hipMallocHost(void** ptr, size_t size);
*/
HIP_DEPRECATED("use hipHostAlloc 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 @@ -3485,6 +3480,11 @@ hipError_t hipMemAllocHost(void** ptr, size_t size);
*/
HIP_DEPRECATED("use hipExtHostAlloc instead")
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 Expand Up @@ -9643,15 +9643,17 @@ static inline hipError_t hipExtHostAlloc(T** ptr, size_t size,
return hipExtHostAlloc((void**)ptr, size, flags);
}
/**
* @brief: C++ wrapper for hipHostMalloc
* @ingroup Memory
* @brief C++ wrapper for hipHostMalloc [Deprecated].
* @ingroup MemoryD
* Provide an override to automatically typecast the pointer type from void**, and also provide a
* default for the flags.
*
* __HIP_DISABLE_CPP_FUNCTIONS__ macro can be defined to suppress these
* wrappers. It is useful for applications which need to obtain decltypes of
* HIP runtime APIs.
*
* @warning This API is deprecated.
*
* @see hipHostMalloc
*/
template <class T>
Expand Down

0 comments on commit 839fa39

Please sign in to comment.