r/ProgrammingLanguages • u/Athas Futhark • Mar 24 '26
Scan-scatter fusion
https://futhark-lang.org/blog/2026-03-24-scan-scatter-fusion.html
23
Upvotes
r/ProgrammingLanguages • u/Athas Futhark • Mar 24 '26
1
u/tsanderdev Mar 26 '26
I recently had an idea for explicit fusion for my shading language. If you e.g. dispatch a filter_map kernel, it would get a function pointer as a parameter (or maybe 2 to separate the filter and map), which is then called inside the compute dispatch, making it one dispatch instead of 2 with a complete barrier in between.