Skip to content

Commit

Permalink
This must be an error sync.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Aug 15, 2023
1 parent af76565 commit 5867de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Futhark/CodeGen/ImpGen/GPU/SegScan/SinglePass.hs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ compileSegScan pat lvl space scanOp kbody = do
sFor "i" m $ \i -> do
sharedIdx <- dPrimV "sharedIdx" $ kernelLocalThreadId constants * m + i
copyDWIMFix priv [sExt64 i] (Var trans) [sExt64 $ tvExp sharedIdx]
sOp localBarrier
sOp $ Imp.ErrorSync Imp.FenceLocal

sComment "Per thread scan" $ do
-- We don't need to touch the first element, so only m-1
Expand Down

0 comments on commit 5867de4

Please sign in to comment.