Skip to content

Commit

Permalink
Fix bug in map_sum_opt over variable number of loops.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Jun 4, 2024
1 parent d35a661 commit e93190f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ def f(i):
prog.free_later()
prog.prevent_breaks = prevent_breaks
if len(state):
if thread_rounds:
if not util.is_zero(thread_rounds):
for i in range(n_threads - remainder):
state = reducer(Array(len(state), state_type, \
args[remainder + i][1]), state)
Expand Down

0 comments on commit e93190f

Please sign in to comment.