All of lore.kernel.org
 help / color / mirror / Atom feed
* Status of ROCm runtime upstream kernels
@ 2017-09-25 19:58 Tom Stellard
       [not found] ` <5ea1dae3-22f3-66dc-d853-088fc17bccfc-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Stellard @ 2017-09-25 19:58 UTC (permalink / raw)
  To: felix.kuehling-5C7GfCeVMHo; +Cc: amd-gfx-CC+yJ3UmIYqDUpFQwHEjaQ

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] https://lists.freedesktop.org/archives/amd-gfx/2017-September/012951.html
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Status of ROCm runtime upstream kernels
       [not found] ` <5ea1dae3-22f3-66dc-d853-088fc17bccfc-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2017-09-25 20:11   ` Felix Kuehling
       [not found]     ` <903f5525-a082-89a5-2cbe-04a4e437dfb5-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Felix Kuehling @ 2017-09-25 20:11 UTC (permalink / raw)
  To: tstellar-H+wXaHxf7aLQT0dZR+AlfA; +Cc: amd-gfx-CC+yJ3UmIYqDUpFQwHEjaQ

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:
https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/tree/fxkamd/drm-next-wip

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@amd.com>
Date:   Fri Sep 8 16:14:23 2017 -0400

    Enable Kaveri
    
    Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>

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:


Regards,
  Felix


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] https://lists.freedesktop.org/archives/amd-gfx/2017-September/012951.html

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: Status of ROCm runtime upstream kernels
       [not found]     ` <903f5525-a082-89a5-2cbe-04a4e437dfb5-5C7GfCeVMHo@public.gmane.org>
@ 2017-09-25 20:26       ` Tom Stellard
       [not found]         ` <43560d93-854b-79e6-dd9c-6fb0e5d18ac0-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Stellard @ 2017-09-25 20:26 UTC (permalink / raw)
  To: Felix Kuehling; +Cc: amd-gfx-CC+yJ3UmIYqDUpFQwHEjaQ

On 09/25/2017 01:11 PM, Felix Kuehling wrote:
> Yes, it's only on CZ and KV for now.
> 

And which kernel version do I need?

-Tom

> You also need a custom Thunk from here because the ioctl ABI is getting
> changed in the upstreaming process:
> https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/tree/fxkamd/drm-next-wip
> 
> 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@amd.com>
> Date:   Fri Sep 8 16:14:23 2017 -0400
> 
>     Enable Kaveri
>     
>     Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
> 
> 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:
> 
> 
> Regards,
>   Felix
> 
> 
> 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] https://lists.freedesktop.org/archives/amd-gfx/2017-September/012951.html
> 

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Status of ROCm runtime upstream kernels
       [not found]         ` <43560d93-854b-79e6-dd9c-6fb0e5d18ac0-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2017-09-25 20:29           ` Felix Kuehling
  0 siblings, 0 replies; 4+ messages in thread
From: Felix Kuehling @ 2017-09-25 20:29 UTC (permalink / raw)
  To: tstellar-H+wXaHxf7aLQT0dZR+AlfA; +Cc: amd-gfx-CC+yJ3UmIYqDUpFQwHEjaQ

On 2017-09-25 04:26 PM, Tom Stellard wrote:
> On 09/25/2017 01:11 PM, Felix Kuehling wrote:
>> Yes, it's only on CZ and KV for now.
>>
> And which kernel version do I need?

Current amd-staging-drm-next should work. The necessary patches are
making their way into Linux 4.14.

Regards,
  Felix

>
> -Tom
>
>> You also need a custom Thunk from here because the ioctl ABI is getting
>> changed in the upstreaming process:
>> https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/tree/fxkamd/drm-next-wip
>>
>> 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@amd.com>
>> Date:   Fri Sep 8 16:14:23 2017 -0400
>>
>>     Enable Kaveri
>>     
>>     Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
>>
>> 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:
>>
>>
>> Regards,
>>   Felix
>>
>>
>> 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] https://lists.freedesktop.org/archives/amd-gfx/2017-September/012951.html

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-09-25 20:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-25 19:58 Status of ROCm runtime upstream kernels Tom Stellard
     [not found] ` <5ea1dae3-22f3-66dc-d853-088fc17bccfc-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-09-25 20:11   ` Felix Kuehling
     [not found]     ` <903f5525-a082-89a5-2cbe-04a4e437dfb5-5C7GfCeVMHo@public.gmane.org>
2017-09-25 20:26       ` Tom Stellard
     [not found]         ` <43560d93-854b-79e6-dd9c-6fb0e5d18ac0-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-09-25 20:29           ` Felix Kuehling

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.