mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
[CI] Print GPU info during setup linux (#164968)
I.e. run `nvidia-smi` if present Helps detecting what driver version this runner is on, which would have helped debugging some of the issues recently Pull Request resolved: https://github.com/pytorch/pytorch/pull/164968 Approved by: https://github.com/ngimel
This commit is contained in:
committed by
PyTorch MergeBot
parent
e7ed1a00eb
commit
15800888b6
4
.github/actions/setup-linux/action.yml
vendored
4
.github/actions/setup-linux/action.yml
vendored
@ -28,6 +28,10 @@ runs:
|
||||
echo "instance-type: $(get_ec2_metadata instance-type)"
|
||||
echo "system info $(uname -a)"
|
||||
|
||||
- name: Print GPU info (if present)
|
||||
shell: bash
|
||||
run: if [ -f /usr/bin/nvidia-smi ]; then nvidia-smi; fi
|
||||
|
||||
- name: Check if in a container runner
|
||||
shell: bash
|
||||
id: check_container_runner
|
||||
|
Reference in New Issue
Block a user