Repository navigation
refactor(pathfinder): derive two header flags and the driver check from packaged_with - #3619
Conversation
|
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. |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Next included review available in 26 minutes. View limit details
No actionable comments were generated in the recent review. Summary
Change: Refactor Merge Risk:
|
|
…om packaged_with Both restated what `packaged_with` already says. - Header catalog: every CTK entry had `conda_targets_layout` and `use_ctk_root_canary` set to `True`, and every other entry set both to `False`, in all nine versions of the file since it was added. They are now read-only properties derived from `packaged_with`, and the 14 non-CTK entries no longer repeat them. Readers of the two names are unchanged. - Loader: `_DRIVER_ONLY_LIBNAMES` was a second copy of `desc.packaged_with == "driver"`. The loader asks the descriptor. Two tests used the set as test data; they build it from the catalog. No behavior change. The flag values are identical for all 31 header entries. 1293 passed, 6 skipped. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Rob Parolin <rparolin@nvidia.com>
This change made `use_ctk_root_canary` a property derived from `packaged_with == "ctk"`. Three docstrings in `find_nvidia_headers.py` still described it as a flag a descriptor sets (`use_ctk_root_canary=True`, "does not opt in"). They now say what decides it: the canary step runs for CUDA Toolkit headers only. Docstrings only. No code changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Rob Parolin <rparolin@nvidia.com>
Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
51150bf to
7e2dd0b
Compare
— codex on behalf of Ralf —
Description
Part 14 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.Both restated what
packaged_withalready says.conda_targets_layoutanduse_ctk_root_canaryset toTrue, and every other entry set both toFalse, in all nine versions of the file since it was added. They are now read-only properties derived frompackaged_with, and the 14 non-CTK entries no longer repeat them. Readers of the two names are unchanged._DRIVER_ONLY_LIBNAMESwas a second copy ofdesc.packaged_with == "driver". The loader asks the descriptor. Two tests used the set as test data; they build it from the catalog.No behavior change. The flag values are identical for all 31 header entries. 1294 passed, 6 skipped.
Also in this PR: three docstrings in
find_nvidia_headers.pystill describeduse_ctk_root_canaryas a flag a descriptor sets. They now say the canary step runs for CUDA Toolkit headers only.Testing
cuda_pathfindertest suite at this commit: 1294 passed, 6 skipped (Linux, Python 3.14).mypy-pathfinder.PLC Local Security Evidence (Advisory)
Local advisory checks only, run over the whole stack. Not release-gate results.
subprocess.runcall in the canary probe inload_nvidia_dynamic_lib.pyChecklist
🤖 Generated with Claude Code