Repository navigation
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. |
|
No actionable comments were generated in the recent review. Summary
Change: Refactor Merge Risk:
|
|
The probe that finds the CUDA Toolkit root lived inside the library loader, but header and binary discovery use it too. Headers imported a private function from the loader to get at it, and binaries imported the loader lazily. The probe now lives in `_dynamic_libs/canary_probe.py`. The code is moved byte for byte. The loader, headers and binaries all import `resolve_ctk_root_via_canary` from there, and the header step calls it instead of repeating its two lines. `load_nvidia_dynamic_lib.py` is left with loading only (330 -> 246 lines since the start of the stack). Tests: patches and imports of the probe point at the new module. The old names are not re-exported, so a patch aimed at the old location fails loudly instead of silently doing nothing. No behavior change. 1293 passed, 6 skipped, and the comparisons against `main` are still byte-identical, including simulated Windows. 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>
1d2ed4e to
6d23349
Compare
…athfinder-readability/15-canary-probe-module # Conflicts: # cuda_pathfinder/tests/test_load_nvidia_dynamic_lib_using_mocker.py
— codex on behalf of Ralf —
Description
Part 16 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 probe that finds the CUDA Toolkit root lived inside the library loader, but header and binary discovery use it too. Headers imported a private function from the loader to get at it, and binaries imported the loader lazily.
The probe now lives in
_dynamic_libs/canary_probe.py. The code is moved byte for byte. The loader, headers and binaries all importresolve_ctk_root_via_canaryfrom there, and the header step calls it instead of repeating its two lines.load_nvidia_dynamic_lib.pyis left with loading only (330 -> 246 lines since the start of the stack).Tests: patches and imports of the probe point at the new module. The three private names that moved are not re-exported, so a patch aimed at their old location fails loudly instead of silently doing nothing. One name is different:
resolve_ctk_root_via_canaryis still reachable onload_nvidia_dynamic_lib, because the loader imports and calls it. A patch there succeeds but affects only the loader, not headers or binaries.No behavior change. 1294 passed, 6 skipped, and the comparisons against
mainare still byte-identical, including simulated Windows.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, now incanary_probe.pyChecklist
🤖 Generated with Claude Code