-
Notifications
You must be signed in to change notification settings - Fork 54
refactor[next-dace]: New Optimization Scheme in Intra-Map Optimization #2457
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
base: main
Are you sure you want to change the base?
refactor[next-dace]: New Optimization Scheme in Intra-Map Optimization #2457
Conversation
NOT WORKING: 5.7612245082855225
DOES NOT WORK: 5.77982020
NOT WORKING: 5.89192s
SEEMS WORKING: 4.57165s
…tion. But it also has an additional simplify that was present when TF was run in stage 1, but not in the other version. PERFORMANCE: 4.5106589s
…n_map_dataflow_optimization_order_public
|
cscs-ci run |
|
cscs-ci run |
| # things simpler or prevent it from doing certain, negative, things). | ||
| # TODO(phimuell): Restrict it to Tasklets only inside Maps. | ||
| # TODO(phimuell): Investigate more. | ||
| sdfg.apply_transformations_repeated( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add an option to disable this to avoid getting the regression in the other stencil as an interim solution until we understand the implications of this transformation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we should do it the problem is just that we have to coordinate this, because PR#2450 broke compatibility (the metric package in GT4Py was moved, thus we can not simply make a new release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: The staging branch (C2SM/icon4py#1009) has the correct import of the metric package.
By default it is off.
| blocking_only_if_independent_nodes: Optional[bool], | ||
| scan_loop_unrolling: bool, | ||
| scan_loop_unrolling_factor: int, | ||
| compact_tasklets: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| compact_tasklets: bool, | |
| fuse_tasklets: bool, |
| assume_pointwise: bool = True, | ||
| optimization_hooks: Optional[dict[GT4PyAutoOptHook, GT4PyAutoOptHookFun]] = None, | ||
| demote_fields: Optional[list[str]] = None, | ||
| compact_tasklets: bool = False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| compact_tasklets: bool = False, | |
| fuse_tasklets: bool = False, |
edopao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM


This PR changes how Intra-Map dataflow optimization works. Specifically it adds
TaskletFusionwhich, as its name suggests is able to merge Tasklets together.TODO:
TaskletFusionin Auto Optimizer C2SM/icon4py#1016