Re: [Mesa-dev] OpenCL Support on older AMD GPUs

2018-08-23 Thread Jan Vesely
On Thu, 2018-08-23 at 18:11 +0300, Benson Muite wrote:
> Hi,
> 
> Is there likely to be support for OpenCL on older AMD GPUs? I have tried 
> running an OpenCL benchmark 
> (https://github.com/mpicbg-scicomp/gearshifft) on an AMD A6-6420K APU 
> running Fedora 28. The code seems to partially run, but gives incorrect 
> results.
The righland APU uses VLIW4 architecture and afaik, no one with such
card has worked on clover, so bugs are expected.

was there any error during compilation or did all kernels compile OK?


> Would it be challenging to add full OpenCL 1.1 support? The GPU 
> of particular interest to me is Radeon HD 8470, caicos, which appears to 
> have WIP:
> 
> https://www.x.org/wiki/RadeonFeature
> 
> How can one help move this forward?

One immediate thing to try is to run with more up to date libclc[0].
It has seen quite a lot of activity earlier this year, and last time I
checked Fedora has not picked that up.

If that does not help, then the LLVM generates wrong code.
identifying the wrong parts and sendinng an LLVM patch (or even
reporting bug) would help there.

Contributions to LLVM would need some level of understanding the ISA
(see documents that Alex pointed to [1,2])

Jan

[0] https://git.llvm.org/git/libclc
[1] http://developer.amd.com/wordpress/media/2012/10/AMD_Evergreen-Fam
ily_Instruction_Set_Architecture.pdf
[2] http://developer.amd.com/wordpress/media/2012/10/AMD_HD_6900_Serie
s_Instruction_Set_Architecture.pdf

> 
> ___
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev

-- 
Jan Vesely 

signature.asc
Description: This is a digitally signed message part
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] OpenCL Support on older AMD GPUs

2018-08-23 Thread Alex Deucher
On Thu, Aug 23, 2018 at 11:30 AM Benson Muite  wrote:
>
> Hi,
>
> Is there likely to be support for OpenCL on older AMD GPUs? I have tried 
> running an OpenCL benchmark (https://github.com/mpicbg-scicomp/gearshifft) on 
> an AMD A6-6420K APU running Fedora 28. The code seems to partially run, but 
> gives incorrect results. Would it be challenging to add full OpenCL 1.1 
> support? The GPU of particular interest to me is Radeon HD 8470, caicos, 
> which appears to have WIP:
>
> https://www.x.org/wiki/RadeonFeature
>
> How can one help move this forward?

Improve the OpenCL driver in mesa.  The shader ISA documents are
available on developer.amd.com and you can use the compute shader
support in the r600 OpenGL driver as a reference.

Alex
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] OpenCL Support on older AMD GPUs

2018-08-23 Thread Benson Muite

Hi,

Is there likely to be support for OpenCL on older AMD GPUs? I have tried 
running an OpenCL benchmark 
(https://github.com/mpicbg-scicomp/gearshifft) on an AMD A6-6420K APU 
running Fedora 28. The code seems to partially run, but gives incorrect 
results. Would it be challenging to add full OpenCL 1.1 support? The GPU 
of particular interest to me is Radeon HD 8470, caicos, which appears to 
have WIP:


https://www.x.org/wiki/RadeonFeature

How can one help move this forward?

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev