You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(pathfinder): drop the constant argument of _ctk_windows_wheel_dirs - #3627
All 27 calls of _ctk_windows_wheel_dirs passed "nvidia/cu13/bin" as the first argument. The helper now holds that directory itself and takes only the CUDA 12 wheel directory, the part that differs per library.
No behavior change. All 50 descriptor records compare equal before and after.
Testing
Full cuda_pathfinder test suite at this commit: 1297 passed, 6 skipped (Linux, Python 3.14).
pre-commit clean, including mypy-pathfinder. mypy also passes with --platform win32.
Reviewing files that changed from the base of the PR and between e6523de and 1728b17.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Bug Fixes
Windows CUDA library discovery now checks architecture-specific CUDA 13 locations and uses library-specific CUDA 12 fallback paths. This helps the application locate the appropriate CUDA libraries across supported Windows architectures when CUDA 13 libraries are unavailable.
The Windows wheel path helper now constructs fixed CUDA 13 paths for x64 and ARM64. Windows wheel descriptors pass package-specific CUDA 12 fallback directories to the helper.
Changes: Windows wheel search paths
Layer / File(s)
Summary
Define and apply Windows wheel paths cuda_pathfinder/cuda/pathfinder/_dynamic_libs/descriptor_catalog.py
The helper constructs nvidia/cu13/bin/x86_64 and nvidia/cu13/bin/arm64 paths. The Windows wheel descriptors pass package-specific CUDA 12 fallback directories.
Suggested reviewers:isvoid
Change: Refactor
Merge Risk: Minimal · previous review f9c82
This refactor removes a redundant argument from a Windows wheel path helper without changing which search directories are used. No actionable merge risk was found.
Security architecture risk: Minimal · up to f9c82
cuda.pathfinder still searches the same Windows wheel directories in the same order. x64 retains its CUDA 12 fallback, and ARM64 had no CUDA 12 wheel fallback before this PR.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 4 remain after this review.
This pull request requires additional validation before any workflows can run on NVIDIA's runners.
Pull request vetters can view their responsibilities here.
Contributors can view more details about this message here.
rwgk
changed the base branch from
pathfinder-readability/17-check-loaded-before-searching
to
pathfinder-readability/16-type-check-own-importsNovember 26, 2026 19:19
…l_dirs
All 27 calls passed `"nvidia/cu13/bin"` as the first argument. The
helper now holds that directory itself and takes only the CUDA 12 wheel
directory, which is the part that differs per library.
The catalog is unchanged: all 50 descriptor records compare equal before
and after.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Rob Parolin <rparolin@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
— codex on behalf of Ralf —
Description
Part 18 of 23 of a readability stack for
cuda.pathfinder(stack: #3623 → #3602 → #3603 → #3604 → #3605 → #3606 → #3607 → #3608 → #3609 → #3610 → #3611 → #3613 → #3618 → #3619 → #3620 → #3621 → #3622 → #3627 → #3628 → #3629 → #3630 → #3631 → #3632). No behavior change.All 27 calls of
_ctk_windows_wheel_dirspassed"nvidia/cu13/bin"as the first argument. The helper now holds that directory itself and takes only the CUDA 12 wheel directory, the part that differs per library.No behavior change. All 50 descriptor records compare equal before and after.
Testing
cuda_pathfindertest suite at this commit: 1297 passed, 6 skipped (Linux, Python 3.14).mypy-pathfinder. mypy also passes with--platform win32.mainare still byte-identical (Linux, simulated Windows x64 and arm64), and all 526 public-API scenarios give the same result as fix(pathfinder): check for an already-loaded library before searching the disk #3623.PLC Local Security Evidence (Advisory)
Local advisory checks only, run over the whole stack. Not release-gate results.
subprocess.runcall in the canary probe, now incanary_probe.pyChecklist
🤖 Generated with Claude Code