Skip to content

Commit a450104

Browse files
committed
Remove pathfinder driver info public re-exports
Stop exposing the new driver info helper through cuda.pathfinder while keeping the internal implementation and internal test coverage in place. Made-with: Cursor
1 parent 44e3ba1 commit a450104

3 files changed

Lines changed: 0 additions & 22 deletions

File tree

cuda_pathfinder/cuda/pathfinder/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959
from cuda.pathfinder._static_libs.find_static_lib import (
6060
locate_static_lib as locate_static_lib,
6161
)
62-
from cuda.pathfinder._utils.driver_info import DriverCudaVersion as DriverCudaVersion
63-
from cuda.pathfinder._utils.driver_info import QueryDriverCudaVersionError as QueryDriverCudaVersionError
64-
from cuda.pathfinder._utils.driver_info import query_driver_cuda_version as query_driver_cuda_version
6562
from cuda.pathfinder._utils.env_vars import get_cuda_path_or_home as get_cuda_path_or_home
6663

6764
from cuda.pathfinder._version import __version__ # isort: skip

cuda_pathfinder/docs/source/api.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ CUDA bitcode and static libraries.
1818

1919
get_cuda_path_or_home
2020

21-
DriverCudaVersion
22-
QueryDriverCudaVersionError
23-
query_driver_cuda_version
24-
2521
SUPPORTED_NVIDIA_LIBNAMES
2622
load_nvidia_dynamic_lib
2723
LoadedDL

cuda_pathfinder/tests/test_utils_driver_info.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@
55

66
import pytest
77

8-
from cuda.pathfinder import (
9-
DriverCudaVersion as PublicDriverCudaVersion,
10-
)
11-
from cuda.pathfinder import (
12-
QueryDriverCudaVersionError as PublicQueryDriverCudaVersionError,
13-
)
14-
from cuda.pathfinder import (
15-
query_driver_cuda_version as public_query_driver_cuda_version,
16-
)
178
from cuda.pathfinder._dynamic_libs.load_dl_common import LoadedDL
189
from cuda.pathfinder._utils import driver_info
1910

@@ -51,12 +42,6 @@ def _loaded_cuda(abs_path: str) -> LoadedDL:
5142
)
5243

5344

54-
def test_driver_cuda_version_public_api_exports():
55-
assert PublicDriverCudaVersion is driver_info.DriverCudaVersion
56-
assert PublicQueryDriverCudaVersionError is driver_info.QueryDriverCudaVersionError
57-
assert public_query_driver_cuda_version is driver_info.query_driver_cuda_version
58-
59-
6045
def test_query_driver_cuda_version_uses_windll_on_windows(monkeypatch):
6146
fake_driver_lib = _FakeDriverLib(status=0, version=12080)
6247
loaded_paths: list[str] = []

0 commit comments

Comments
 (0)