Repository navigation
Carhuang/fix the rock compile - #4608
Merged
Merged
Conversation
aiter_lib=Library("aiter",...) already adds the ns, so a schema of
"aiter::<op>" makes torch>=2.13 store a doubled "aiter::aiter::<op>" in
_op_defs (2.12 stripped it). At shutdown _clear_torch_ops_cache does
qualname.split("::") expecting 2 parts and raises "too many values to
unpack". Pass the bare "<op>" to define(); impl()/_register_fake() keep
the qualified name. torch.ops.aiter.<op> is unchanged.
The updated rocm/pytorch image switched the default hipcc to the ROCm
python-SDK toolchain (/opt/venv/.../_rocm_sdk_devel), which does not
bake a RUNPATH into linked binaries the way the classic /opt/rocm
hipcc did -- and the image's ld.so.conf/LD_LIBRARY_PATH do not cover
the SDK lib dir either. Bare hipcc-built binaries then fail at load
time:
./test_opus_basic: error while loading shared libraries:
libamdhip64.so.7: cannot open shared object file
Link with -Wl,-rpath,/opt/rocm/lib so the tests start
regardless of which ROCm toolchain layout the image provides.
Verified: full op_tests/opus/run_tests.sh passes in both the old
(2026-05-28) and new (2026-08-04) rocm/pytorch:latest images on MI355X.
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
1 task done
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.
Motivation
Technical Details
Test Plan
Test Result
Submission Checklist