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

Detecting context in interactive slurm job assumes MPI even when it shouldn't #67

Open
Sbozzolo opened this issue Feb 19, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Sbozzolo
Copy link
Member

ClimaComms.context() checks whether the environmental variable PMI_RANK is defined. If it exists, ClimaComms will assume that we are in a MPI job. This is breaks when running interactively in a slurm system, as the variable is created even if the user has requested one task and has no intention on using MPI.

To reproduce, just ask for a thread with srun and run ClimaComms.context().

I don't know what's the cleanest way to fix this.

@Sbozzolo Sbozzolo added bug Something isn't working help wanted Extra attention is needed labels Feb 19, 2024
@Sbozzolo Sbozzolo changed the title Detecting context in interactive slurm job Detecting context in interactive slurm job assumes MPI even when it shouldn't Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant