Skip to content

Commit 26932f2

Browse files
committed
Optimised self-test-only path
1 parent 8e0f60a commit 26932f2

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

src/setup.sh

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -794,20 +794,21 @@ writeLine "${formattedFreeSpace} of ${formattedTotalSpace} available on ${system
794794
# fi
795795

796796
# Install tools that we know are available via apt-get or brew
797-
if [ "$os" = "linux" ]; then
798-
checkForTool curl
799-
if [ "${os_name}" = "debian" ]; then
800-
checkForTool psmisc
801-
else
802-
checkForTool pstree
797+
if [ "$selfTestOnly" = false ]; then
798+
if [ "$os" = "linux" ]; then
799+
checkForTool curl
800+
if [ "${os_name}" = "debian" ]; then
801+
checkForTool psmisc
802+
else
803+
checkForTool pstree
804+
fi
805+
checkForTool xz-utils
803806
fi
804-
checkForTool xz-utils
807+
checkForTool wget
808+
checkForTool unzip
809+
if [ "${useJq}" = true ]; then checkForTool jq; fi
810+
writeLine ""
805811
fi
806-
checkForTool wget
807-
checkForTool unzip
808-
if [ "${useJq}" = true ]; then checkForTool jq; fi
809-
writeLine ""
810-
811812

812813
# :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
813814
# 1. Ensure directories are created and download required assets
@@ -885,7 +886,9 @@ writeLine "GPU support" "White" "DarkGreen" $lineWidth
885886
writeLine
886887

887888
# Test for CUDA
888-
CheckAndSetupCUDA
889+
if [ "$selfTestOnly" = false ]; then
890+
CheckAndSetupCUDA
891+
fi
889892

890893
write "CUDA (NVIDIA) Present: "
891894
if [ "$hasCUDA" = true ]; then

0 commit comments

Comments
 (0)