Skip to content

πŸ› fix: CUDA major selection, wheel Agents, and doctor perf check - #65

Merged
itdevwu merged 5 commits into
masterfrom
chore/post-0.7.1
Dec 3, 2026
Merged

itdevwu merged 5 commits into
masterfrom
chore/post-0.7.1

Conversation

@itdevwu

@itdevwu itdevwu commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Fixes reported after 0.7.1.

  • CUDA major: the target's loaded libcupti decides the CUDA major. For calendar-versioned files such as libcupti.so.2025.3.0, the major comes from the SONAME. libcudart decides only when no CUPTI is loaded. A libcudart of another major beside a loaded CUPTI no longer blocks injection; validate warns EXTRA_CUDA_RUNTIME instead.
  • Hints: measure suggests another --match only for correlation policy problems.
  • Wheel: the CUPTI Agents install to libexec/xprobe/cudaNN, which the CLI also searches. Before this, pip install --target dropped them. test_wheel.sh now covers a --target install.
  • doctor: reports perf_event_paranoid=2 as available. --cpu-sample still reports another user's target as restricted.
  • Docs: describe how measure finds a loaded Agent's start function.

Verification: fmt-check, lint, test, test-agent-contract, test-install; CUPTI and injection live tests on CUDA 13 and 12; CPU, PyTorch CUDA, and triage live tests. A wheel rebuilt from the public 0.7.1 archive installs and runs with --target.

A target that loaded CUDA 13's libcupti beside a libcudart.so.12 pulled in
by another package was rejected as mapping conflicting majors. The loaded
libcupti now decides the major, read from its SONAME when the file name is
calendar-versioned; libcudart decides only when no CUPTI is loaded. Another
libcudart major beside a loaded CUPTI gives the validate warning
EXTRA_CUDA_RUNTIME.
measure told users to rerun with --match for any validation issue, including
an unsupported CUDA version, where changing the policy does not help.
pip install --target drops a wheel's top-level lib/ data directory, so the
Agents were listed in RECORD but never written. The wheel now installs them
to libexec/xprobe/cudaNN, which the CLI also searches, and test_wheel.sh
covers a --target install.
At 2 an unprivileged user can still sample the user space of its own
processes, which is all --cpu-sample needs, but doctor reported it as
restricted. --cpu-sample still reports another user's target as restricted.
@itdevwu
itdevwu merged commit 1706331 into master Dec 3, 2026
18 checks passed
@itdevwu
itdevwu deleted the chore/post-0.7.1 branch December 3, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant