mirror of
https://github.com/keylase/nvidia-patch.git
synced 2025-08-19 21:03:12 -07:00
Update patch.sh
Done.
This commit is contained in:
parent
10c12bf821
commit
1a6cde986e
1 changed files with 3 additions and 1 deletions
4
patch.sh
4
patch.sh
|
@ -53,6 +53,7 @@ declare -A patch_list=(
|
||||||
["410.79"]='s/\x85\xC0\x89\xC5\x0F\x85\x96\x00\x00\x00/\x29\xC0\x89\xC5\x90\x90\x90\x90\x90\x90/g'
|
["410.79"]='s/\x85\xC0\x89\xC5\x0F\x85\x96\x00\x00\x00/\x29\xC0\x89\xC5\x90\x90\x90\x90\x90\x90/g'
|
||||||
["415.18"]='s/\x00\x00\x00\x84\xc0\x0f\x84\x40\xfd\xff\xff/\x00\x00\x00\x84\xc0\x90\x90\x90\x90\x90\x90/g'
|
["415.18"]='s/\x00\x00\x00\x84\xc0\x0f\x84\x40\xfd\xff\xff/\x00\x00\x00\x84\xc0\x90\x90\x90\x90\x90\x90/g'
|
||||||
["415.25"]='s/\x00\x00\x00\x84\xc0\x0f\x84\x40\xfd\xff\xff/\x00\x00\x00\x84\xc0\x90\x90\x90\x90\x90\x90/g'
|
["415.25"]='s/\x00\x00\x00\x84\xc0\x0f\x84\x40\xfd\xff\xff/\x00\x00\x00\x84\xc0\x90\x90\x90\x90\x90\x90/g'
|
||||||
|
["415.27"]='s/\x00\x00\x00\x84\xc0\x0f\x84\x40\xfd\xff\xff/\x00\x00\x00\x84\xc0\x90\x90\x90\x90\x90\x90/g'
|
||||||
)
|
)
|
||||||
|
|
||||||
declare -A object_list=(
|
declare -A object_list=(
|
||||||
|
@ -69,11 +70,12 @@ declare -A object_list=(
|
||||||
["410.79"]='libnvidia-encode.so'
|
["410.79"]='libnvidia-encode.so'
|
||||||
["415.18"]='libnvcuvid.so'
|
["415.18"]='libnvcuvid.so'
|
||||||
["415.25"]='libnvcuvid.so'
|
["415.25"]='libnvcuvid.so'
|
||||||
|
["415.27"]='libnvcuvid.so'
|
||||||
)
|
)
|
||||||
|
|
||||||
NVIDIA_SMI="$(which nvidia-smi)"
|
NVIDIA_SMI="$(which nvidia-smi)"
|
||||||
|
|
||||||
if ! driver_version=$($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…
Add table
Add a link
Reference in a new issue