Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into bug-gpu-codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
edopao committed Nov 23, 2023
2 parents 12b5321 + 4139ddf commit 57f8c02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dace/sdfg/analysis/schedule_tree/sdfg_to_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ def replace_memlets(sdfg: SDFG, input_mapping: Dict[str, Memlet], output_mapping
syms.remove(memlet.data)
for s in syms:
if s in input_mapping:
repl_dict[s] = str(input_mapping[s])
if s in sdfg.arrays:
repl_dict[s] = input_mapping[s].data
else:
repl_dict[s] = str(input_mapping[s])

# Manual replacement with strings
# TODO(later): Would be MUCH better to use MemletReplacer / e.data.replace_dict(repl_dict, replace_keys=False)
Expand Down

0 comments on commit 57f8c02

Please sign in to comment.