HIP deprecated runtime API functions#

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.1.0#

Deprecated texture management functions.

Deprecated since ROCm 5.7.0#

Deprecated texture management functions.

Deprecated since ROCm 5.3.0#

Deprecated texture management functions.

Deprecated since ROCm 4.3.0#

Deprecated texture management functions.

Deprecated since ROCm 3.8.0#

Deprecated memory management and texture management functions.

Deprecated since ROCm 3.1.0#

Deprecated memory management functions.

function

hipMallocHost()

replaced with hipHostAlloc()

hipMemAllocHost()

replaced with hipHostAlloc()

Deprecated since ROCm 3.0.0#

The hipProfilerStart and hipProfilerStop functions are deprecated. Instead, you can use roctracer or rocTX for profiling which provide more flexibility and detailed profiling capabilities.

Deprecated since ROCm 1.9.0#

CUDA supports cuCtx API, which is the driver API that defines “Context” and “Devices” as separate entities. Context contains a single device, and a device can theoretically have multiple contexts. HIP initially added limited support for context APIs in order to facilitate porting from existing driver codes. These APIs are now marked as deprecated because there are better alternate interfaces (such as hipSetDevice or the stream API) to achieve these functions.