Skip to content

[FEA]: cuda-pathfinder supporting LLVM/LTO bitcode libraries #1421

Closed

Description

@benhg

Is this a duplicate?

Area

cuda.pathfinder

Is your feature request related to a problem? Please describe.

I would like to be able to use cuda-pathfinder to find a bitcode library similar to how we can find headers today.

Describe the solution you'd like

This description is NVSHMEM/NCCL specific, but probably will apply to many other libraries in very similar ways.

NVSHMEM (and soon NCCL) ship bitcode libraries in the lib/ directory (like libnvshmem_device.bc for LLVM-IR). Projects that depend on these files usually either have their consumer pass paths directly, or use Pathlib.

I would like to be able to call cuda_pathfinder.find_bitcode_lib("nvshmem", lib_type=LLVM) or similar. This would return a string with the path, or would potentially return an ObjectCode with that object. I think string path is probably best.

The search order would be similar to that of the .so library search order or the header search order.

Describe alternatives you've considered

As described above, people tend to ask their users to pass the absolute path or roll their own with Pathlib.

Additional context

No response

Activity

  1. added
    enhancementAny code-related improvements
    P1Medium priority - Should do
    cuda.pathfinderEverything related to the cuda.pathfinder module
    and removed
    triageNeeds the team's attention
    on Dec 23, 2025
  2. sb17v commented on Dec 23, 2025

    @sb17v

    Similar to NVSHMEM, the NCCL bitcode library resides in the lib/ directory (libnccl_device.bc for LLVM IR). We would like to get the bitcode library path in similar way by calling cuda_pathfinder.find_bitcode_lib("nccl", lib_type=LLVM) for NCCL.

  3. added this to the cuda.pathfinder 1.4.0 milestone on Jan 8, 2026
  4. added
    P2Low priority - Nice to have
    and removed
    P1Medium priority - Should do
    on Mar 4, 2026
  5. rwgk commented on Mar 4, 2026

    @rwgk
    Contributor

    I'm revamping the prioritization for all pathfinder issues.

  6. removed this from the cuda.pathfinder 1.4.0 milestone on Mar 4, 2026
  7. removed their assignment
    on Mar 4, 2026
  8. self-assigned this
    on Mar 24, 2026
  9. added
    P1Medium priority - Should do
    and removed
    P2Low priority - Nice to have
    on Mar 24, 2026
  10. rwgk commented on Apr 3, 2026

    @rwgk
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1Medium priority - Should docuda.pathfinderEverything related to the cuda.pathfinder moduleenhancementAny code-related improvements

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions