Skip to content

Carhuang/fix the rock compile - #4608

Merged
valarLip merged 3 commits into
mainfrom
carhuang/fix_the_rock_compile
Aug 6, 2026
Merged

valarLip merged 3 commits into
mainfrom
carhuang/fix_the_rock_compile

Conversation

@valarLip

@valarLip valarLip commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

ZhangLirong-amd and others added 3 commits August 6, 2026 06:02
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.
@valarLip
valarLip requested a review from a team August 6, 2026 11:59
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 4608 --add-label <label>

@valarLip
valarLip merged commit 00b271b into main Aug 6, 2026
43 of 44 checks passed
@valarLip
valarLip deleted the carhuang/fix_the_rock_compile branch August 6, 2026 14:22
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.

4 participants