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

Support --gpus-per-node as a CLI argument and in slurm-gasnetrun* launchers #26166

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

jabraham17
Copy link
Member

@jabraham17 jabraham17 commented Oct 29, 2024

Expands the work done in #24608 to support --gpus-per-node both as a CLI argument to the slurm-srun launcher and to add it as an option for slurm-gasnetrun* launchers.

Prior to this PR, users could only specify CHPL_LAUNCHER_GPUS_PER_NODE as an environment variable, and this variable was not respected by all slurm based launchers.

Note: This PR adds the CLI argument as this is a key slurm argument that some systems need. This also makes gpus feel more like a first-class Chapel feature for slurm based launchers.

Testing:

  • test both env var and CLI flag with CHPL_LAUNCHER=slurm-srun
  • test both env var and CLI flag with CHPL_LAUNCHER=slurm-gasnetrun_ibv

[Reviewed by @e-kayrakli and @jhh67]

Signed-off-by: Jade Abraham <[email protected]>
@jabraham17 jabraham17 marked this pull request as ready for review October 30, 2024 15:26
Signed-off-by: Jade Abraham <[email protected]>
@jabraham17 jabraham17 merged commit 182bf38 into chapel-lang:main Oct 30, 2024
7 checks passed
@jabraham17 jabraham17 deleted the add-missing-gpus-per-node branch October 30, 2024 20:28
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.

3 participants