Open crtrott opened 1 week ago
We played with that, but as a result, the lambda is a template on the type of the view it captures, and IIRC, @pzehner had an issue with that & Cuda.
Since Peter brought that up in the slack
I guess you meant Paul...
The approach you came up with is very similar with the "layer" approach we tried (@jbigot not the one using the templated lambdas). It works well, but requires to implement an extra layer for parallel_*
(which means to maintain this interface), and to recreate the various execution policies (which means more stuff to maintain).
The choose_side_read
/_write
strategy you proposed is interesting.
Since Peter brought that up in the slack here is a sketch of what I came up with using DualView as the fundamental data management approach: