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).

Latest Linux Hardware Reviews
  1. ASUS AM1I-A: A Mini-ITX Board For Socketed Kabini APUs
  2. Mini-Box M350: A Simple, Affordable Mini-ITX Case
  3. Overclocking The AMD AM1 Athlon & Sempron APUs
  4. AMD Athlon 5350 / 5150 & Sempron 3850 / 2650
Latest Linux Articles
  1. Ubuntu 12.04.4 vs. 13.10 vs. 14.04 LTS Desktop Benchmarks
  2. AMD OpenCL Performance With AM1 Kabini APUs
  3. A Quick Look At GCC 4.9 vs. LLVM Clang 3.5
  4. Are AMD Athlon/Sempron APUs Fast Enough For Steam On Linux?
Latest Linux News
  1. FreeBSD Advances For ARM, Bhyve, Clang
  2. Ubuntu 14.04 LTS "Trusty Tahr" Officially Released
  3. Ubuntu 12.04 LTS vs. 14.04 LTS Server Benchmarks
  4. QEMU 2.0 Released With ARM, x86 Enhancements
  5. Running The Unity 8 Preview Session On Ubuntu 14.04 LTS
  6. R600 Gallium3D Disables LLVM Back-End By Default
  7. Fedora 21 Gets GNOME 3.12, PHP 5.6, Mono 3.4
  8. Fedora Workstation Is Making Me Quite Excited
  9. Maynard: A Lightweight Wayland Desktop
  10. Chromium Browser Going Through Growing Pains In Ubuntu 14.04
  11. KDE 4.13 Is Being Released Today With New Features
  12. Trying Out Radeon R9 290 Graphics On Open-Source
Latest Forum Discussions
  1. Linux Kernel Developers Fed Up With Ridiculous Bugs In Systemd
  2. Updated and Optimized Ubuntu Free Graphics Drivers
  3. The GNOME Foundation Is Running Short On Money
  4. Radeon 8000M problematic on Linux?
  5. After Jack Keane, RuseSoft will briing Ankh 3 to Linux through Desura
  6. Suspected PHP Proxy Issue
  7. Change installation destination from home directory
  8. Bye bye BSD, Hello Linux: A Sys Admin's Story