Skip to content

Commit

Permalink
Make SDFG.regenerate_code public API (1/2)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun authored Nov 7, 2024
1 parent b2a95e8 commit 44f107c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dace/sdfg/sdfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def __init__(self,
self._temp_transients = 0

# Helper fields to avoid code generation and compilation
self._regenerate_code = True
self.regenerate_code = True
self._recompile = True

# Grid-distribution-related fields
Expand Down Expand Up @@ -2293,7 +2293,7 @@ def compile(self, output_file=None, validate=True,
############################
# DaCe Compilation Process #

if self._regenerate_code or not os.path.isdir(build_folder):
if self.regenerate_code or not os.path.isdir(build_folder):
# Clone SDFG as the other modules may modify its contents
sdfg = copy.deepcopy(self)
# Fix the build folder name on the copied SDFG to avoid it changing
Expand Down

0 comments on commit 44f107c

Please sign in to comment.