Fix uninitialized variable

This commit is contained in:
Raph Levien 2021-12-01 08:34:22 -08:00
parent 178761dcb3
commit 8af4707525
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -100,7 +100,7 @@ void main() {
// Scan the tag monoid // Scan the tag monoid
TagMonoid local_tm = reduce_tag(tag_word); TagMonoid local_tm = reduce_tag(tag_word);
sh_tag[gl_LocalInvocationID.x] = local_tm; sh_tag[gl_LocalInvocationID.x] = local_tm;
for (uint i; i < LG_WG_SIZE; i++) { for (uint i = 0; i < LG_WG_SIZE; i++) {
barrier(); barrier();
if (gl_LocalInvocationID.x >= (1u << i)) { if (gl_LocalInvocationID.x >= (1u << i)) {
TagMonoid other = sh_tag[gl_LocalInvocationID.x - (1u << i)]; TagMonoid other = sh_tag[gl_LocalInvocationID.x - (1u << i)];