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

explore slurm #13

Open
laszewsk opened this issue May 30, 2022 · 2 comments
Open

explore slurm #13

laszewsk opened this issue May 30, 2022 · 2 comments
Assignees
Labels

Comments

@laszewsk
Copy link
Member

laszewsk commented May 30, 2022

IN your sbatch scripts you can explore environment variables such as

echo $SLURM_SUBMIT_DIR
env

to let you know where the submit dir is. I assume you can also find other variables. you can probably print with env

@jpfleischer
Copy link
Member

jpfleischer commented May 31, 2022

def output_variables():
   slurmvariables = []
   variables = [v for v in os.environ if v.startswith(“SLURM_“]
   print (Printer.attributes(variables))

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

2 participants