Skip to content

Commit

Permalink
Oops, cannot have error sync here.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Aug 15, 2023
1 parent f802d66 commit a7adb90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Futhark/CodeGen/ImpGen/GPU/SegScan/SinglePass.hs
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,9 @@ compileSegScan pat lvl space scanOp kbody = do
compileStms mempty (bodyStms $ lambdaBody lam) $
forM_ (zip3 prefixes tys $ map resSubExp $ bodyResult $ lambdaBody lam) $
\(prefix, ty, res) -> prefix <-- TPrimExp (toExp' ty res)
sOp $ Imp.ErrorSync Imp.FenceLocal
sOp localFence
)

-- end sWhile
-- end sIf
sWhen (kernelLocalThreadId constants .==. 0) $ do
Expand Down

0 comments on commit a7adb90

Please sign in to comment.