Skip to content

Commit

Permalink
Revert changes (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun committed Oct 2, 2023
1 parent 1bb60e2 commit 8909658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dace/codegen/targets/cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,7 @@ def make_restrict(expr: str) -> str:
]
arguments += [
f'{node.sdfg.symbols[aname].as_arg(aname)}' for aname in sorted(node.symbol_mapping.keys())
if aname not in sdfg.constants and aname in self._frame.free_symbols(node.sdfg)
if aname not in sdfg.constants
]
arguments = ', '.join(arguments)
return f'void {sdfg_label}({arguments}) {{'
Expand All @@ -1524,7 +1524,7 @@ def generate_nsdfg_call(self, sdfg, state, node, memlet_references, sdfg_label,
prepend = ['__state']
args = ', '.join(prepend + [argval for _, _, argval in memlet_references] + [
cpp.sym2cpp(symval) for symname, symval in sorted(node.symbol_mapping.items())
if symname not in sdfg.constants and symname in self._frame.free_symbols(node.sdfg)
if symname not in sdfg.constants
])
return f'{sdfg_label}({args});'

Expand Down

0 comments on commit 8909658

Please sign in to comment.