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
OpenDAS
ollama
Commits
0cca1486
Unverified
Commit
0cca1486
authored
Dec 04, 2023
by
Michael Yang
Committed by
GitHub
Dec 04, 2023
Browse files
Merge pull request #1376 from jmorganca/mxyng/rocky-install
install: fix rocky kernel packages
parents
2113c9d3
95cb38ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
scripts/install.sh
scripts/install.sh
+3
-2
No files found.
scripts/install.sh
View file @
0cca1486
...
...
@@ -217,7 +217,7 @@ fi
if
!
check_gpu nvidia-smi
||
[
-z
"
$(
nvidia-smi |
grep
-o
"CUDA Version: [0-9]*
\.
[0-9]*"
)
"
]
;
then
case
$OS_NAME
in
centos|rhel
)
install_cuda_driver_yum
'rhel'
$(
echo
$OS_VERSION
|
cut
-d
'.'
-f
1
)
;;
centos|rhel
)
install_cuda_driver_yum
'rhel'
$(
echo
$OS_VERSION
|
cut
-d
'.'
-f
1
)
;;
rocky
)
install_cuda_driver_yum
'rhel'
$(
echo
$OS_VERSION
|
cut
-c1
)
;;
fedora
)
install_cuda_driver_yum
$OS_NAME
$OS_VERSION
;;
amzn
)
install_cuda_driver_yum
'fedora'
'35'
;;
...
...
@@ -230,7 +230,8 @@ fi
if
!
lsmod |
grep
-q
nvidia
;
then
KERNEL_RELEASE
=
"
$(
uname
-r
)
"
case
$OS_NAME
in
centos|rhel|rocky|amzn
)
$SUDO
$PACKAGE_MANAGER
-y
install
kernel-devel-
$KERNEL_RELEASE
kernel-headers-
$KERNEL_RELEASE
;;
rocky
)
$SUDO
$PACKAGE_MANAGER
-y
install
kernel-devel kernel-headers
;;
centos|rhel|amzn
)
$SUDO
$PACKAGE_MANAGER
-y
install
kernel-devel-
$KERNEL_RELEASE
kernel-headers-
$KERNEL_RELEASE
;;
fedora
)
$SUDO
$PACKAGE_MANAGER
-y
install
kernel-devel-
$KERNEL_RELEASE
;;
debian|ubuntu
)
$SUDO
apt-get
-y
install
linux-headers-
$KERNEL_RELEASE
;;
*
)
exit
;;
...
...
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