mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-08 12:15:22 +00:00
fix dkms on debian
This commit is contained in:
parent
8396463255
commit
d0854bf1e6
@ -204,7 +204,7 @@ if ! lsmod | grep -q nvidia; then
|
|||||||
debian|ubuntu) $SUDO apt-get -y install linux-headers-$KERNEL_RELEASE ;;
|
debian|ubuntu) $SUDO apt-get -y install linux-headers-$KERNEL_RELEASE ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
NVIDIA_CUDA_VERSION=$(dkms status | awk -F: '/added/ { print $1 }')
|
NVIDIA_CUDA_VERSION=$($SUDO dkms status | awk -F: '/added/ { print $1 }')
|
||||||
if [ -n "$NVIDIA_CUDA_VERSION" ]; then
|
if [ -n "$NVIDIA_CUDA_VERSION" ]; then
|
||||||
$SUDO dkms install $NVIDIA_CUDA_VERSION
|
$SUDO dkms install $NVIDIA_CUDA_VERSION
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user