How to get rank in aprun
问题 I am trying to run a multi-node jobs with aprun. However, I couldn't figure out how to get the rank (or whatever that serves as the ID of each job) in bash environment. Like this simple job: aprun -n 8 -N 2 ./examplebashscript.sh How can I get the rank in each spawned jobs? Without something like a rank or any unique job ID, this aprun line will only run the exact same program 16 times, which is undesirable. I've been reading on the documentation, surprisingly I couldn't find anything that