Skip to content

Add debugging output when only one GPU is detected in CUDA tests.#13089

Open
copybara-service[bot] wants to merge 1 commit intomasterfrom
test/cl910973478
Open

Add debugging output when only one GPU is detected in CUDA tests.#13089
copybara-service[bot] wants to merge 1 commit intomasterfrom
test/cl910973478

Conversation

@copybara-service
Copy link
Copy Markdown

Add debugging output when only one GPU is detected in CUDA tests.

When cudaGetDeviceCount returns 1, print environment variables
(CUDA_VISIBLE_DEVICES, NVIDIA_VISIBLE_DEVICES), list /dev/nvidia*,
and run nvidia-smi -L.
Hopefully this helps diagnose issues where not all expected GPUs are visible
to the CUDA application. Right now I cannot reproduce the failure locally.

@copybara-service copybara-service Bot added the exported Issue was exported automatically label May 5, 2026
@copybara-service copybara-service Bot force-pushed the test/cl910973478 branch 7 times, most recently from 23db4e0 to 835fe00 Compare May 7, 2026 05:31
When cudaGetDeviceCount returns 1, print environment variables
(CUDA_VISIBLE_DEVICES, NVIDIA_VISIBLE_DEVICES), list /dev/nvidia*,
and run nvidia-smi -L.
Hopefully this helps diagnose issues where not all expected GPUs are visible
to the CUDA application. Right now I cannot reproduce the failure locally.

PiperOrigin-RevId: 910973478
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants