ROCT-Thunk-Interface
是一個用于在ROCm軟件堆棧中提供設備無關性的層。它是ROCm的一部分,允許不同的硬件平臺(如AMD GPU和Intel CPU)使用相同的API進行計算。
要安裝ROCT-Thunk-Interface
,首先需要創建一個新的目錄,并進入該目錄:
mkdir rocm-build
cd rocm-build
然后,克隆ROCm的GitHub存儲庫:
git clone https://github.com/RadeonOpenCompute/ROCm.git
cd ROCm
手動添加ROCT-Thunk-Interface子模塊:
git submodule add https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface.git packages/ROCT-Thunk-Interface
現在可以開始構建和安裝ROCT-Thunk-Interface,進入ROCT-Thunk-Interface目錄,編譯出來libhsakmt.a: