Skip to content

Fix pathfinder imports and handle access - #814

Merged
leofang merged 2 commits into
NVIDIA:mainfrom
kkraus14:fix-pathfinder-imports
Aug 7, 2025
Merged

Fix pathfinder imports and handle access#814
leofang merged 2 commits into
NVIDIA:mainfrom
kkraus14:fix-pathfinder-imports

Conversation

@kkraus14

Copy link
Copy Markdown
Collaborator

Description

closes#811

Updates the pathfinder imports and handle access in the CUDA bindings. Working on code-gen updates alongside these changes.

Changes Made:

  • Replace cuda.bindings.path_finder with cuda.pathfinder
  • Import load_nvidia_dynamic_lib function directly instead of importing the module
  • Change .handle to ._handle for private attribute access
  • Update all internal binding files:
    • nvvm_linux.pyx and nvvm_windows.pyx
    • nvjitlink_linux.pyx and nvjitlink_windows.pyx
    • cufile_linux.pyx
    • cynvrtc.pyx.in

Files Modified:

  • cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in
  • cuda_bindings/cuda/bindings/_internal/cufile_linux.pyx
  • cuda_bindings/cuda/bindings/_internal/nvjitlink_linux.pyx
  • cuda_bindings/cuda/bindings/_internal/nvjitlink_windows.pyx
  • cuda_bindings/cuda/bindings/_internal/nvvm_linux.pyx
  • cuda_bindings/cuda/bindings/_internal/nvvm_windows.pyx

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@copy-pr-bot

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@kkraus14

Copy link
Copy Markdown
CollaboratorAuthor

/ok to test

@github-actions

This comment has been minimized.

@kkraus14

Copy link
Copy Markdown
CollaboratorAuthor

/ok to test

@kkraus14
kkraus14 requested a review from rwgkAugust 7, 2025 01:01
@leofangleofang added enhancement Any code-related improvements P0 High priority - Must do! cuda.bindings Everything related to the cuda.bindings module labels Aug 7, 2025
@leofangleofang added this to the cuda-python 13.0.0 & 12.9.1 milestone Aug 7, 2025

@leofangleofang left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, is there anything else needed?

@github-project-automationgithub-project-automationBot moved this from Todo to In Review in CCCLAug 7, 2025
@kkraus14
kkraus14 marked this pull request as ready for review August 7, 2025 01:39
@copy-pr-bot

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@leofang
leofang merged commit 15e99e9 into NVIDIA:mainAug 7, 2025
52 checks passed
@github-project-automationgithub-project-automationBot moved this from In Review to Done in CCCLAug 7, 2025
@github-actions

Copy link
Copy Markdown
Doc Preview CI
Preview removed because the pull request was closed or merged.

@kkraus14kkraus14 added the to-be-backported Trigger the bot to raise a backport PR upon merge label Aug 7, 2025
github-actionsBot pushed a commit that referenced this pull request Aug 7, 2025
* Remove pathfinder redirect, update usage
* fix handle attribute
(cherry picked from commit 15e99e9)
@github-actions

Copy link
Copy Markdown

Successfully created backport PR for 12.9.x:

leofang pushed a commit that referenced this pull request Aug 7, 2025
* Remove pathfinder redirect, update usage
* fix handle attribute
(cherry picked from commit 15e99e9)
Co-authored-by: Keith Kraus <keith.j.kraus@gmail.com>
@cpcloudcpcloud mentioned this pull request Oct 8, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.bindingsEverything related to the cuda.bindings moduleenhancementAny code-related improvementsP0High priority - Must do!to-be-backportedTrigger the bot to raise a backport PR upon merge

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Remove cuda.bindings.path_finder module

2 participants

@kkraus14@leofang