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

In Road To OpenCL, R600g LLVM Back-End Arrives

AMD

Published on 09 December 2011 04:24 PM EST
Written by Michael Larabel in AMD
30 Comments

Before calling it a week, Tom Stellard at AMD published a Git branch that offers up an LLVM shader back-end for the AMD R600 Gallium3D driver. This is one of the steps in bringing Compute/OpenCL support to the open-source AMD Radeon Linux graphics drivers.

Tom Stellard announced on Friday afternoon this R600g LLVM shader back-end branch to the Mesa developer's mailing list. Tom's r600g-llvm-shader branch of his Mesa repository offers a TGSI (the current Gallium3D IR) to LLVM IR converter, changes to Gallivm to make it portable with the TGSI-to-LLVM converter, and the LLVM back-end for R600g itself. The TGSI-to-LLVM converter will likely be of use to more Gallium3D drivers besides the R600g driver itself, since TGSI is universal to the drivers and not Radeon-specific.

This LLVM back-end is based upon AMD's AMDIL LLVM back-end for OpenCL with various modifications. Tom says this new shader back-end currently passes 99% of the Piglit regression tests that work with the current R600g shader back-end. The failures are coming from unimplemented texture instructions and on a current lack of indirect addressing support. The LLVM back-end also isn't optimized for VLIW at this point plus other optimizations are lacking. "The optimizations in r600_asm.c are able to do some instruction packing, but the resulting code is not yet as good as the current backend."

And here's the key part of his message:
The main motivation for this LLVM backend is to help bring compute/OpenCL support to r600g by making it easier to support different compiler frontends. I don't have a concrete plan for integrating this into mainline Mesa yet, but I don't expect it to be in the next release. I would really like to make it compatible with LLVM 3.0 before it gets merged (it only works with LLVM 2.9 now), but if compute support evolves quickly, I might be tempted to push the 2.9 version into the master branch.

More information coming soon.

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. Preview: AMD's FX-9590 Eight-Core At Up To 5.0GHz On Linux
  2. Intel Launches The Core i7 5960X, Mighty Powerful Haswell-E CPUs
  3. AMD Radeon R9 290: Gallium3D vs. Catalyst Drivers
  4. AMD Radeon R9 290 Open-Source Driver Works, But Has A Ways To Go
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. Mozilla Firefox 32 Surfaces With HTML5, Developer Changes
  2. Nouveau X.Org Driver Released With DRI3+Present, Maxwell, GLAMOR
  3. Microsoft & AMD Release C++ AMP Compiler With Linux Support
  4. AMD, Wine & Valve Dominated August For Linux Users
  5. Linux 3.17-rc3 Kernel Released Back On Schedule
  6. Lennart Poettering Talks Up His New Linux Vision That Involves Btrfs
  7. Mesa 10.3 RC2 Arrives Via Its New Release Manager
  8. Ubuntu 14.10's Lack Of X.Org Server 1.16 Gets Blamed On AMD
  9. MSI Motherboard BIOS Updating Remains A Pain For Linux Users
  10. See How Your Linux System Performs Against The Latest Intel/AMD CPUs
Latest Forum Discussions
  1. Lennart Poettering Talks Up His New Linux Vision That Involves Btrfs
  2. The dangers of Linux kernel development
  3. Updated and Optimized Ubuntu Free Graphics Drivers
  4. AMD Releases UVD Video Decode Support For R600 GPUs
  5. SSD seems slow
  6. Is laptop with Intel CPU and AMD dGPU worth buying considering especially AMD Enduro?
  7. Radeon HD5670 and Ubuntu 14.04
  8. Btrfs Gets Talked Up, Googler Encourages You To Try Btrfs