rocm_sdk: test rocJPEG/rocDecode init in rocm-sdk test #10420
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.42) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 338 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.349
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #10420"
general
weight: 0.35
ScottTodd
Motivation
Before #10115, a runtime-only
pip install rocm[libraries]passedrocm-sdk testeven though rocJPEG and rocDecode could not initialize: on nightly 10.3.0a20261118 the existing 19 tests pass, while the two new tests fail atvaInitialize.rocm-sdk testonly loaded librocjpeg and librocdecode, which doesn't load their bundled libva and VA driver, and rocJPEG's and rocDecode's own tests run against a full ROCm tree withROCM_PATHset, so neither caught the wheel-layout failure (#10187).Technical Details
Two
ROCmCoreTestmethods run the newrocm_sdk/tests/media_init.pyin a child process per library, which dropsROCM_PATHandLIBVA_and creates and destroys a rocJPEG hardware decoder and a rocDecode decoder on HIP device 0; they skip on non-Linux, WSL, a preloaded sanitizer runtime, no GPU, or a GPU whose kernel driver reports no VCN JPEG/decode engine (TheRock ships gfx900/gfx906 wheels, which have none), and fail otherwise.rocm-sdk testalso gates the PyTorch tests intest_pytorch_wheels.yml, so a media-stack failure now skips those too; the CI-only step this PR first added is removed.Issue Tracking
GitHub issue: https://github.com/ROCm/TheRock/issues/10187
JIRA ID: AICV-461
Test Plan
rocm-sdk testwith these tests on nightly 10.3.0a20261120 wheels (runtime-only and with devel) on a gfx1100 machine: on the host and in a local Ubuntu 24.04 container with only/dev/kfdand/dev/dri,/opt/rocmmasked and no network.ROCM_PATHandLIBVA_*set, and with an ASan runtime path inLD_PRELOAD(astest_rocm_wheels.ymlsets for ASan groups).rocm-sdk teston the pre-#10115 nightlyrocm[libraries,device-gfx1100]==10.3.0a20261118in a fresh venv.build_tools/tests/py_packaging_test.pyand related).Test Result
rocdecode: created and destroyed a HEVC 1280x720 decoder on HIP device 0 (8-bit 4:2:0 to NV12: HEVC, AVC, AV1, VP9).vaInitialize(ROCJPEG_STATUS_NOT_INITIALIZED,ROCDEC_RUNTIME_ERROR).Submission Checklist
🤖 Generated with Claude Code