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 Compute Language Runtime (CLR).
CLR contains source code for AMD ROCm’s compute language runtimes: HIP and
OpenCL™. CLR includes the HIP implementation on the AMD ROCm
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
Microsoft Windows. CLR also includes the OpenCL runtime
implementation.
The HIP runtime API backends are summarized in the following figure:
Here are the various HIP Runtime API high level functions: