From 10c12bf8217a051d3a20e9c37483f83ce3738c62 Mon Sep 17 00:00:00 2001 From: 3PO Date: Sat, 19 Jan 2019 14:18:54 +0100 Subject: [PATCH] Update patch.sh Find Path to nvidia-smi. For example on gentoo is: "/opt/bin/nvidia-smi" --- patch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patch.sh b/patch.sh index 2a7550a..277f6a9 100755 --- a/patch.sh +++ b/patch.sh @@ -71,8 +71,9 @@ declare -A object_list=( ["415.25"]='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' exit 1; fi