Skip to content

cuda_pathfinder: confirm intended behavior for Linux .so glob fallback #1732

@cpcloud

Description

@cpcloud

Follow-up to PR review discussion: #1693 (comment)

Goal

Confirm whether the current Linux fallback behavior is the intended behavior, and ensure code/tests/docs reflect that intent.

Current behavior (as implemented)

In cuda_pathfinder/cuda/pathfinder/_dynamic_libs/search_platform.py:

  • First try exact lib<name>.so.
  • If not found, glob lib<name>.so*.
  • Sort matches and return the first one.

Question to resolve

When multiple versioned matches exist (for example libcupti.so.12 and libcupti.so.13), is the current selection behavior the one we want?

What this issue tracks

  • Find and link any existing policy/precedent (code comments, prior PRs/issues, docs).
  • Confirm whether current implementation matches intended behavior.
  • If yes: add/adjust tests/comments as needed to make that intent explicit.
  • If no: open/track a follow-up implementation change.

Metadata

Metadata

Assignees

Labels

P1Medium priority - Should docuda.pathfinderEverything related to the cuda.pathfinder module

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions