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. NVIDIA GeForce GTX 980: The Best GPU For Linux Gamers
  2. ROCCAT LUA: A Linux-Friendly Gaming Mouse
  3. Cheetah Mounts: The Affordable Way To Put Your TV On The Wall
  4. Scythe Mugen MAX
Latest Linux Articles
  1. Preview: Radeon Gallium3D Performance For CS:GO On Linux
  2. XWayland Linux Gaming Performance With GNOME Wayland On Fedora 21
  3. EXT4/Btrfs/XFS/F2FS Benchmarks On Linux 3.17
  4. Fedora 21 Alpha First Impressions: It's Great
Latest Linux News
  1. Borderlands 2 Launches On Steam For Linux
  2. Debian Jessie Might Get Rid Of The kFreeBSD Port
  3. Fedora Might Try A New Scheduling Strategy For Its Releases
  4. AMD's Catalyst Working On A GLSL Shader Cache
  5. OpenMP 4.0 Offloading Is Closer For GCC 5
  6. Wayland Presentation Extension Added To Weston
  7. Intel Skylake Support Rolls Out To Mesa's DRM
  8. VA-API's Libva 1.4.0 Brings VP8 Encoding Support
  9. Operating System U Fails To Live Up To Its Goals
  10. AMD Catalyst 14.9 Officially Released For Linux
Latest Forum Discussions
  1. FSF Issues Statement On Shellshock Bash Vulnerability
  2. NVIDIA Alerts Nouveau: They're Starting To Sign/Validate GPU Firmware Images
  3. New AMD Catalyst drivers out today
  4. Updated and Optimized Ubuntu Free Graphics Drivers
  5. Take the Steam Survey results with a grain of salt. It is flawed.
  6. AMD Wants To Know What's Wrong With Catalyst
  7. New Group Calls For Boycotting Systemd
  8. Counter-Strike: Global Offensive NVIDIA/AMD Benchmarks On Linux