feat(hipkernelprovider): add the HIPKERNELPROVIDER_ENABLE_JITKC flag #10431
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 287 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.339
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10431"
general
weight: 0.35
BrianHarrisonAMD
Motivation
hip-kernel-provider in rocm-libraries is gaining jitkc, hipDNN's JIT kernel compiler, and a set of jitkc engines
behind the CMake option
HIPKERNELPROVIDER_ENABLE_JITKC. The option is OFF in rocm-libraries. TheRock's flagscan only pass an option ON, so TheRock needs a flag to turn it on. This follows
HIPKERNELPROVIDER_ENABLE_ROCKEand
HIPKERNELPROVIDER_ENABLE_FLYDSL.The flag defaults to OFF, so this PR changes no build. The rocm-libraries change is not yet a PR. Until it lands,
turning the flag on passes a variable that hip-kernel-provider does not use.
JIRA ID : ALMIOPEN-3649
Technical Details
FLAGS.cmakedeclaresHIPKERNELPROVIDER_ENABLE_JITKC,DEFAULT_VALUE OFF. When ON, it passesHIPKERNELPROVIDER_ENABLE_JITKC=ONto thehipkernelprovidersubproject.ml-libs/CMakeLists.txtaddsamd-llvmto hipkernelprovider'sBUILD_DEPSandRUNTIME_DEPS, on every platform. jitkc uses the LLVM C API both at build time (it compiles the AOT kernels) andat run time (
jitkc-workercompiles JIT kernels). With the flag OFF, the dependencies are unchanged.Test Plan
cmake/therock_flag_utils.cmakeand this branch'sFLAGS.cmakein a CMake script that runstherock_finalize_flags. Ran it once with defaults and once with-DTHEROCK_FLAG_HIPKERNELPROVIDER_ENABLE_JITKC=ON, and checked the hipkernelprovider subproject's flag variables.pre-commit runon the changed files.Test Result
| Run |
flag_settings.json| hipkernelprovider CMake vars from flags ||---|---|---|
| Defaults |
"HIPKERNELPROVIDER_ENABLE_JITKC": false|HIPDNN_ENABLE_SDPA=ON,HIPKERNELPROVIDER_ENABLE_FLYDSL=ON,HIPDNN_ENABLE_KERNEL_INGESTOR=ON(unchanged) || Flag ON |
"HIPKERNELPROVIDER_ENABLE_JITKC": true| the same, plusHIPKERNELPROVIDER_ENABLE_JITKC=ON|The default
rocm_build_flags_state.cmakerecords the flag with value0. pre-commit passes.A full TheRock configure or build with the flag ON has not run yet, on Linux or Windows, so the
ml-libschange(the
amd-llvmdependencies) is not exercised by these tests. That needs the rocm-libraries change.Submission Checklist