Skip to content

solver: manually optimize trigger_node projections#51605

Merged
alalazo merged 1 commit intospack:developfrom
alalazo:solver/trigger-node
Nov 19, 2025
Merged

solver: manually optimize trigger_node projections#51605
alalazo merged 1 commit intospack:developfrom
alalazo:solver/trigger-node

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Nov 19, 2025

Project out trigger_node in its own rule, instead of using anonymous variables. This should help the grounder avoiding Cartesian products that lead to the same head in rules with a larger domain, and does not rely on optimizations that may or may not be done.

Overall, the encoding seems to have a very small, but positive effect on concretization:

radiuss.develop.csv
radiuss.pr.csv

comparison

Project out trigger node in its own rule, instead of using
anonymous variables. This should help the grounder avoiding
cartesian products that lead to the same head.

Signed-off-by: Massimiliano Culpo <[email protected]>
Copy link
Copy Markdown
Member

@haampie haampie left a comment

Choose a reason for hiding this comment

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

lgtm

@alalazo alalazo merged commit b76b43c into spack:develop Nov 19, 2025
31 of 32 checks passed
@alalazo alalazo deleted the solver/trigger-node branch November 19, 2025 15:17
psakievich pushed a commit to psakievich/spack that referenced this pull request Dec 1, 2025
Project out trigger node in its own rule, instead of using
anonymous variables. This should help the grounder avoiding
cartesian products that lead to the same head.

Signed-off-by: Massimiliano Culpo <[email protected]>
harshula pushed a commit to ACCESS-NRI/spack that referenced this pull request Dec 9, 2025
* Cherry-picked upstream commit b76b43c

Project out trigger node in its own rule, instead of using
anonymous variables. This should help the grounder avoiding
cartesian products that lead to the same head.

Signed-off-by: Massimiliano Culpo <[email protected]>
@becker33 becker33 mentioned this pull request Jan 11, 2026
2 tasks
becker33 pushed a commit that referenced this pull request Jan 11, 2026
Project out trigger node in its own rule, instead of using
anonymous variables. This should help the grounder avoiding
cartesian products that lead to the same head.

Signed-off-by: Massimiliano Culpo <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 11, 2026
Project out trigger node in its own rule, instead of using
anonymous variables. This should help the grounder avoiding
cartesian products that lead to the same head.

Signed-off-by: Massimiliano Culpo <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 12, 2026
Project out trigger node in its own rule, instead of using
anonymous variables. This should help the grounder avoiding
cartesian products that lead to the same head.

Signed-off-by: Massimiliano Culpo <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 15, 2026
Project out trigger node in its own rule, instead of using
anonymous variables. This should help the grounder avoiding
cartesian products that lead to the same head.

Signed-off-by: Massimiliano Culpo <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
vjranagit pushed a commit to vjranagit/spack that referenced this pull request Jan 18, 2026
Project out trigger node in its own rule, instead of using
anonymous variables. This should help the grounder avoiding
cartesian products that lead to the same head.

Signed-off-by: Massimiliano Culpo <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 22, 2026
Project out trigger node in its own rule, instead of using
anonymous variables. This should help the grounder avoiding
cartesian products that lead to the same head.

Signed-off-by: Massimiliano Culpo <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 26, 2026
Project out trigger node in its own rule, instead of using
anonymous variables. This should help the grounder avoiding
cartesian products that lead to the same head.

Signed-off-by: Massimiliano Culpo <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
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