Rusticl Posted For Working On OpenCL 3.0 Within Rust For Mesa Gallium3D Drivers

Written by Michael Larabel in Mesa on 18 March 2022 at 05:50 AM EDT. 35 Comments
MESA
Mesa has long had the OpenCL "Clover" Gallium3D state tracker that has supported OpenCL 1.x but lacked important extensions that impaired its practicality. With AMD backing their ROCm compute stack in more recent years and Intel going with their Compute-Runtime stack for oneAPI and OpenCL support, there also isn't a major backer to Clover besides Red Hat engineers and the community. Now though "Rusticl" has been published as a new Mesa OpenCL implementation written in the Rust programming language.

Rusticl was started by well known Mesa contributor Karol Herbst of Red Hat. While starting off as an open-source NVIDIA "Nouveau" engineer while at Red Hat he has worked on Mesa's Clover compute support and other efforts. Rusticl is an attempt by Herbst at learning the Rust programming language and also providing a new (and hopefully superior) OpenCL implementation.

Rusticl advertises the OpenCL 3.0 version while at the moment it passes most of the OpenCL 1.0 conformance test suite and various other test cases. Rusticl is much more modern OpenCL focused compared to the aging Clover code. Notable, however, is Rusticl at the moment still doesn't have OpenCL image support that has been another issue with Clover. The goal is to have Rusticl properly passing the OpenCL 3.0 conformance test suite.


Rusticl relies upon clc for compiling the OpenCL source code to SPIR-V. Rusticl is also dependent upon the Mesa Gallium3D drivers supporting NIR, but all the major drivers already do.

At the moment Rusticl is just under ten thousand lines of code. See its merge request for more details on this Rust-written Mesa OpenCL implementation.
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