Pass setup/interpolated variables through as run
arguments instead of closing over them in the harness
#127
Labels
run
arguments instead of closing over them in the harness
#127
cc @maleadt
cc @KristofferC (this approach could help with the optimization-brittleness issues you've said run into)
See my comment here: https://github.com/JuliaGPU/CuArrays.jl/issues/210#issuecomment-442860840
I'm not sure this would've been possible to implement easily in the pre-NamedTuple era, but now that we have them, we might be able to use them to forward variables through to the benchmark kernel.
E.g. the whole
setup
expression could be rendered into a thunk that gets called with the interpolated variable arguments, and returns a NamedTuple of all the resulting setup variables.The text was updated successfully, but these errors were encountered: