... | ... | @@ -40,9 +40,9 @@ The terminal is operational after the resources have been granted: |
|
|
[randria@turing01 ~]$ hostname
|
|
|
turing01
|
|
|
[randria@turing01 ~]$ printenv | grep CUDA
|
|
|
CUDA_VISIBLE_DEVICES=0
|
|
|
CUDA_VISIBLE_DEVICES=0 <-- GPU 0
|
|
|
[randria@turing01 ~]$ nvidia-smi -L
|
|
|
GPU 0: Tesla V100-SXM2-32GB (UUID: GPU-5a80af23-787c-cbcb-92de-c80574883c5d) <-- ALLOCATED
|
|
|
GPU 0: Tesla V100-SXM2-32GB (UUID: GPU-5a80af23-787c-cbcb-92de-c80574883c5d) <-- allocated
|
|
|
GPU 1: Tesla V100-SXM2-32GB (UUID: GPU-233f07d9-5e4c-9309-bf20-3ae74f0495b4)
|
|
|
GPU 2: Tesla V100-SXM2-32GB (UUID: GPU-a1a1cbc1-8747-d8cd-9028-3e2db40deb04)
|
|
|
GPU 3: Tesla V100-SXM2-32GB (UUID: GPU-8d5f775d-70d9-62b2-b46c-97d30eea732f)
|
... | ... | @@ -63,7 +63,7 @@ JobId=1730514 JobName=bash |
|
|
```
|
|
|
|
|
|
*Comments*
|
|
|
- `CUDA_VISIBLE_DEVICES=0` means here we have allocated only 1 GPU (if we had 2 GPUs requested, it would be `0,1`) . You can also use the variable `GPU_DEVICE_ORDINAL`
|
|
|
- `CUDA_VISIBLE_DEVICES=0` means here we have allocated only 1 GPU, the `GPU 0` (if we had 2 GPUs requested, it would be `0,1`) . You can also use the variable `GPU_DEVICE_ORDINAL`
|
|
|
- the `scontrol show job` results show `JobState=RUNNING` means that your session is active and running.
|
|
|
|
|
|
To leave the interactive mode, use exit command :
|
... | ... | |