Skip to content

Fix GPU fallback to ignore empty probe results#228

Merged
nikopueringer merged 1 commit intonikopueringer:mainfrom
Raiden129:working/fix-enumerate-gpus-fallback
Apr 17, 2026
Merged

Fix GPU fallback to ignore empty probe results#228
nikopueringer merged 1 commit intonikopueringer:mainfrom
Raiden129:working/fix-enumerate-gpus-fallback

Conversation

@Raiden129
Copy link
Copy Markdown
Contributor

What does this change?

Updates enumerate_gpus() in device_utils.py so fallback continues when a probe returns an empty list:

if gpus is not None: -> if gpus:
Applied to both NVIDIA and AMD checks.
This means only a non-empty GPU list returns early; [] now falls through to the next fallback step.

How was it tested?

Checklist

  • uv run pytest passes
  • uv run ruff check passes
  • uv run ruff format --check passes

@nikopueringer nikopueringer merged commit 75dddb3 into nikopueringer:main Apr 17, 2026
7 checks passed
@Raiden129 Raiden129 deleted the working/fix-enumerate-gpus-fallback branch April 17, 2026 10:27
@DaniSalam4eto DaniSalam4eto mentioned this pull request Apr 17, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants