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

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.
35 Comments