1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

How To Begin Using OpenCL With Radeon Gallium3D

AMD

Published on 17 March 2012 02:56 PM EDT
Written by Michael Larabel in AMD
2 Comments

Earlier this month I wrote about how you can sort of begin using OpenCL acceleration out of the Radeon Gallium3D driver, but in the short time since, the code has continued to advance and now here's a guide for trying out this GPGPU computing technology on the open-source Radeon Linux driver.

Tom Stellard, the AMD employee that's been working on LLVM and OpenCL support within their open-source driver stack for the past several months, has finally blogged about the OpenCL progress: Testing clover with r600g.

Stellard's Radeon OpenCL work builds upon the Clover Gallium3D state tracker that's now a few years old, the GSoC work done last summer, the Nouveau OpenCL EVoC work (as shown in that article, OpenCL is now working for open-source NVIDIA), and this work continues to rely upon LLVM/Clang. Another developer, Ádám Rák, also recently wrote an R600 Gallium3D compute implementation.

This Radeon OpenCL support (for now at least) is being limited to Evergreen (Radeon HD 5000 series) and Northern Islands (Radeon HD 6000 series, but the HD 6900 Cayman GPUs aren't yet supported) and various out-of-tree bits.

On the DRM side, the Linux 3.1 kernel or newer will have you suited. For the Mesa/Gallium3D side, you currently need to use clover-r600-master from Tom Stellard's personal Mesa Git repository.

Additionally, the OpenCL 1.1 headers must be installed, the latest development LLVM/Clang snapshot needs to be used (from SVN/Git) and some patches applied there, and you also need to be using Tom's Git repository of libclc.

When all of the above factors are met, there should be basic OpenCL support in place for the HD 5000/6000 (non-Cayman) graphics processors. It will be interesting to check out to see how the OpenCL compute performance is on the open-source stack relative to AMD's Catalyst proprietary driver and its OpenCL implementation. As well, it will be interesting to see how the OpenCL support compares to that of Nouveau Gallium3D compute.

The next challenge will be to finally mainline all of this OpenCL work. Ideally we could see this happen for Mesa 8.1. This would be ideal to see since besides Mesa developers still being years behind with catching up to the latest OpenGL specifications, they're also years behind in the OpenCL support.

Aside from Mesa/Gallium3D itself, there will then need to be the release of LLVM/Clang 3.1 (likely to come in H2'2012) and a unified libclc. Hopefully all of this work will finally come together by year's end or ideally by the time of Ubuntu 12.10 / Fedora 17 (otherwise Ubuntu 13.04 / Fedora 18) so that Linux users can finally benefit from "out of the box" open-source OpenCL support. At that point, the OpenCL 1.0 specification will be four years old (it was ratified in December of 2008).

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. Intel Launches The Core i7 5960X, Mighty Powerful Haswell-E CPUs
  2. AMD Radeon R9 290: Gallium3D vs. Catalyst Drivers
  3. AMD Radeon R9 290 Open-Source Driver Works, But Has A Ways To Go
  4. Trying The Configurable 45 Watt TDP With AMD's A10-7800 / A6-7400K
Latest Linux Articles
  1. How Intel Graphics On Linux Compare To Open-Source AMD/NVIDIA Drivers
  2. The Fastest NVIDIA GPUs For Open-Source Nouveau With Steam Linux Gaming
  3. Testing For The Latest Linux Kernel Power Regression
  4. The Most Energy Efficient Radeon GPU For AMD Linux Gaming
Latest Linux News
  1. Nouveau X.Org Driver Released With DRI3+Present, Maxwell, GLAMOR
  2. Microsoft & AMD Release C++ AMP Compiler With Linux Support
  3. AMD, Wine & Valve Dominated August For Linux Users
  4. Linux 3.17-rc3 Kernel Released Back On Schedule
  5. Lennart Poettering Talks Up His New Linux Vision That Involves Btrfs
  6. Mesa 10.3 RC2 Arrives Via Its New Release Manager
  7. Ubuntu 14.10's Lack Of X.Org Server 1.16 Gets Blamed On AMD
  8. MSI Motherboard BIOS Updating Remains A Pain For Linux Users
  9. See How Your Linux System Performs Against The Latest Intel/AMD CPUs
  10. AMD Steppe Eagle Flys To Coreboot
Latest Forum Discussions
  1. SSD seems slow
  2. AMD Releases UVD Video Decode Support For R600 GPUs
  3. Is laptop with Intel CPU and AMD dGPU worth buying considering especially AMD Enduro?
  4. Radeon HD5670 and Ubuntu 14.04
  5. Btrfs Gets Talked Up, Googler Encourages You To Try Btrfs
  6. Updated graphics drivers for Ubuntu 12.04 Precise LTS
  7. Catalyst 14.201.1008
  8. It's Now Possible To Play Netflix Natively On Linux Without Wine Plug-Ins