Skip to content

Commit

Permalink
Fix #1883.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas authored and cornelius-sevald committed Mar 25, 2023
1 parent e43b34d commit d97023a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

* AD for certain combinations of `map` and indexing (#1878).

* Barrier divergence in generated code in some exotic cases (#1883).

## [0.23.1]

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Futhark/CodeGen/ImpGen/GPU/Group.hs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ groupCoverSegSpace virt space m = do
groupLoop iterations $ \i -> do
dIndexSpace (zip ltids dims') $ sExt64 i
m
Just num_chunks -> do
Just num_chunks -> localOps threadOperations $ do
let ltid = kernelLocalThreadId constants
sFor "chunk_i" num_chunks $ \chunk_i -> do
i <- dPrimVE "i" $ chunk_i * sExt32 group_size + ltid
Expand Down

0 comments on commit d97023a

Please sign in to comment.