Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CFG to generate_scope in tutorials #1706

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

ThrudPrimrose
Copy link
Collaborator

The DFG is missing from codegen tutorial, resulting with an error in codegen. Adding cfg as a param fixes it.

@ThrudPrimrose
Copy link
Collaborator Author

When I saved it also trimmed some trailing whitespace (lines that only have whitespace, it is for the better I think)

tutorials/codegen.ipynb Outdated Show resolved Hide resolved
" # an SDFG has a scope with that schedule\n",
" def generate_scope(self, sdfg: dace.SDFG, scope: ScopeSubgraphView,\n",
" def generate_scope(self, sdfg: dace.SDFG, dfg, scope: ScopeSubgraphView,\n",
" state_id: int, function_stream: CodeIOStream,\n",
" callsite_stream: CodeIOStream):\n",
" # The parameters here are:\n",
" # sdfg: The SDFG we are currently generating.\n",
" # scope: The subgraph of the state containing only the scope (map contents)\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add tutorial documentation

tutorials/codegen.ipynb Outdated Show resolved Hide resolved
tutorials/codegen.ipynb Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants