Skip to content
Snippets Groups Projects

Clean up use of 'iname' variable in generate_sequential_loop_dim_code (found by @mattwala)

Merged Andreas Klöckner requested to merge fix-leaked-variable-in-seq-codegen into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -1948,8 +1948,8 @@ def test_tight_loop_bounds_codegen():
for_loop = \
"for (int j = " \
"(lid(0) == 0 && gid(0) == 0 ? 0 : -2 + 10 * gid(0) + 2 * lid(0)); " \
"j <= (lid(0) == 0 && -1 + gid(0) == 0 ? 9 : 2 * lid(0)); ++j)"
"(gid(0) == 0 && lid(0) == 0 ? 0 : -2 + 2 * lid(0) + 10 * gid(0)); " \
"j <= (-1 + gid(0) == 0 && lid(0) == 0 ? 9 : 2 * lid(0)); ++j)"
assert for_loop in cgr.device_code()
Loading