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

[bugfix] Allow RESERVED nodes for Slurm "avail" state #3290

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

dmargala
Copy link
Contributor

@dmargala dmargala commented Oct 22, 2024

This PR is an implementation of the suggestions in #3216 to better handle reserved nodes in Slurm when guessing the number of nodes/tasks to use with--flex-node-alloc:

  • include RESERVED as an "avail" state for Slurm nodes (and filter out reserved nodes when no reservation is specified).
  • allow a node to be in any combination of the "avail" states

I also added a few log statements that were helpful to me while testing this interactively and cleaned up a few typos in nearby code.

Closes #3216.

@pep8speaks
Copy link

pep8speaks commented Oct 22, 2024

Hello @dmargala, Thank you for updating!

Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide

Comment last updated at 2024-10-22 22:55:09 UTC

@teojgo teojgo requested review from vkarak and teojgo October 23, 2024 09:09
@vkarak vkarak added this to the ReFrame 4.7 milestone Oct 23, 2024
@vkarak vkarak changed the title [bugfix] allow RESERVED nodes for Slurm "avail" state [bugfix] Allow RESERVED nodes for Slurm "avail" state Oct 23, 2024
Copy link
Contributor

@vkarak vkarak left a comment

Choose a reason for hiding this comment

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

Lgtm, thanks!

@vkarak vkarak merged commit f9da0e7 into reframe-hpc:master Oct 24, 2024
22 checks passed
@vkarak vkarak linked an issue Oct 24, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Issue with determining number of valid nodes for num_tasks=0
4 participants