Skip to content

Commit

Permalink
Use XOR when checking NVML init flags
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbluca committed Apr 18, 2022
1 parent 15c483e commit 5c4e74a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions distributed/diagnostics/tests/test_nvml.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def test_enable_disable_nvml():
with dask.config.set({"distributed.diagnostics.nvml": True}):
nvml.init_once()
assert (
nvml.nvmlInitialized is True
or nvml.nvmlLibraryNotFound is True
or nvml.nvmlWslInsufficientDriver is True
nvml.nvmlInitialized
^ nvml.nvmlLibraryNotFound
^ nvml.nvmlWslInsufficientDriver
)


Expand Down

0 comments on commit 5c4e74a

Please sign in to comment.