You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure clad actually need this because i suppose it works in a bit different way than enoki.
For example, probably subsequent clang optimizations over generated code already does nice work and remove most of intermediate variables from memory to registers.
But one of the goal of my question is to understand, can we make generated code efficient for GPUs and this means we want generated code to be more computationally intensive rather than memory intensive. Because in this case we have CUDA/OpenCL/GLSL/SPIR-V compiler on the back-end and we can't assume they works as good as clang for optimizing intermediate variables.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Well, the thing i'm talking about is https://enoki.readthedocs.io/en/master/autodiff.html#graph-simplification
I'm not sure clad actually need this because i suppose it works in a bit different way than enoki.
For example, probably subsequent clang optimizations over generated code already does nice work and remove most of intermediate variables from memory to registers.
But one of the goal of my question is to understand, can we make generated code efficient for GPUs and this means we want generated code to be more computationally intensive rather than memory intensive. Because in this case we have CUDA/OpenCL/GLSL/SPIR-V compiler on the back-end and we can't assume they works as good as clang for optimizing intermediate variables.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions