← Back to Pull requests

feat(hipccl): Initial gfx1251 support for Primitives Libraries #16787

Open
stanleytsang-amd opened this pull request with 102 lines diff across 21 files
View on GitHub
stanleytsang-amd stanleytsang-amd commented on Nov 26, 2026 02:33 UTC
Author

Motivation

We have been instructed to create PRs to the public repo to enable gfx1251 support.

Technical Details

Add gfx1251 support to our libraries. Most of the libraries there really isn't anything substantial; all the hard stuff is in rocPRIM.

Test Plan

Built rocPRIM, hipCUB, rocThrust unit tests with gfx1251 target. rocRAND/hipRAND there's really no change.

Test Result

Build passed.

Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/GOVERNANCE.md#pull-requests.
  • Diff: 102 lines (+71 / -31) across 21 files Reviewer: amd-mcieslak Review duration: 7388m
    All Vouch review confidence checks passed
    Residual risk 0.11 = Change Risk (0.59) × (1 − Review Confidence (0.81)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.59 · 102 lines diff across 21 files
    0.59
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.80 · 5 substantive comment(s)
    0.80
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    81%
    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.277
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    8 items
    therock-pr-bot[bot] therock-pr-bot[bot] commented on Nov 26, 2026 02:39 UTC
    Bot

    <!-- therock-pr-bot-policy-check -->

    ❌ PR Check — Action Required

    | Check | Status | Details |
    |---|:---:|---|
    | 📝 PR Description | ❌ Fail | Error: PR description must reference a JIRA ID, ISSUE ID, or a GitHub closing keyword.<br>Expected: include a JIRA ID / ISSUE ID line (separator : or -, or omitted; value may be a JIRA key, a number with/without #, or a link), OR a closing keyword + issue reference. Accepted examples:<br>• JIRA ID : TESTAUTO-6039<br>• JIRA ID - #330<br>• JIRA ID #330<br>• JIRA ID (on separate line)<br>ROCM-25757<br>• ISSUE ID : TESTUTO-3334<br>• ISSUE ID #3334<br>• ISSUE ID - TESTAUTO-3433<br>• ISSUE ID (on separate line)<br>AIRUNTIME-2352<br>• ISSUE ID : https://github.com/<org_name>/<repo_name>/issues/1234<br>• Closes #10<br>• Fixes octo-org/octo-repo#100<br>• Resolves: #123<br>• #123<br>• https://github.com/<org_name>/<repo_name>/issues/123<br>Current: no valid JIRA/ISSUE/closing-keyword reference found |
    | ⛔ Forbidden Files | ✅ Pass | — |
    | 🧪 Unit Test | ✅ Pass | — |
    | 🔎 pre-commit | ✅ Pass | — |
    | 🚫 Draft PR | 🔜 To Be Enabled | — |
    | 🚩 Feature Flag | 🔜 To Be Enabled | — |
    | 📊 Code Coverage | 🔜 To Be Enabled | — |

    ⚠️ 1 policy check(s) failed. Please address the issues above before this PR can be Reviewed.

    > 🚫 Please fix the failed policies

    - ❌ PR Description

    > The Not ready to Review label was added to this PR. Once all policies pass, the label is removed automatically.

    📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

    🙋 Wish to Override Policy?

    therock-pr-bot[bot] therock-pr-bot[bot] commented on Nov 26, 2026 02:39 UTC
    Bot

    <!-- therock-pr-bot-fix-policies -->
    🚫 Please fix the failed policies before requesting reviews.

    The following policy checks failed:

  • ❌ PR Description
  • The Not ready to Review label has been added to this PR.
    Once all policies pass, the label will be removed automatically.

    codecov[bot] codecov[bot] commented on Nov 26, 2026 03:40 UTC
    Bot

    Codecov Report


    :x: Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.

    | Files with missing lines | Patch % | Lines |
    |---|---|---|
    | ...pccl3/hipcub/test/hipcub/test\_hipcub\_iterators.cpp | 50.00% | 3 Missing :warning: |

    :x: Your project check has failed because the head coverage (76.12%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

    <details><summary>Additional details and impacted files</summary>

    @@             Coverage Diff             @@
    ##           develop   #16787      +/-   ##
    ===========================================
    + Coverage    78.51%   78.53%   +0.02%     
    ===========================================
      Files         2793     2795       +2     
      Lines       555681   557460    +1779     
      Branches     90863    91102     +239     
    ===========================================
    + Hits        436258   437758    +1500     
    - Misses       86466    86579     +113     
    - Partials     32957    33123     +166     
    

    | Flag | Coverage Δ | | Carryforward flag |
    |---|---|---|---|
    | TensileLite-CPP | 56.69% <ø> (ø) | | Carriedforward from 7697032 |
    | TensileLite-Unit | 84.67% <ø> (ø) | | Carriedforward from 7697032 |
    | hipBLAS | 90.62% <ø> (ø) | | Carriedforward from 7697032 |
    | hipBLASLt | 70.43% <ø> (ø) | | Carriedforward from 7697032 |
    | hipCUB | 80.38% <50.00%> (+0.28%) | :arrow_up: | |
    | hipDNN | 88.37% <ø> (ø) | | Carriedforward from 7697032 |
    | hipFFT | 44.26% <ø> (ø) | | Carriedforward from 7697032 |
    | hipRAND | 76.12% <ø> (ø) | | |
    | hipSOLVER | 69.66% <ø> (ø) | | Carriedforward from 7697032 |
    | hipSPARSE | 87.03% <ø> (ø) | | Carriedforward from 7697032 |
    | rocALUTION | 83.50% <ø> (ø) | | Carriedforward from 7697032 |
    | rocBLAS | 73.36% <ø> (ø) | | Carriedforward from 7697032 |
    | rocFFT | 47.28% <ø> (ø) | | Carriedforward from 7697032 |
    | rocRAND | 57.54% <ø> (ø) | | |
    | rocSOLVER | 77.00% <ø> (ø) | | Carriedforward from 7697032 |
    | rocSPARSE | 85.81% <ø> (ø) | | Carriedforward from 7697032 |
    | rocSPARSE-unit | 82.64% <ø> (ø) | | Carriedforward from 7697032 |
    | rocThrust | 95.14% <ø> (ø) | | |

    This pull request uses carry forward flags. Click here to find out more.

    | Files with missing lines | Coverage Δ | |
    |---|---|---|
    | ...pccl3/hipcub/test/hipcub/test\_hipcub\_iterators.cpp | 51.80% <50.00%> (ø) | |

    ... and 18 files with indirect coverage changes
    </details>
    <details><summary> :rocket: New features to boost your workflow: </summary>

  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

  • </details>

    amd-mcieslak amd-mcieslak commented on code on Nov 27, 2026 15:23 UTC
    Code Review
    projects/hipccl/hipccl3/rocprim/test/rocprim/test_texture_cache_iterator.cpp:1
    @@ -84,10 +84,10 @@ TYPED_TEST(RocprimTextureCacheIteratorTests, Transform)
         HIP_CHECK(hipGetDeviceProperties(&props, device_id));
         std::string deviceName = std::string(props.gcnArchName);
         if (deviceName.rfind("gfx94", 0) == 0 || deviceName.rfind("gfx120") == 0 ||
    -        deviceName.rfind("gfx95") == 0 || deviceName.rfind("gfx1250") == 0)
    +        deviceName.rfind("gfx95") == 0 || deviceName.rfind("gfx1250", 0) == 0 || deviceName.rfind("gfx1251", 0) == 0)

    Should rfind("gfx120") and rfind("gfx95") also get the position arg fix?

    amd-mcieslak amd-mcieslak commented on Nov 27, 2026 15:24 UTC
    Reviewer

    One minor comment but otherwise LGTM.

    stanleytsang-amd stanleytsang-amd commented on code on Nov 30, 2026 22:20 UTC
    Code Review
    projects/hipccl/hipccl3/rocprim/test/rocprim/test_texture_cache_iterator.cpp:1
    @@ -84,10 +84,10 @@ TYPED_TEST(RocprimTextureCacheIteratorTests, Transform)
         HIP_CHECK(hipGetDeviceProperties(&props, device_id));
         std::string deviceName = std::string(props.gcnArchName);
         if (deviceName.rfind("gfx94", 0) == 0 || deviceName.rfind("gfx120") == 0 ||
    -        deviceName.rfind("gfx95") == 0 || deviceName.rfind("gfx1250") == 0)
    +        deviceName.rfind("gfx95") == 0 || deviceName.rfind("gfx1250", 0) == 0 || deviceName.rfind("gfx1251", 0) == 0)

    Good catch, thanks. Fixed.

    amd-mcieslak amd-mcieslak approved these changes on Nov 30, 2026 22:26 UTC
    Approved Reviewer

    LGTM

    Reviewers
    Assignees
    stanleytsang-amd stanleytsang-amd
    Labels
    risk: low confidence: 81.4% 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: 59.2% (MEDIUM) · Higher = larger blast radius
    59.2%
    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: 81.4% · Lower = rushed or shallow review
    81.4%
    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: 11% · Safe to merge
    11%