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
8b2ba9ca
Commit
8b2ba9ca
authored
Sep 23, 2023
by
Jeffrey Morgan
Browse files
minor improvements to `install.sh`
parent
e29662ab
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 @
8b2ba9ca
...
@@ -125,17 +125,18 @@ install_cuda_driver_yum() {
...
@@ -125,17 +125,18 @@ install_cuda_driver_yum() {
rhel
)
rhel
)
status
'Installing EPEL repository...'
status
'Installing EPEL repository...'
# EPEL is required for third-party dependencies such as dkms and libvdpau
# EPEL is required for third-party dependencies such as dkms and libvdpau
$SUDO
$PACKAGE_MANAGER
-y
install
https://dl.fedoraproject.org/pub/epel/epel-release-latest-
$2
.noarch.rpm
$SUDO
$PACKAGE_MANAGER
-y
install
https://dl.fedoraproject.org/pub/epel/epel-release-latest-
$2
.noarch.rpm
||
true
;;
;;
esac
esac
status
'Installing CUDA driver...'
status
'Installing CUDA driver...'
$SUDO
$PACKAGE_MANAGER
-y
update
$SUDO
$PACKAGE_MANAGER
-y
update
$SUDO
$PACKAGE_MANAGER
-y
install
cuda-drivers
if
[
"
$1
"
=
'centos'
]
||
[
"
$1$2
"
=
'rhel7'
]
;
then
if
[
"
$1
"
=
'centos'
]
||
[
"
$1$2
"
=
'rhel7'
]
;
then
$SUDO
$PACKAGE_MANAGER
-y
install
nvidia-driver-latest-dkms
$SUDO
$PACKAGE_MANAGER
-y
install
nvidia-driver-latest-dkms
fi
fi
$SUDO
$PACKAGE_MANAGER
-y
install
cuda-drivers
}
}
# ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ubuntu
# ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ubuntu
...
...
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