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
docs(pathfinder): fix stale references and wrong comments - #3618
A docstring in load_dl_linux.py named LinkMapPrefix; the class is _LinkMapLNameView.
Also in this PR: four comments and a docstring that say the wrong thing.
platform_loader.py said the platform module is wrapped in a namespace. Nothing is wrapped; LOADER is the module.
supported_nvidia_binaries.py called the directory table "utilities available on both Linux and Windows". It is the same table everywhere, and some utilities ship for one platform only.
__init__.py called SUPPORTED_BINARY_UTILITIES platform-aware. The tuple is the same on every platform.
__init__.py said _find_nvidia_header_directory will be removed in release 1.2.4. It was not. The comment now says so; the alias stays.
The find_nvidia_binary_utility docstring said Windows executables are found by .exe, .bat and .cmd. The search looks for .exe, with .bat first for compute-sanitizer and ncu. It never looks for .cmd.
Comments and docs only.
Testing
Full cuda_pathfinder test suite at this commit: 1294 passed, 6 skipped (Linux, Python 3.14).
pre-commit clean, including mypy-pathfinder.
Not run on Windows. Windows rules are exercised by tests that simulate Windows on Linux.
PLC Local Security Evidence (Advisory)
Local advisory checks only, run over the whole stack. Not release-gate results.
Check
Status
Tool
Details
Secrets
SKIP
Pulse Secret Scanner
scanner image not available locally (registry login); the repo trufflehog pre-commit hook passed
SAST
WARN
Semgrep
1 finding, not from this stack: the existing subprocess.run call in the canary probe in load_nvidia_dynamic_lib.py
Dependencies
WARN
pip-audit / osv-scanner
no manifest or lockfile in scope, so the local scan could not run; this stack changes no dependencies
Reviewing files that changed from the base of the PR and between f4490d0 and 3aba845.
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
Documentation
Clarified which helper runs isolated dynamic-library probes in a fresh process and corrected a structure name in the loading documentation.
Clarified that the supported utility list is consistent across platforms, though individual utilities may be platform-specific.
Updated utility lookup details, including Windows filename extensions and Unix-like executable permissions.
Clarified platform loader documentation and updated a backward-compatibility note.
The changes update architecture documentation, loader comments, and binary utility documentation. They clarify fresh-process helper usage, loader naming, utility table details, and platform-specific executable search descriptions.
Changes: Documentation updates
Layer / File(s)
Summary
Update helper and loader references cuda_pathfinder/AGENTS.md, cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_linux.py, cuda_pathfinder/cuda/pathfinder/_dynamic_libs/platform_loader.py
The architecture documentation identifies the fresh-process helper and its use for dynamic-loader isolation. Loader comments use the current structure and module names.
Comments describe the utility tuple and search-directory order. The lookup docstring describes Windows executable search rules and the Unix-like execute-permission requirement. The compatibility comment says removal of _find_nvidia_header_directory was planned for release 1.2.4 but has not happened.
Possibly related issues
NVIDIA/cuda-python#2654: The PR updates documentation but does not change supported names or binary lookup behavior.
Suggested labels:documentation
Suggested reviewers:cpcloud
Change: Other
Merge Risk: Minimal · previous review f4490
This change only corrects stale references and comments in documentation and does not alter runtime behavior. It carries no meaningful merge risk.
Architecture risk: Low · up to 996a8
The change affects 1 system.
Changed systems:cuda_pathfinder
Architecture concerns
No architecture-level concerns identified.
Review details
Systems and components
observed — cuda_pathfinder (service) was modified; 6 changed files map to changed impact.
Before / after behavior
observed — Modified behavior in cuda_pathfinder/AGENTS.md: The architecture documentation replaces _utils/spawned_process_runner.py with _dynamic_libs/dynamic_lib_subprocess.py and documents its fresh-process use for CTK-root canary probes and tests needing isolation from process-global dynamic-loader state.
observed — Modified behavior in cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_linux.py: The allocation warning now names _LinkMapLNameView instead of LinkMapPrefix.
observed — Modified behavior in cuda_pathfinder/cuda/pathfinder/init.py: The SUPPORTED_BINARY_UTILITIES documentation changes from describing the tuple as platform-aware to saying it is the same on every platform, while retaining that some utilities are platform-specific.
observed — Modified behavior in cuda_pathfinder/cuda/pathfinder/init.py: The backward-compatibility comment no longer says _find_nvidia_header_directory will be removed in release 1.2.4; it says removal was planned for that release and has not happened.
- [ ] 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; 1 remain after this review.
- `AGENTS.md` named `_utils/spawned_process_runner.py`, which was
replaced by `_dynamic_libs/dynamic_lib_subprocess.py` in #1777.
- A docstring in `load_dl_linux.py` named `LinkMapPrefix`; the class is
`_LinkMapLNameView`.
Comments and docs only.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Rob Parolin <rparolin@nvidia.com>
…g thing
- `platform_loader.py`: said the platform module is wrapped in a
namespace. Nothing is wrapped; `LOADER` is the module.
- `supported_nvidia_binaries.py`: called the directory table "utilities
available on both Linux and Windows". It is the same table everywhere,
and some utilities ship for one platform only.
- `__init__.py`: called `SUPPORTED_BINARY_UTILITIES` platform-aware. The
tuple is the same on every platform.
- `__init__.py`: said `_find_nvidia_header_directory` will be removed in
release 1.2.4. It was not. The comment now says so and keeps the alias.
- `find_nvidia_binary_utility` docstring: said Windows executables are
found by `.exe`, `.bat` and `.cmd`. The search looks for `.exe`, with
`.bat` first for `compute-sanitizer` and `ncu`. It never looks for
`.cmd`.
Comments and docstrings only. No code changes.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Rob Parolin <rparolin@nvidia.com>
The reason will be displayed to describe this comment to others. Learn more.
The Args: section (line 116, not in this diff) still says the function "also recognizes .bat and .cmd files on Windows." That contradicts this Note, and the claim is unreachable from this entry point anyway, since utility_name must come from SUPPORTED_BINARIES. Suggest dropping that sentence from Args: and keeping the .bat/.cmd explanation here.
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 13 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.AGENTS.mdnamed_utils/spawned_process_runner.py, which was replaced by_dynamic_libs/dynamic_lib_subprocess.pyin refactor(pathfinder): replace spawned child runner with subprocess entrypoint #1777.load_dl_linux.pynamedLinkMapPrefix; the class is_LinkMapLNameView.Also in this PR: four comments and a docstring that say the wrong thing.
platform_loader.pysaid the platform module is wrapped in a namespace. Nothing is wrapped;LOADERis the module.supported_nvidia_binaries.pycalled the directory table "utilities available on both Linux and Windows". It is the same table everywhere, and some utilities ship for one platform only.__init__.pycalledSUPPORTED_BINARY_UTILITIESplatform-aware. The tuple is the same on every platform.__init__.pysaid_find_nvidia_header_directorywill be removed in release 1.2.4. It was not. The comment now says so; the alias stays.find_nvidia_binary_utilitydocstring said Windows executables are found by.exe,.batand.cmd. The search looks for.exe, with.batfirst forcompute-sanitizerandncu. It never looks for.cmd.Comments and docs 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