feat(hipccl): Initial gfx1251 support for Primitives Libraries #16787
<!-- 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.
<!-- therock-pr-bot-fix-policies -->
🚫 Please fix the failed policies before requesting reviews.
The following policy checks failed:
The Not ready to Review label has been added to this PR.
Once all policies pass, the label will be removed automatically.
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>
</details>
Should rfind("gfx120") and rfind("gfx95") also get the position arg fix?
One minor comment but otherwise LGTM.
Good catch, thanks. Fixed.
LGTM
amd-mcieslak
stanleytsang-amd
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