()
| 161 | return int(os.environ.get('SLURM_PROCID', 0)) |
| 162 | |
| 163 | def get_local_rank(): |
| 164 | return get_rank() % torch.cuda.device_count() |
| 165 | |
| 166 | def get_world_size(): |
| 167 | return int(os.environ.get('SLURM_NTASKS', 1)) |
nothing calls this directly
no test coverage detected