Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use all read variables in context and not just those which are argume…
…nts.
  • Loading branch information
nkoskelo committed Jan 10, 2025
commit 2123f7e3a9000dac861ad776d0c313e5f99a219c
2 changes: 1 addition & 1 deletion loopy/codegen/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def generate_unroll_loop(codegen_state, sched_index):
original_knl_ = new_codegen_state.kernel.copy()
context = new_codegen_state.var_subst_map
# Add in the other variables as variables.
for key in original_knl_.arg_dict:
for key in original_knl_.get_read_variables():
if key not in context.keys():
context = context.update({key: Variable(key)})

Expand Down
Loading