mitsuba-renderer / enoki

Enoki: structured vectorization and differentiation on modern processor architectures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Force enoki::Array<float, 3> to be 12 bytes

rohan-sawhney opened this issue · comments

Hi, enoki seems to pad arrays of size 3 with an extra zero for improved vectorization. Is there a way to disable this feature?

Yes: -DENOKI_DISABLE_VECTORIZATION

Thanks! Is this specifically for arrays of size 3, or does it impact vectorization elsewhere as well? I'd specifically like to turn off vectorization for arrays of size 3.

That will turn of vectorization everywhere. We don't currently expose a way to do that just for size 3, but it could be an interesting addition. A lot of work is currently going into a major redesign of the Enoki internals, and we can look into that once that's done (but probably not for a few months)

Sounds good, thanks.