mirror of
https://github.com/keylase/nvidia-patch
synced 2024-11-10 19:10:34 +00:00
Update patch.sh
Find Path to nvidia-smi. For example on gentoo is: "/opt/bin/nvidia-smi"
This commit is contained in:
parent
6f533954f6
commit
1000312b62
3
patch.sh
3
patch.sh
@ -73,8 +73,9 @@ declare -A object_list=(
|
|||||||
["415.27"]='libnvcuvid.so'
|
["415.27"]='libnvcuvid.so'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
NVIDIA_SMI="$(which nvidia-smi)"
|
||||||
|
|
||||||
if ! driver_version=$(/usr/bin/nvidia-smi --query-gpu=driver_version --format=csv,noheader,nounits | head -n 1) ; then
|
if ! driver_version=$($NVIDIA_SMI --query-gpu=driver_version --format=csv,noheader,nounits | head -n 1) ; then
|
||||||
echo 'Something went wrong. Check nvidia driver'
|
echo 'Something went wrong. Check nvidia driver'
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user