cloudmesh / cloudmesh-slurm

Other
0 stars 0 forks source link

explore slurm #13

Open laszewsk opened 2 years ago

laszewsk commented 2 years ago

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

laszewsk commented 2 years ago
jpfleischer commented 2 years ago
def output_variables():
   slurmvariables = []
   variables = [v for v in os.environ if v.startswith(“SLURM_“]
   print (Printer.attributes(variables))