XRT HIP Runtime APIs¶
Starting from 2026.1 release, XRT natively supports HIP runtime APIs.
To use the native HIP APIs with XRT, the host application must link with the xrt_hip library.
Example g++ command
g++ -g -std=c++17 -I/opt/rocm/include -D__HIP_PLATFORM_AMD__ -L$XILINX_XRT/lib -o host.exe host.cpp -lxrt_hip -pthread
HIP API |
|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For detailed description of the above HIP APIs please see Using HIP runtime API.