Status of ROCm runtime upstream kernels

Felix Kuehling felix.kuehling at
Mon Sep 25 20:11:27 UTC 2017

Yes, it's only on CZ and KV for now.

You also need a custom Thunk from here because the ioctl ABI is getting
changed in the upstreaming process:

KV support in the user mode package is currently lacking. I was able to
hack the OpenCL driver to enable KV support with a simple patch:

commit 2761ff8bb444cf93de4d3d182b38d1da140df986
Author: Felix Kuehling <Felix.Kuehling at>
Date:   Fri Sep 8 16:14:23 2017 -0400

    Enable Kaveri
    Signed-off-by: Felix Kuehling <Felix.Kuehling at>

diff --git a/runtime/device/rocm/rocdevice.cpp b/runtime/device/rocm/rocdevice.cpp
index 16db78a..edd3cbd 100644
--- a/runtime/device/rocm/rocdevice.cpp
+++ b/runtime/device/rocm/rocdevice.cpp
@@ -76,6 +76,8 @@ static HsaDeviceId getHsaDeviceId(hsa_agent_t device, uint32_t& pci_id) {
   switch (gfxipVersion) {
+    case 700:
+      return HSA_SPECTRE_ID;
     case 701:
       return HSA_HAWAII_ID;
     case 801:


On 2017-09-25 03:58 PM, Tom Stellard wrote:
> Hi Felix,
> In a mailing list post[1], you mentioned that you had the ROCm
> runtime working on an upstream kernel, which kernel version was this and
> was it only Kaveri and Carrizo?
> Thanks,
> Tom
> [1]

More information about the amd-gfx mailing list