From 0f9aa1ef91d5eaf22397daf6b74fc470319d2524 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sat, 22 Jun 2024 12:21:43 +0200 Subject: [PATCH] fix(install.sh): install CUDA toolkit only if CUDA is detected Signed-off-by: Ettore Di Giacinto --- docs/static/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/static/install.sh b/docs/static/install.sh index 3a4e588e..17eae779 100644 --- a/docs/static/install.sh +++ b/docs/static/install.sh @@ -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