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

Allow a memory specification of zero for the SLURM plugin #6605

Merged

Conversation

ConradJohnston
Copy link
Contributor

In SLURM memory specification, a value of zero is treated as a special case indicating that no memory limit should be used. This is documented here under the '--mem' section.

Currently the SLURM plugin demands a positive integer, but this logic puts an unexpected limitation on the SLURM plugin. This commit changes this logic to allow a value of 0 to be acctepted.

Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.88%. Comparing base (ef60b66) to head (47f83b9).
Report is 128 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6605      +/-   ##
==========================================
+ Coverage   77.51%   77.88%   +0.38%     
==========================================
  Files         560      567       +7     
  Lines       41444    42120     +676     
==========================================
+ Hits        32120    32802     +682     
+ Misses       9324     9318       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ConradJohnston ConradJohnston marked this pull request as draft November 4, 2024 20:26
In SLURM memory specification, a value of zero is treated as a special
case indicating that no memory limit should be used.
This is documented here: https://slurm.schedmd.com/sbatch.html under the
'--mem' section.

Currently the SLURM plugin demands a positive integer, but this logic
puts an unexpected limitation on the SLURM plugin. This commit changes
this logic to allow a value of 0 to be acctepted.
@ConradJohnston ConradJohnston marked this pull request as ready for review November 4, 2024 21:37
@ConradJohnston
Copy link
Contributor Author

I think @giovannipizzi wrote the SLURM plugin, in time immemorial.

@giovannipizzi giovannipizzi changed the title Allow a memory specification of zero for the SLURM plugin. Allow a memory specification of zero for the SLURM plugin Nov 5, 2024
Copy link
Member

@giovannipizzi giovannipizzi left a comment

Choose a reason for hiding this comment

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

Thanks @ConradJohnston !

@giovannipizzi giovannipizzi merged commit 0fa9582 into aiidateam:main Nov 5, 2024
11 checks passed
@giovannipizzi giovannipizzi deleted the Allow_zero_memory_in_slurm branch November 5, 2024 08:57
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