Fix missing barriers in the pathtag_scans (#255)

Co-authored-by: Raph Levien <raph.levien@gmail.com>

Co-authored-by: Raph Levien <raph.levien@gmail.com>
This commit is contained in:
Daniel McNab 2023-01-16 20:20:20 +00:00 committed by GitHub
parent 44058a8578
commit 3902e65618
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -60,6 +60,7 @@ fn main(
workgroupBarrier();
sh_monoid[local_id.x] = agg_part;
}
workgroupBarrier();
// prefix up to this workgroup
#ifdef small
var tm = sh_parent[0];

View file

@ -55,6 +55,7 @@ fn main(
workgroupBarrier();
sh_monoid[local_id.x] = agg;
}
workgroupBarrier();
// prefix up to this workgroup
var tm = sh_parent[0];
if local_id.x > 0u {