r/ProgrammingLanguages • u/Athas Futhark • Feb 03 '26
Custom tuning parameters - a dubious feature
https://futhark-lang.org/blog/2026-02-03-tuning-params.html
20
Upvotes
r/ProgrammingLanguages • u/Athas Futhark • Feb 03 '26
View all comments
5
u/tsanderdev Feb 03 '26
Well, looks like I'm really making "rusty imperative Futhark for Vulkan", because this is also on my todo list lol.
For host integration, that kind of thing has to stay static since the code is already compiled, and I don't think shipping your app as llvm ir and compiling on device is the best solution... though the ART on Android does this iirc, so maybe that could be something to look into eventually.
My ultimate goal is kind of automatic pgo of shaders on the end user's device. The compiler would have many internal tuning parameters already, so it wouldn't be much of a bother then to specify some more along with value ranges and sane defaults. The runtime would then be able to optimize the shaders for real use cases e.g. during a graphics test.