Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
orangecat
ollama
Commits
b934bf23
"tools/vscode:/vscode.git/clone" did not exist on "07e48859c2a5ba79477243b66eb2edc27576ac50"
Unverified
Commit
b934bf23
authored
Sep 25, 2023
by
Michael Yang
Committed by
GitHub
Sep 25, 2023
Browse files
exit on unknown distro (#594)
parent
2b8ef455
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
scripts/install.sh
scripts/install.sh
+4
-1
No files found.
scripts/install.sh
View file @
b934bf23
...
@@ -198,16 +198,19 @@ if ! check_gpu nvidia-smi || [ -z "$(nvidia-smi | grep -o "CUDA Version: [0-9]*\
...
@@ -198,16 +198,19 @@ if ! check_gpu nvidia-smi || [ -z "$(nvidia-smi | grep -o "CUDA Version: [0-9]*\
centos|rhel
)
install_cuda_driver_yum
'rhel'
$OS_VERSION
;;
centos|rhel
)
install_cuda_driver_yum
'rhel'
$OS_VERSION
;;
rocky
)
install_cuda_driver_yum
'rhel'
$(
echo
$OS_VERSION
|
cut
-c1
)
;;
rocky
)
install_cuda_driver_yum
'rhel'
$(
echo
$OS_VERSION
|
cut
-c1
)
;;
fedora
)
install_cuda_driver_yum
$OS_NAME
$OS_VERSION
;;
fedora
)
install_cuda_driver_yum
$OS_NAME
$OS_VERSION
;;
amzn
)
install_cuda_driver_yum
'fedora'
'35'
;;
debian
)
install_cuda_driver_apt
$OS_NAME
$OS_VERSION
;;
debian
)
install_cuda_driver_apt
$OS_NAME
$OS_VERSION
;;
ubuntu
)
install_cuda_driver_apt
$OS_NAME
$(
echo
$OS_VERSION
|
sed
's/\.//'
)
;;
ubuntu
)
install_cuda_driver_apt
$OS_NAME
$(
echo
$OS_VERSION
|
sed
's/\.//'
)
;;
*
)
exit
;;
esac
esac
fi
fi
if
!
lsmod |
grep
-q
nvidia
;
then
if
!
lsmod |
grep
-q
nvidia
;
then
KERNEL_RELEASE
=
"
$(
uname
-r
)
"
KERNEL_RELEASE
=
"
$(
uname
-r
)
"
case
$OS_NAME
in
case
$OS_NAME
in
centos|rhel|rocky|fedora
)
$SUDO
$PACKAGE_MANAGER
-y
install
kernel-devel-
$KERNEL_RELEASE
kernel-headers-
$KERNEL_RELEASE
;;
centos|rhel|rocky|fedora
|amzn
)
$SUDO
$PACKAGE_MANAGER
-y
install
kernel-devel-
$KERNEL_RELEASE
kernel-headers-
$KERNEL_RELEASE
;;
debian|ubuntu
)
$SUDO
apt-get
-y
install
linux-headers-
$KERNEL_RELEASE
;;
debian|ubuntu
)
$SUDO
apt-get
-y
install
linux-headers-
$KERNEL_RELEASE
;;
*
)
exit
;;
esac
esac
NVIDIA_CUDA_VERSION
=
$(
$SUDO
dkms status |
awk
-F
:
'/added/ { print $1 }'
)
NVIDIA_CUDA_VERSION
=
$(
$SUDO
dkms status |
awk
-F
:
'/added/ { print $1 }'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment