Linux's New Compute Accelerator Framework Quickly Taking Shape

Written by Michael Larabel in Linux Kernel on 8 November 2022 at 05:36 AM EST. 4 Comments
LINUX KERNEL
Towards the end of October there finally came about a patch series fleshing out the "accel" subsystem for the Linux kernel in preparing this new subsystem/framework that builds atop the Direct Rendering Manager (DRM) code and is designed for all the up and coming AI accelerator drivers for the kernel. Given the number of accelerator drivers from different vendors eyeing mainline kernel adoption, this new compute accelerator framework is quickly being formed.

For years there has long been the Linux kernel debate over an "accel" subsystem with some drivers currently being tossed into the catch-all "char/misc" area of the kernel while the open-source graphics driver developers have wanted these drivers to go in via the DRM subsystem given the commonality with GPU drivers. What's now finally reached consensus and coming about with the work-in-progress patch series is building a compute accelerator framework/subsystem built atop the existing DRM infrastructure.

Oded Gabbay who led the work on the Habana Labs AI kernel driver has been the one leading the development of the compute accelerator framework. Besides working on a "dummy" driver, there are also plans for Intel-owned Habana Labs to eventually transition their AI driver from the char/misc area to this new framework. There are numerous other AI drivers relevant to this new framework like the Intel Meteor Lake Versatile Processing Unit, Toshiba DNN Visconti, NVIDIA NVDLA, Samsung Trinity NPU, Intel GNA, Qualcomm QAIC, and others.

Given the interest in this framework and it holding up the various other in-progress drivers, two weeks since the original patch series we are now up to the third iteration. The compute accelerator subsystem v3 patches address comments raised during earlier review, make various code changes based on testing thus far, some of the Intel VPU driver engineers have been looking at this framework, and other changes made.


Those interested in this forthcoming Linux compute accelerator subsystem can see the v3 patches on the kernel mailing list. Given the different drivers and vendors depending upon this framework, it's likely this long-awaited subsystem will premiere sooner rather than later.
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