Skip to content

Commit

Permalink
Always test pynvml (#1421)
Browse files Browse the repository at this point in the history
Do not skip `pynvml` if it's not importable, given `pynvml` is a hard-dependency.

Authors:
  - Peter Andreas Entschev (https://github.com/pentschev)

Approvers:
  - https://github.com/jakirkham
  - James Lamb (https://github.com/jameslamb)

URL: #1421
  • Loading branch information
pentschev authored Dec 20, 2024
1 parent fd8a736 commit 98f57ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dask_cuda/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from unittest.mock import patch

import pynvml
import pytest
from numba import cuda

Expand Down Expand Up @@ -197,7 +198,6 @@ def test_get_ucx_config(enable_tcp_over_ucx, enable_infiniband, enable_nvlink):


def test_parse_visible_devices():
pynvml = pytest.importorskip("pynvml")
pynvml.nvmlInit()
indices = []
uuids = []
Expand Down Expand Up @@ -250,7 +250,6 @@ def test_parse_device_memory_limit():


def test_parse_visible_mig_devices():
pynvml = pytest.importorskip("pynvml")
pynvml.nvmlInit()
for index in range(get_gpu_count()):
handle = pynvml.nvmlDeviceGetHandleByIndex(index)
Expand Down

0 comments on commit 98f57ee

Please sign in to comment.