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
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ def abs_path_for_dynamic_library(libname: str, handle: ctypes.CDLL) -> str:


def get_candidate_sonames(libname: str) -> list[str]:
candidate_sonames = list(SUPPORTED_LINUX_SONAMES.get(libname, ()))
# Reverse tabulated names to achieve new → old search order.
candidate_sonames = list(reversed(SUPPORTED_LINUX_SONAMES.get(libname, ())))
candidate_sonames.append(f"lib{libname}.so")
return candidate_sonames

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ def load_with_system_search(libname: str) -> Optional[LoadedDL]:
Returns:
A LoadedDL object if successful, None if the library cannot be loaded
"""
for dll_name in SUPPORTED_WINDOWS_DLLS.get(libname, ()):
# Reverse tabulated names to achieve new → old search order.
for dll_name in reversed(SUPPORTED_WINDOWS_DLLS.get(libname, ())):
handle = kernel32.LoadLibraryExW(dll_name, None, 0)
if handle:
abs_path = abs_path_for_dynamic_library(libname, handle)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
# cuda_12.9.1_575.57.08_linux.run
# cuda_13.0.0_580.65.06_linux.run
# Generated with toolshed/build_pathfinder_sonames.py
# Please keep in old → new sort order.
SUPPORTED_LINUX_SONAMES_CTK = {
"cublas": (
"libcublas.so.11",
Expand Down Expand Up @@ -265,6 +266,7 @@
# cuda_12.9.1_576.57_windows.exe
# cuda_13.0.0_windows.exe
# Generated with toolshed/build_pathfinder_dlls.py
# Please keep in old → new sort order.
SUPPORTED_WINDOWS_DLLS_CTK = {
"cublas": (
"cublas64_11.dll",
Expand Down
2 changes: 1 addition & 1 deletion cuda_pathfinder/cuda/pathfinder/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

__version__ = "1.1.1a3"
__version__ = "1.2.0a0"
8 changes: 8 additions & 0 deletions cuda_pathfinder/docs/source/release/1.X.Y-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ Released on TBD
Highlights
----------

* Reverse tabulated names to achieve new → old search order (`PR #921 <https://github.com/NVIDIA/cuda-python/pull/921>`_)

- ``SUPPORTED_LINUX_SONAMES`` and ``SUPPORTED_WINDOWS_DLLS`` lists of DSOs are searched from new → old

* Support non-CTK Nvidia libraries (`PR #864 <https://github.com/NVIDIA/cuda-python/pull/864>`_)

- Adds support for non-CTK Nvidia libraries: ``mathdx``, ``cufftMp``, ``nvshmem_host``, ``nvpl_fftw``

* ``RTLD_DI_LINKMAP``-based new implementation of ``abs_path_for_dynamic_library()`` (`PR #834 <https://github.com/NVIDIA/cuda-python/pull/834>`_)

- Eliminates ``supported_nvidia_libs.EXPECTED_LIB_SYMBOLS`` entirely, providing major simplification
Expand Down
Loading