зеркало из https://github.com/Azure/azurehpc.git
added pipeline and test for gpu
This commit is contained in:
Родитель
e2b4eb9b8d
Коммит
9d0cf3ba47
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
gpu_cards=$(/usr/sbin/lspci | grep -i NVIDIA | wc -l)
|
||||
echo "$gpu_cards NVIDIA devices found"
|
||||
if [ $gpu_cards -eq 0 ]; then
|
||||
echo "ERROR : no NVIDIA devices found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
nvidia-smi || exit 1
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
gpu_cards=$(/usr/sbin/lspci | grep -i NVIDIA | wc -l)
|
||||
echo "$gpu_cards NVIDIA devices found"
|
||||
if [ $gpu_cards -eq 0 ]; then
|
||||
echo "ERROR : no NVIDIA devices found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
nvidia-smi || exit 1
|
Загрузка…
Ссылка в новой задаче