← Back to Pull requests

feat(miopen): gfx1250 system find-db and perf-db #16617

Closed
unknown closed this pull request without merging on Nov 24, 2026 19:31 UTC
View on GitHub
unknown unknown commented on Nov 24, 2026 06:51 UTC
Author

JIRA ID: ALMIOPEN-1195

Motivation

Add a system find-db and perf-db for gfx1250. This is the gfx1250 part of #15618 on its own, so it can merge independently of the refresh of the other architectures' databases.

Technical Details

  • projects/miopen/src/kernels/gfx1250100.HIP.fdb.txt.bz2 and gfx1250100.db.txt.bz2 (new): the same files as in #15618.

  • - Generated from exhaustive tuning results (MIOPEN_FIND_MODE=1, MIOPEN_FIND_ENFORCE=4) on gfx1250.
    - 190,352 find-db lines and 180,385 perf-db lines.
    - 45 find-db keys with the mixed data type INT8INT8INT32 are left out: DBSync's key parser accepts only single data types and aborts on them.
  • Runtime selection: gfx1250 reports gfx1250-strict, so MIOpen looked for the system databases as gfx1250-strict100 and never loaded them.

  • - TargetProperties::SystemDbId() is DbId() with the target variant dropped from the device name (gfx1250-strict -> gfx1250).
    - Handle::GetSystemDbBasename() names the system databases by it. The system find-db and perf-db lookups use it, both the exact match and the closest-CU search (find_db.cpp, execution_context.hpp).
    - User databases and kernel caches keep the full device name, since a variant's code objects may differ.
  • projects/miopen/CMakeLists.txt: gfx1250 is added to ALL_GPU_DATABASES, so the databases are installed.

  • projects/miopen/test/gtest/db_sync.cpp: a gfx1250 StaticFDBSync case, with a comment that its count is in CUs, not WGPs. The test compares the device's base architecture and opens the files GetSystemDbBasename() names, so the case runs on gfx1250-strict parts instead of skipping.

  • projects/miopen/CHANGELOG.md: an entry under Added.
  • Test Plan

  • DBSync cleanup pass (MIOPEN_DBSYNC_CLEAN=1), then a check pass, on gfx1250 hardware.

  • test_db_sync built from this branch and run on gfx950, to check that system database selection is unchanged for other architectures.

  • To do: run StaticFDBSync/gfx1250_256 from this branch on gfx1250 hardware and confirm it loads gfx1250100 and passes.
  • Test Result

  • The cleanup pass removed 2,207 find-db and 794 perf-db records and fixed 6,734 workspace sizes.

  • The check pass on the cleaned files ran with 0 failures.
  • Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
  • Diff: 299 lines (+224 / -75) across 3 files Reviewer: JonathanLichtnerAMD Review duration: 760m
    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 · 299 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.341
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16617"
    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: 40% (MEDIUM) · Higher = larger blast radius
    40%
    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.8% · Safe to merge
    15.8%