Skip to content

Commit a710c4e

Browse files
committed
Only call nvidia-smi during CI (not packer)
1 parent ba5c9ca commit a710c4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.buildkite/scripts/cuvs-snapshot/configure.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ if [[ -f /etc/profile.d/elastic-nvidia.sh ]]; then
1111

1212
# Not running this before the tests results in an error when running the tests
1313
# No idea why...
14-
nvidia-smi
14+
if [[ "${BUILDKITE:-}" != "" && "${CI:-}" == "true" ]]; then
15+
nvidia-smi
16+
fi
1517
fi
1618

1719
LIBCUVS_GCS_BUCKET="elasticsearch-cuvs-snapshots"

0 commit comments

Comments
 (0)