← Back to Pull requests

feat(hipkernelprovider): add the HIPKERNELPROVIDER_ENABLE_JITKC flag #10431

Closed
unknown closed this pull request without merging on Dec 02, 2026 21:01 UTC
View on GitHub
unknown unknown commented on Dec 02, 2026 14:47 UTC
Author

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 flags
can only pass an option ON, so TheRock needs a flag to turn it on. This follows HIPKERNELPROVIDER_ENABLE_ROCKE
and 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.cmake declares HIPKERNELPROVIDER_ENABLE_JITKC, DEFAULT_VALUE OFF. When ON, it passes

  • HIPKERNELPROVIDER_ENABLE_JITKC=ON to the hipkernelprovider subproject.
  • When the flag is ON, ml-libs/CMakeLists.txt adds amd-llvm to hipkernelprovider's BUILD_DEPS and

  • RUNTIME_DEPS, on every platform. jitkc uses the LLVM C API both at build time (it compiles the AOT kernels) and
    at run time (jitkc-worker compiles JIT kernels). With the flag OFF, the dependencies are unchanged.

    Test Plan

  • Loaded cmake/therock_flag_utils.cmake and this branch's FLAGS.cmake in a CMake script that runs

  • therock_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 run on 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, plus HIPKERNELPROVIDER_ENABLE_JITKC=ON |

    The default rocm_build_flags_state.cmake records the flag with value 0. pre-commit passes.

    A full TheRock configure or build with the flag ON has not run yet, on Linux or Windows, so the ml-libs change
    (the amd-llvm dependencies) is not exercised by these tests. That needs the rocm-libraries change.

    Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.
  • Diff: 287 lines (+215 / -72) across 3 files Reviewer: BrianHarrisonAMD Review duration: 373m
    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
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.7% · Safe to merge
    15.7%
    Repository