Skip to content

Commit

Permalink
Always test pynvml
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Dec 20, 2024
1 parent fd8a736 commit 1800f18
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 1800f18

Please sign in to comment.