Skip to content

Commit

Permalink
Add synchronize in aug_fwd
Browse files Browse the repository at this point in the history
  • Loading branch information
michel2323 committed Feb 14, 2024
1 parent 24beeac commit e92c3b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/EnzymeExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,8 @@ module EnzymeExt
TapeType, subtape, aug_kernel = _create_tape_kernel(
kernel, ModifiedBetween, FT, ctxTy, ndrange, iterspace, args2...
)
@show TapeType
aug_kernel(f, ModifiedBetween, subtape, Val(TapeType), args2...; ndrange, workgroupsize)
# KernelAbstractions.synchronize(backend(kernel))
KernelAbstractions.synchronize(backend(kernel))

# TODO the fact that ctxTy is type unstable means this is all type unstable.
# Since custom rules require a fixed return type, explicitly cast to Any, rather
Expand Down

0 comments on commit e92c3b8

Please sign in to comment.