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

scripts: query environment to determine auto resource manager and job launcher #579

Open
adammoody opened this issue Nov 2, 2023 · 0 comments
Labels

Comments

@adammoody
Copy link
Contributor

adammoody commented Nov 2, 2023

Currently, SCR records the resource manager that was selected at configure time in config.py, which is what AutoResourceManager defaults to. To enable a single SCR install to support multiple systems having different resource managers and/or job launchers, we could improve the AutoResourceManager and AutoJobLauncher methods to try to guess the correct values based on their current environment.

For the resource manager, when running within an allocation, we could check for environment variables set by the host resource manager. For example, we could guess SLURM if SLURM_JOBID is defined. Since some users run Flux within an allocation of another resource manager, perhaps check for Flux first.

For the job launcher, since many resource managers include a job launcher, we could use the resource manager to guess the job launcher. For SLURM assume srun, for LSF assume jsrun, for Flux assume flux run, etc.

And we'll need a way for the user to declare the exact values to override any guesses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant