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. AMD R600g/RadeonSI Performance On Linux 3.16 With Mesa 10.3-devel
  2. Intel Pentium G3258 On Linux
  3. SilverStone Precision PS10
  4. ASRock Z97 Extreme6
Latest Linux Articles
  1. KVM Benchmarks On Ubuntu 14.10
  2. X.Org Server 1.16 Officially Released With Terrific Features
  3. Ubuntu With Linux 3.16 Smashes OS X 10.9.4 On The MacBook Air
  4. Preview: Benchmarking CentOS 7.0 & Scientific Linux 7.0
Latest Linux News
  1. Open-Source AMD Hawaii Support Should Now Be Working!
  2. KDE Developers Continue Working Toward Wayland Support
  3. Ubuntu 14.04.1 LTS Released
  4. Linux Developers Jump Quickly On ACPI 5.1, Helps Out ARM
  5. Pkg 1.3.0 Released To Improve Package Management On FreeBSD
  6. GOG.com Officially Starts Rolling Out Linux Games
  7. Fedora 21 Has Been Delayed By Three Weeks
  8. Mono Begins To Focus On Performance, Assembles A Team
  9. Oracle Linux 7 Released Today As Its RHEL7 Clone
  10. Unigine Develops City Traffic System, A Driving Simulator
Latest Forum Discussions
  1. Updated and Optimized Ubuntu Free Graphics Drivers
  2. AMD "Hawaii" Open-Source GPU Acceleration Still Not Working Right
  3. Radeon related kernel bug??
  4. how the US intellegentia operates:
  5. AMD Publishes Open-Source Linux HSA Kernel Driver
  6. Next-Gen OpenGL To Be Announced Next Month
  7. Open-Source Radeon Performance Boosted By Linux 3.16
  8. Remote gui not accessible in Phoronix Test Suite 5.2