Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AMD Kaveri APU and Opensource OpenCL?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Wed Apr 29, 2015 6:31 pm    Post subject: AMD Kaveri APU and Opensource OpenCL? Reply with quote

Hey all,

Does anyone know what the status of OpenCL support for Kaveri APUs is at the moment?

I kinda got it working with the binary ATI drivers but it required a local X server running and as this is a headless VNC system, lots of kludging had to be done to get it to work and even then only console-mode OpenCL programs would run. The main problem is all this confusion with the emul-x86 libs has broken it pretty hard on my system so I've had to uninstall it for now until I have time to sort it all out.


As I can't use the binary driver, I want to use mesa instead - Does it currently support Kaveri APUs? If so, is there an idiot's guide on getting it working?

Or do I have to wait until all this new HSA stuff between the kernel and userland stabilises?

Thanks!
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Thu Apr 30, 2015 11:29 am    Post subject: Reply with quote

Here is some info about it...

http://wiki.tiker.net/OpenCLHowTo

And here
Quote:

Mesa (Gallium)

OpenCL support from Mesa is in development (see http://www.x.org/wiki/GalliumStatus/). AMD Radeon cards are supported by the r600g driver.

Arch Linux does currently (April 2014; Mesa 10.1.0; LLVM 3.4) not build Mesa with OpenCL support. See http://dri.freedesktop.org/wiki/GalliumCompute/ for installation instructions (use the development branches of LLVM and Mesa for optimal results).

You could also use lordheavy's repo. Install these packages:
■ ati-dri-git
■ opencl-mesa-git
■ libclc-git

Surprisingly, pyrit performs 20% better with radeon+r600g compared to Catalyst 13.11 Beta1 (tested with 7 other CPU cores):
catalyst #1: 'OpenCL-Device 'Barts'': 21840.7 PMKs/s (RTT 2.8)
radeon+r600g #1: 'OpenCL-Device 'AMD BARTS'': 26608.1 PMKs/s (RTT 3.0)
At the time of this writing (30 October 2013), one must apply patches [1] and [2] on top of Mesa commit ac81b6f2be8779022e8641984b09118b57263128 to get this performance improvement. The latest unpatched LLVM trunk was used (SVN rev 193660).


https://wiki.archlinux.org/index.php/GPGPU

But maybe it is possible nowadays. I have a VDR with kodi running which uses the radeon driver and hardware video decoding with VDPAU.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3383

PostPosted: Thu Apr 30, 2015 4:25 pm    Post subject: Reply with quote

This is the "standard way" to do OpenCL, and does yield performance improvements. Part of the selling point of Kaveri was it being the first implementation of "HSA", (Heterogeneous Systems Architecture) which solves some issues with CPU/GPU computing. There appears to be an "OpenCL on HSA" out there somewhere that will be faster than regular OpenCL, but it's not simple, at least not at the moment. A native HSA application would be even faster, but OpenCL on HSA is still better than regular OpenCL, and gets you more applications with less work.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Thu Apr 30, 2015 10:52 pm    Post subject: Reply with quote

Is there any info on getting HSA and OpenCL-on-HSA working? Or is that still in the process of being written...?

From what I've read so far the HSA kernel driver is in but has no supporting userland code atm; Is that about accurate?
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3383

PostPosted: Thu Apr 30, 2015 11:40 pm    Post subject: Reply with quote

There is code, and Google will help you find it. AMD has provided plenty of support, but it's all pretty raw at the moment, and there are no ebuilds as of yet.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Fri May 01, 2015 7:21 pm    Post subject: Reply with quote

I think I'll wait then; From what I've seen the available stuff it's not ready for end-user use!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum