Skip to content

Commit

Permalink
Update dace/transformation/interstate/gpu_transform_sdfg.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tal Ben-Nun <tbennun@users.noreply.github.com>
  • Loading branch information
ThrudPrimrose and tbennun authored Nov 1, 2024
1 parent c0bc17a commit f1b81c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dace/transformation/interstate/gpu_transform_sdfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def can_be_applied(self, graph, expr_index, sdfg, permissive=False):
return True

def _get_marked_inputs_and_outputs(self, state, entry_node) -> list:
if (self.host_data is None or self.host_data == []) and (self.host_maps is None or self.host_maps == []):
if not self.host_data and not self.host_maps:
return []
marked_sources = [state.memlet_tree(e).root().edge.src for e in state.in_edges(entry_node)]
marked_destinations = [state.memlet_tree(e).root().edge.dst for e in state.in_edges(state.exit_node(entry_node))]
Expand Down

0 comments on commit f1b81c4

Please sign in to comment.