Skip to content

Commit

Permalink
fix(install.sh): install CUDA toolkit only if CUDA is detected
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
  • Loading branch information
mudler committed Jun 22, 2024
1 parent 3ee5ceb commit 0f9aa1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/static/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,9 @@ for PACKAGE_MANAGER in dnf yum apt-get; do
done

if [ "$DOCKER_INSTALL" = "true" ]; then
install_container_toolkit
if [ "$HAS_CUDA" = true ]; then
install_container_toolkit
fi
install_docker
else
install_binary
Expand Down

0 comments on commit 0f9aa1e

Please sign in to comment.