LLVM Adds MLIR-Vulkan-Runner To Run MLIR On Vulkan-Enabled GPUs

Written by Michael Larabel in LLVM on 19 February 2020 at 03:16 PM EST. 2 Comments
LLVM
Added to the LLVM source tree today is mlir-vulkan-runner as a new utility for testing with some interesting possibilities.

For those out of the loop, MLIR is a new intermediate representation (IR) in the LLVM ecosystem that has grown immensely in popularity since Google developers announced it last year. MLIR was designed as a machine learning IR for the likes of TensorFlow and has seen significant adoption by the LLVM ecosystem in working out well for heterogeneous hardware among other advantages over the traditional LLVM IR.

The mlir-vulkan-runner added to the LLVM source tree today is an execution driver for executing MLIR files on Vulkan by translating MLIR modules into SPIR-V for execution on GPUs while the host portion is converted to LLVM IR and JIT'ed on the system. This is similar to the MLIR CUDA runner that has already existed for NVIDIA platforms.

More details within this commit.

The mlir-vulkan-runner is a basic implementation for taking MLIR to GPUs/SPIR-V while Google engineers have already been working on the likes of IREE for taking MLIR to Vulkan-enabled GPUs for machine learning tasks.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week