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

Remove schedule property from NestedSDFG #1318

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

tbennun
Copy link
Collaborator

@tbennun tbennun commented Jul 13, 2023

No description provided.

@BenWeber42
Copy link
Contributor

What's the status here? I get the feeling this may no longer be current?

@tbennun
Copy link
Collaborator Author

tbennun commented Oct 27, 2023

@BenWeber42 It is a good idea and will simplify the SDFG representation. However, I do not have the bandwidth to correct all the involved issues. Perhaps this is better as kept in a project backlog of "things we want to modify in the SDFG representation" for a future version.

@BenWeber42
Copy link
Contributor

Ok, thanks for the clarification. There's a small chance that I may be able to invest some time into this as part of a rework task (though, a bit unclear at the moment...).

I think it's easiest to keep the PR open for now.

@BenWeber42
Copy link
Contributor

@tbennun I would like to continue working on this. Can I take over ownership of this branch?

@tbennun
Copy link
Collaborator Author

tbennun commented Nov 10, 2023

@BenWeber42 sounds good

@BenWeber42
Copy link
Contributor

Around 100 testcases fail, because the schedule is set to "default" and the dispatcher (in code-gen) has nothing registered for "default". I believe the correct fix is to ensure no schedule is set to "default" before SDFG reaches the "dispatching mechanism" of code-gen (I am currently working on this).

However, this leads to the question: Is this a "correctness-condition" that no schedule can be "default" at the "dispatching mechanism"?
If so, we should probably add a check for this as a validation step before the "dispatching mechanism".

@tbennun
Copy link
Collaborator Author

tbennun commented Jan 1, 2024

Around 100 testcases fail, because the schedule is set to "default" and the dispatcher (in code-gen) has nothing registered for "default". I believe the correct fix is to ensure no schedule is set to "default" before SDFG reaches the "dispatching mechanism" of code-gen (I am currently working on this).

However, this leads to the question: Is this a "correctness-condition" that no schedule can be "default" at the "dispatching mechanism"? If so, we should probably add a check for this as a validation step before the "dispatching mechanism".

Looks like it is simply an issue of the storage/schedule type inference not setting all the storage types from default to what they should be. There should not be any Defaults once actual code generation starts; everything must be explicit. The type inference phase happens in the first phase of code generation, here: https://github.com/spcl/dace/blob/master/dace/codegen/codegen.py#L204

@BenWeber42
Copy link
Contributor

Yes, last I was working on this PR, I was looking into this and debugging this function. I believe the function should be adjusted to accommodate the removal of the schedule property of nested SDFGs, but it wasn't clear to me yet how it should be adjusted. Unfortunately, I haven't been able to work on this PR for some time...

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.

2 participants