Skip to content

Allow NVIDIA_VISIBLE_DEVICES=void to always override #1165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elezar
Copy link
Member

@elezar elezar commented Jun 27, 2025

This change adjusts the order of operations of the NVIDIA_VISIBLE_DEVICES envvar values. This is especially important for cases where duplicates may exist. Previously a value of all would be preferred over other values meaning that even if a user were to set NVIDIA_VISIBLE_DEVICES=void, depending on the runtime behaviour the value of NVIDIA_VISIBLE_DEVICES=all may still take precedence.

With this change, the order of precendece is updated to void > none > all.

This change adjusts the order of operations of the NVIDIA_VISIBLE_DEVICES
envvar values. This is especially important for cases where duplicates
may exist. Previously a value of all would be preferred over other values
meaning that even if a user were to set NVIDIA_VISIBLE_DEVICES=void,
depending on the runtime behaviour the value of NVIDIA_VISIBLE_DEVICES=all
may still take precedence.

With this change, the order of precendece is updated to void > none > all.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar requested a review from klueska June 27, 2025 09:22
@elezar elezar self-assigned this Jun 27, 2025
@coveralls
Copy link

Pull Request Test Coverage Report for Build 15922886517

Details

  • 21 of 21 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.005%) to 33.215%

Totals Coverage Status
Change from base Build 15922469001: 0.005%
Covered Lines: 4382
Relevant Lines: 13193

💛 - Coveralls

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