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
A SplineBuilder is a costly object to store and initialise as it contains a matrix. It seems unnecessary to have one instance of the (same) matrix for each different batch pattern that we want to use. Further it is very verbose. We often write the following:
I need to think of it a bit. We had a similar situation with Kokkos-fft. Some backends in Kokkos-fft require to pass arrays at the construction of the plan so that they can find the best fft algorithm. We could think of the same strategy for splines.
In the
SplineBuilder
the batch information is only used in theoperator()
https://github.com/CExA-project/ddc/blob/main/include/ddc/kernels/splines/spline_builder.hpp#L401-L413
A
SplineBuilder
is a costly object to store and initialise as it contains a matrix. It seems unnecessary to have one instance of the (same) matrix for each different batch pattern that we want to use. Further it is very verbose. We often write the following:the code duplication and memory duplication that this involves seems unnecessary.
Wouldn't it be simpler to template
operator()
on the batch domain?The text was updated successfully, but these errors were encountered: