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): remove a Windows DLL filter that cannot match - #3629
The Windows DLL search skipped NVRTC helper files (.alt.dll, -builtins) and 32-bit cudart32_ / nvvm32 files. That mattered when the search matched file-name patterns. Today it only tries the exact names in the catalog. None of the 82 names is of those kinds, so the filter never fires.
This removes the filter and the six test lines that switched it off. Those lines were no-ops: the suite passes with them removed and the filter still in place.
A new catalog test holds the rule the filter enforced: no catalog entry may name such a file.
No behavior change for any library in the catalog.
Testing
Full cuda_pathfinder test suite at this commit: 1298 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 bec707b and bf4c2a4.
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
Updated Windows CUDA library discovery to consider DLL files based on their presence and, when required, architecture compatibility. Known helper and 32-bit DLL names remain excluded from the supported library catalog.
Updated Windows discovery checks to reflect the revised candidate selection behavior.
Windows DLL search no longer filters file candidates by suppressed basename patterns. Catalog tests check for those patterns, and search tests no longer mock the removed suppression helper.
Changes: Windows DLL search
Layer / File(s)
Summary
Candidate filtering and validation cuda_pathfinder/cuda/pathfinder/_dynamic_libs/search_platform.py, cuda_pathfinder/cuda/pathfinder/_dynamic_libs/supported_nvidia_libs.py, cuda_pathfinder/tests/test_descriptor_catalog.py, cuda_pathfinder/tests/test_search_steps.py
Windows DLL candidates are accepted when they are files and either no architecture check is required or their PE architecture matches. The basename suppression helper is removed. A catalog test checks for the previously suppressed filename patterns, and six search tests no longer mock the helper.
Suggested reviewers:isvoid
Change: Refactor
Merge Risk: Minimal · previous review bec70
This refactor removes a Windows DLL name filter that cannot match any current catalog entry, so behavior should be unchanged. No merge-blocking risk was found.
Security architecture risk: Minimal · up to bec70
Windows DLL discovery still tries the same filenames in the same order and keeps the existing file and architecture checks. The removed check did not exclude any filename the search actually tries.
- [ ] 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; 5 remain after this review.
The Windows DLL search skipped NVRTC helper files (`.alt.dll`,
`-builtins`) and 32-bit `cudart32_` / `nvvm32` files. That mattered
when the search matched file-name patterns. Today it only tries the
exact names in the catalog, and none of the 82 names is of those kinds,
so the filter never fires.
The filter is removed, with the six test lines that switched it off.
Those lines were no-ops: the suite passes with them removed and the
filter still in place.
A catalog test now holds the rule the filter enforced: no catalog entry
may name such a file.
No behavior change for any library in the catalog.
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 20 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.The Windows DLL search skipped NVRTC helper files (
.alt.dll,-builtins) and 32-bitcudart32_/nvvm32files. That mattered when the search matched file-name patterns. Today it only tries the exact names in the catalog. None of the 82 names is of those kinds, so the filter never fires.This removes the filter and the six test lines that switched it off. Those lines were no-ops: the suite passes with them removed and the filter still in place.
A new catalog test holds the rule the filter enforced: no catalog entry may name such a file.
No behavior change for any library in the catalog.
Testing
cuda_pathfindertest suite at this commit: 1298 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