Using HIP runtime API

Using HIP runtime API#

The HIP runtime API provides C and C++ functionalities to manage event, stream, and memory on GPUs. The HIP runtime uses the Compute Language Runtime (CLR).

CLR contains source code for AMD’s compute language runtimes: HIP and OpenCL™. CLR includes the HIP implementation on the AMD platform: hipamd and the ROCm Compute Language Runtime (rocclr). rocclr is a virtual device interface that enables the HIP runtime to interact with different backends such as ROCr on Linux or PAL on Windows. CLR also includes the OpenCL runtime implementation.

The backends of HIP runtime API are summarized in the following figure:

../_images/runtimes.svg

Here are the various HIP Runtime API high level functions: