Skip to content

ASP-based solver: avoid cycles in clingo using hidden directive#40720

Merged
alalazo merged 1 commit intospack:developfrom
alalazo:solver/use-hidden-feature-clingo
Oct 30, 2023
Merged

ASP-based solver: avoid cycles in clingo using hidden directive#40720
alalazo merged 1 commit intospack:developfrom
alalazo:solver/use-hidden-feature-clingo

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Oct 26, 2023

The code should be functonally equivalent to what it was before, but now to avoid cycles by design we are using a "hidden" feature of clingo.

The code should be functonally equivalent to what it was before,
but now to avoid cycles by design we are using a "hidden"
feature of clingo
@spackbot-app spackbot-app Bot added the core PR affects Spack core functionality label Oct 26, 2023
@alalazo alalazo marked this pull request as ready for review October 29, 2023 11:11
@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented Oct 29, 2023

Tested on:

  • Spack: 0.21.0.dev0 (8edc8eb7f4776cd605ca45dd9df1e81bef3026a6)
  • Python: 3.11.5
  • Platform: linux-ubuntu20.04-icelake
  • Concretizer: clingo

develop: 361d973
PR: 8edc8eb7f4776cd605ca45dd9df1e81bef3026a6 (this PR rebased on top of the develop above)

radiuss-pr.csv
radiuss-develop.csv
radiuss.txt

radiuss

Given the current performance, and the fact that this solution is guaranteed to not have cycles, I'd be for merging it.

@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented Oct 29, 2023

@rkaminsk Thanks for the hint on the edge directive, it seems to work perfectly for our use case.

Copy link
Copy Markdown
Member

@alecbcs alecbcs left a comment

Choose a reason for hiding this comment

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

Looks good to me. I'm a big fan in the reduction of complexity on our end.

@alalazo alalazo merged commit 6983db1 into spack:develop Oct 30, 2023
@alalazo alalazo deleted the solver/use-hidden-feature-clingo branch October 30, 2023 06:38
victoria-cherkas pushed a commit to victoria-cherkas/spack that referenced this pull request Oct 30, 2023
…k#40720)

The code should be functonally equivalent to what it was before,
but now to avoid cycles by design we are using a "hidden"
feature of clingo
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Nov 2, 2023
…k#40720)

The code should be functonally equivalent to what it was before,
but now to avoid cycles by design we are using a "hidden"
feature of clingo
gabrielctn pushed a commit to gabrielctn/spack that referenced this pull request Nov 24, 2023
…k#40720)

The code should be functonally equivalent to what it was before,
but now to avoid cycles by design we are using a "hidden"
feature of clingo
mtaillefumier pushed a commit to mtaillefumier/spack that referenced this pull request Dec 14, 2023
…k#40720)

The code should be functonally equivalent to what it was before,
but now to avoid cycles by design we are using a "hidden"
feature of clingo
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Jan 11, 2024
…k#40720)

The code should be functonally equivalent to what it was before,
but now to avoid cycles by design we are using a "hidden"
feature of clingo
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Jan 31, 2024
…k#40720)

The code should be functonally equivalent to what it was before,
but now to avoid cycles by design we are using a "hidden"
feature of clingo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core PR affects Spack core functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants