Repository navigation
π fix: CUDA major selection, wheel Agents, and doctor perf check - #65
Merged
Merged
Conversation
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.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes reported after 0.7.1.
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;validatewarnsEXTRA_CUDA_RUNTIMEinstead.measuresuggests another--matchonly for correlation policy problems.libexec/xprobe/cudaNN, which the CLI also searches. Before this,pip install --targetdropped them.test_wheel.shnow covers a--targetinstall.perf_event_paranoid=2as available.--cpu-samplestill reports another user's target as restricted.measurefinds 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.