Is Rusticl the future of OpenCL for AMD cards on Linux?

Discussion related to the LuxCore functionality, implementations and API.
Post Reply
illwieckz
Posts: 19
Joined: Tue May 17, 2022 11:41 pm

Is Rusticl the future of OpenCL for AMD cards on Linux?

Post by illwieckz »

Rusticl is a work-in progress open source OpenCL driver developed within Mesa (like the radeonsi OpenGL driver and the radv Vulkan driver).

It's not complete enough to run actual LuxCoreRender. It's even not complete enough to build non-LuxBall LuxMark scenes (in fact, that's because it is still inlining all functions and then kernels are too big).

Anyway, it can already run the LuxMark LuxBall scene, so I driven some tests on AMD hardware… And the result is that rusticl works on every AMD card of every generation starting with GCN. I tested game console APUs, slow NAS APUs, mid-end desktop APUs, low end desktop graphics cards, high end gaming graphic cards, high end professional dual GPU FirePro cards, high end compute cards… they all work:
https://twitter.com/illwieckz/status/1582803118093635585

And while no optimization work had been done on rusticl yet, performance is always on par with other official AMD drivers (ROCm, Orca, PAL, and, not mentioned in the following table, old fglrx).

So, here are the results of my test, “It just just works”:

Image

Note: For some reasons Clover is still faster on some GCN 1/2 hardware (and always had been faster than AMD official drivers with the same gap) so Clover being faster with some cards doesn't mean rusticl is slow: rusticl has the speed of official AMD drivers in all cases

Note: “running” means a validated LuxMark LuxBall run. “slow” Clover means the render looks correct but not enough is rendered in time to validate the result. “crash” means some kernel-side problem happened and the computer had to be rebooted. ”compilation error” means the OpenCL code fails to compile, and “segmentation fault” means the driver segfaults and takes down LuxMark with it. Rusticl suffers from none of that.

Here is LuxMark 3.1 LuxBall scene running on a Radeon Instinct MI25 using rusticl: http://luxmark.info/node/9604

Image

Image

So, maybe rusticl is the future of LuxCoreRender on AMD cards on Linux? :)

In fact rusticl is already starting to work on other hardware (Intel HD with iris driver), or even over some vulkan drivers like ANV (intel) and RADV (amd). So maybe at some point rusticl would be the future of LuxCoreRender on all hardware on Linux ? 8-)
Post Reply