File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6868from cuda .pathfinder ._static_libs .find_static_lib import (
6969 locate_static_lib as locate_static_lib ,
7070)
71- from cuda .pathfinder ._utils .driver_info import DriverCudaVersion as DriverCudaVersion
72- from cuda .pathfinder ._utils .driver_info import QueryDriverCudaVersionError as QueryDriverCudaVersionError
73- from cuda .pathfinder ._utils .driver_info import query_driver_cuda_version as query_driver_cuda_version
7471from cuda .pathfinder ._utils .env_vars import get_cuda_path_or_home as get_cuda_path_or_home
7572
7673from cuda .pathfinder ._version import __version__ # isort: skip
Original file line number Diff line number Diff line change @@ -22,10 +22,6 @@ CUDA bitcode and static libraries.
2222 CompatibilityCheckError
2323 CompatibilityInsufficientMetadataError
2424
25- DriverCudaVersion
26- QueryDriverCudaVersionError
27- query_driver_cuda_version
28-
2925 SUPPORTED_NVIDIA_LIBNAMES
3026 load_nvidia_dynamic_lib
3127 LoadedDL
Original file line number Diff line number Diff line change 55
66import 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- )
178from cuda .pathfinder ._dynamic_libs .load_dl_common import LoadedDL
189from 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-
6045def test_query_driver_cuda_version_uses_windll_on_windows (monkeypatch ):
6146 fake_driver_lib = _FakeDriverLib (status = 0 , version = 12080 )
6247 loaded_paths : list [str ] = []
Original file line number Diff line number Diff line change 1212 BitcodeLibNotFoundError ,
1313 CompatibilityCheckError ,
1414 CompatibilityInsufficientMetadataError ,
15- DriverCudaVersion ,
1615 DynamicLibNotFoundError ,
1716 LoadedDL ,
1817 LocatedBitcodeLib ,
1918 LocatedHeaderDir ,
2019 LocatedStaticLib ,
21- QueryDriverCudaVersionError ,
2220 StaticLibNotFoundError ,
2321 WithCompatibilityChecks ,
2422)
23+ from cuda .pathfinder ._utils .driver_info import DriverCudaVersion , QueryDriverCudaVersionError
2524
2625STRICTNESS = os .environ .get ("CUDA_PATHFINDER_TEST_WITH_COMPATIBILITY_CHECKS_STRICTNESS" , "see_what_works" )
2726assert STRICTNESS in ("see_what_works" , "all_must_work" )
You can’t perform that action at this time.
0 commit comments