Skip to content

Commit 7fa0e5a

Browse files
committed
Share GPU diagnostics across CI tests
1 parent c763e1e commit 7fa0e5a

3 files changed

Lines changed: 14 additions & 11 deletions

File tree

ci/gpu_info.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
rapids-logger "Check GPU status"
6+
nvidia-smi
7+
8+
rapids-logger "Check memory configuration"
9+
nvidia-smi -q | grep "Addressing Mode" || echo "Addressing Mode not reported"
10+
grep Coherent /proc/driver/nvidia/params || echo "Coherent GPU memory mode not reported"
11+
grep -o 'init_on_alloc=[^ ]*' /proc/cmdline || echo "init_on_alloc: kernel default"

ci/test_cpp.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,7 @@ set -u
3333

3434
rapids-print-env
3535

36-
rapids-logger "Check GPU status"
37-
nvidia-smi
38-
39-
rapids-logger "Check memory configuration"
40-
nvidia-smi -q | grep "Addressing Mode" || echo "Addressing Mode not reported"
41-
grep Coherent /proc/driver/nvidia/params || echo "Coherent GPU memory mode not reported"
42-
grep -o 'init_on_alloc=[^ ]*' /proc/cmdline || echo "init_on_alloc: kernel default"
36+
source ci/gpu_info.sh
4337

4438
# Run librmm gtests from librmm-tests package
4539
rapids-logger "Run gtests"

ci/test_python.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# SPDX-FileCopyrightText: Copyright (c) 2020-2026, NVIDIA CORPORATION.
2+
# SPDX-FileCopyrightText: Copyright (c) 2020-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44

55
set -euo pipefail
@@ -39,9 +39,7 @@ RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${PWD}/test-results"}
3939
RAPIDS_COVERAGE_DIR=${RAPIDS_COVERAGE_DIR:-"${PWD}/coverage-results"}
4040
mkdir -p "${RAPIDS_TESTS_DIR}" "${RAPIDS_COVERAGE_DIR}"
4141

42-
rapids-logger "Check GPU status"
43-
nvidia-smi
44-
nvidia-smi -q | grep "Addressing Mode" || echo "Addressing Mode not reported"
42+
source ci/gpu_info.sh
4543

4644
rapids-logger "pytest rmm"
4745

0 commit comments

Comments
 (0)