Skip to content

Commit b4de04f

Browse files
committed
Don't try to run nvidia-smi if we don't have it
1 parent 2f07e17 commit b4de04f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ci/scripts/github/conda_libs.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ rapids-logger "Listing LFS-known files"
4444
git lfs ls-files
4545
rapids-logger "Building Morpheus Libraries"
4646

47-
# Run nvidia-smi to check the test env
48-
/usr/bin/nvidia-smi
47+
# If we have access to a GPU run nvidia-smi to check the test env
48+
if [ -f /usr/bin/nvidia-smi ]; then
49+
/usr/bin/nvidia-smi
50+
fi
51+
4952

5053
# Run the conda build, and upload to conda forge if requested
5154
export MORPHEUS_PYTHON_BUILD_STUBS=OFF

0 commit comments

Comments
 (0)