Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sycl/include/sycl/reduction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,8 +821,9 @@ auto make_reduction(RedOutVar RedVar, RestTy &&...Rest) {
namespace reduction {
inline void finalizeHandler(handler &CGH) { CGH.finalize(); }
template <class FunctorTy> void withAuxHandler(handler &CGH, FunctorTy Func) {
CGH.finalize();
event E = CGH.finalize();
handler AuxHandler(CGH.MQueue, CGH.MIsHost);
AuxHandler.depends_on(E);
AuxHandler.saveCodeLoc(CGH.MCodeLoc);
Func(AuxHandler);
CGH.MLastEvent = AuxHandler.finalize();
Expand Down