Radeon Gallium3D OpenCL Is Coming Close

Posted by Michael Larabel on May 13, 2012

Following the OpenCL Gallium3D state tracker having been merged into Mesa earlier this week, the open-source Radeon OpenCL support is coming close.

After the Clover state tracker was merged on Friday, Tom Stellard of AMD released the latest R600g compute support patches. These patches can be found on the mailing list as well as his Mesa gallium-compute-r600 Git repository.

Aside from merging the gallium-userbuf work, adding in the Radeon-specific compute support is just shy of 3,000 lines of code. (Though this isn't counting the R600 LLVM compiler back-end that was already merged.)

With the necessary patches, building the R600g compute support requires configuring mesa with --enable-r600-llvm and --enable-opencl. The R600g compute targets the Radeon HD 5000 (Evergreen) generation of graphics processors and newer. (Well, since the open-source Radeon HD 7000 series is basically useless to end-users at the moment, this means the open-source OpenCL on the Radeon side is for the HD 5000/6000 series.)

For more information on how to build the Gallium3D compute support for Radeon or in regards to the compute support state for the NVIDIA hardware via Nouveau and then on the CPU via LLVMpipe, reference the GalliumCompute Wiki page.

So far there's a collection of basic OpenCL examples (in this Git repository) known to work for the open-source Radeon stack at this time.

Discuss this article in our forums, IRC channel, or email the author. You can also follow our content via RSS and on social networks like Facebook, Identi.ca, and Twitter (@Phoronix and @MichaelLarabel). Subscribe to Phoronix Premium to view our content without advertisements, view entire articles on a single page, and experience other benefits.
Latest Hardware Reviews
  1. Sumo Lounge Emperor
  2. Gallium3D Continues Improving OpenGL For Older Radeon GPUs
  3. 15-Way Open vs. Closed Source NVIDIA/AMD Linux GPU Comparison
  4. Nouveau vs. NVIDIA Linux Comparison Shows Shortcomings
Latest Software Articles
  1. Intel Linux OpenGL Driver Leading Over Apple OS X
  2. The Cost Of Ubuntu Disk Encryption
  3. Btrfs vs. EXT4 vs. XFS vs. F2FS On Linux 3.10
  4. AMD Radeon R600 GPU LLVM 3.3 Back-End Testing
Latest Linux News
  1. Phoronix Test Suite 4.6.0 "Utsira" Released
  2. New Intel X.Org Driver Supports All Of Haswell
  3. SQLite Now Faster With Memory Mapped I/O
  4. Microsoft Releases Skype For Linux 4.2, Has Bug-Fixes
  5. Qt For Tizen Launches, Based On Qt 5.1
  6. KTAP Released For Linux Kernel Dynamic Tracing
  7. Linux 3.10-rc2 Kernel Takes In A Few Extra Pulls
  8. QEMU 1.5 Supports VGA Passthrough, Better USB 3.0
  9. Handbrake 0.9.9 Supports OpenCL Offloading
  10. Freedreno Gallium3D Now Banging The Adreno A3XX
  11. Jolla Announces Their First Phone
Latest Forum Talk
  1. QEMU 1.5 Supports VGA Passthrough, Better USB 3.0
  2. New Intel X.Org Driver Supports All Of Haswell
  3. Intel Linux OpenGL Driver Leading Over Apple OS X
  4. Modern Intel Gallium3D Driver Still Being Toyed...
  5. Microsoft Releases Skype For Linux 4.2, Has...
  6. Jolla Announces Their First Phone
  1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Motherboards
  5. Peripherals
  6. Processors
  7. Software
  8. Operating Systems
  9. All Articles
  1. Linux Benchmarking
  2. OpenBenchmarking.org
  3. Phoronix Test Suite