mitsuba-renderer / enoki

Enoki: structured vectorization and differentiation on modern processor architectures
Other
1.26k stars 94 forks source link

Prefix sum example? #40

Closed AnimatedRNG closed 5 years ago

AnimatedRNG commented 5 years ago

After reading through Enoki's documentation, I am still somewhat confused how one would implement a prefix sum or create a summed area table. What is the most idiomatic way to perform a prefix sum?

wjakob commented 5 years ago

Only basic reductions (addition, multiplication, max/min, all, none, any) are supported at the moment. AFAIK there isn't an efficient way of doing prefix sum via AVX/SSE, in which case the utility of such a primitive would be in any case dubious.