Sample Header Ad - 728x90

Determine slot ID for a running job

1 vote
0 answers
77 views
On a compute node with multiple slots, are the running jobs each explicitly assigned a slot ID as they start, and if so how can the user or submission script see it? To see the job ID, one can use the $JOB_ID environment variable within the submission script. What about the slot number? I looked for slot information using qstat -j but the information about the job does not contain any information about which of the slots the job is using. I was hoping there would be an integer variable related to the slot number. EDIT: in the general case, a job might be assigned multiple slots if it is parallelized, so in this case the list of slot IDs could be determined.
Asked by feedMe (219 rep)
Feb 6, 2019, 11:47 AM
Last activity: Feb 7, 2019, 09:27 AM