mitsuba-renderer / enoki

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

Runtime dynamic dispatch of functions using Enoki? #124

Closed amyspark closed 2 years ago

amyspark commented 3 years ago

:wave:

We at Krita are looking for a replacement to Vc that will enable us to support the Arm architecture; mainly for Android, but Apple silicon comes for free as well.

A key requirement is the need for supporting a broad range of instruction sets in the same binary, from SSE2 to AVX2+FMA, and dispatch the call to the correct function. However, I do not see any way to perform this with Enoki. Does it allow such an use case?

wjakob commented 2 years ago

It's likely tricky to do such things portably. It's not a feature on the Enoki roadmap.