Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions cuda_bindings/cuda/bindings/_path_finder/supported_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,6 @@
"cufft": (
"cufft64_10.dll",
"cufft64_11.dll",
"cufftw64_10.dll",
"cufftw64_11.dll",
),
"cufftw": (
"cufftw64_10.dll",
Expand Down
12 changes: 12 additions & 0 deletions cuda_bindings/tests/test_path_finder_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ def test_all_libnames_windows_dlls_consistency():
assert tuple(sorted(ALL_LIBNAMES_WINDOWS)) == tuple(sorted(supported_libs.SUPPORTED_WINDOWS_DLLS.keys()))


@pytest.mark.parametrize("dict_name", ["SUPPORTED_LINUX_SONAMES", "SUPPORTED_WINDOWS_DLLS"])
def test_libname_dict_values_are_unique(dict_name):
libname_dict = getattr(supported_libs, dict_name)
libname_for_value = {}
for libname, values in libname_dict.items():
for value in values:
prev_libname = libname_for_value.get(value)
if prev_libname is not None:
raise RuntimeError(f"Multiple libnames for {value!r}: {prev_libname}, {libname}")
libname_for_value[value] = libname


def test_all_libnames_libnames_requiring_os_add_dll_directory_consistency():
assert not (set(supported_libs.LIBNAMES_REQUIRING_OS_ADD_DLL_DIRECTORY) - set(ALL_LIBNAMES_WINDOWS))

Expand Down
Loading