Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Feature | Experimental] SDFG code labeler#359

Merged
FlorianDeconinck merged 7 commits intoNOAA-GFDL:developfrom
FlorianDeconinck:feature/sdfg_code_labeller
Jan 12, 2026
Merged

[Feature | Experimental] SDFG code labeler#359
FlorianDeconinck merged 7 commits intoNOAA-GFDL:developfrom
FlorianDeconinck:feature/sdfg_code_labeller

Conversation

@FlorianDeconinck
Copy link
Collaborator

Description

The first step to allow performance developer to deploy custom made optimization pipeline in orchestration, we need to be able to label the code so we can capture the correct tree or SDFG for optimization.

This PR introduces a function that surround the SDFG with two state/library node combo labelling. Because of the passthrough nature, the library node will be removed by simplify, which is a good side effect.

Testing has been done locally and for safety the feature is hooked on the _INTERNAL__SCHEDULE_TREE_OPTIMIZATION experimental flag for schedule tree optimization.

Unit test for this particular feature are difficult because of the non-modular structure of orchestration. We expect test to come for the full "custom optimization pipeline" that will leverage this.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (e.g. add new modules to docs/docstrings/)
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included

Hook on _INTERNAL__SCHEDULE_TREE_OPTIMIZATION for safety
Copy link
Collaborator

@romanc romanc left a comment

Choose a reason for hiding this comment

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

This looks good to me. I'd just ask to change Labeller to Labeler (single l) to be consistent with US-English that we generally use in the package (e.g. we'd write color and behavior). More on labeller vs labeler.

@FlorianDeconinck FlorianDeconinck added this pull request to the merge queue Jan 9, 2026
@romanc romanc removed this pull request from the merge queue due to a manual request Jan 9, 2026
@FlorianDeconinck FlorianDeconinck added this pull request to the merge queue Jan 9, 2026
@romanc romanc removed this pull request from the merge queue due to a manual request Jan 9, 2026
@romanc romanc self-requested a review January 9, 2026 17:10
Copy link
Collaborator

@romanc romanc left a comment

Choose a reason for hiding this comment

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

Can you rename the labeller -> labeler? (Like filename and classname and in the title of the PR)

@FlorianDeconinck
Copy link
Collaborator Author

Can you rename the labeller -> labeler? (Like filename and classname and in the title of the PR)

Oooh good catch

@romanc romanc changed the title [Feature | Experimental] SDFG code labeller [Feature | Experimental] SDFG code labeler Jan 9, 2026
@romanc romanc self-requested a review January 12, 2026 16:04
Copy link
Collaborator

@romanc romanc left a comment

Choose a reason for hiding this comment

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

👍

@FlorianDeconinck FlorianDeconinck added this pull request to the merge queue Jan 12, 2026
Merged via the queue into NOAA-GFDL:develop with commit 0702698 Jan 12, 2026
6 checks passed
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