Skip to content

Commit

Permalink
Map function might have errors; sync here.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Aug 17, 2023
1 parent 58fdbaa commit 344cd12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Futhark/CodeGen/ImpGen/GPU/SegRed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,8 @@ reductionStageZero constants ispace num_elements global_tid elems_per_thread thr
$ \((acc, acc_is), se) ->
copyDWIMFix acc (acc_is ++ vec_is) se []

sOp $ Imp.ErrorSync Imp.FenceLocal

case comm of
Noncommutative -> do
doTheReduction
Expand Down

0 comments on commit 344cd12

Please sign in to comment.