Skip to content

(fix) rocThrust - Fix fetchdeps function in CMake - #10978

Merged
stanleytsang-amd merged 1 commit into
developfrom
users/stanleytsang-amd/thrust-fetchdeps-fix-rocrand
Aug 19, 2026
Merged

stanleytsang-amd merged 1 commit into
developfrom
users/stanleytsang-amd/thrust-fetchdeps-fix-rocrand

Conversation

@stanleytsang-amd

@stanleytsang-amd stanleytsang-amd commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Further investigation revealed some bugs in the fetch_dep call that is used to get rocPRIM and/or rocRAND as dependencies. Hardcoded references to rocPRIM were used, which obviously breaks when trying to fetch rocRAND. This was causing rocRAND installs not being found, specifically in TheRock CI for ROCm 10, which in turn triggered rocThrust to download rocRAND, which in turn triggers #10967 and #10956, and also other behaviour that will soon be undesired, specifically the packaging of duplicate files in separate library packages. Unfortunately for this last behaviour, the fix is beyond the scope of ROCm 10.

Technical Details

Fix the fetch_dep function in cmake/Dependencies.cmake to properly handle both rocPRIM and rocRAND.

Test Plan

Run ROCm/TheRock#7475 in advance to see if TheRock CI passes completely.

Test Result

While it is still running at the time of writing, the Validate Artifact Structure job passed, which is what this PR aims to fix. I will check in the morning on the status.

Submission Checklist

@therock-pr-bot

therock-pr-bot Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass PR does not contain code files — Unit Test auto-passed
🔎 pre-commit ✅ Pass —
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —
🤖 therock-pr-bot ✅ Pass —

🎉 All checks passed! This PR is ready for review.

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

🙋 Wish to Override Policy?

@therock-pr-bot

Copy link
Copy Markdown

🎉 All checks passed! This PR is ready for review.

@amd-jmahovsky amd-jmahovsky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #10978      +/-   ##
===========================================
+ Coverage    69.36%   69.43%   +0.07%     
===========================================
  Files         2778     2808      +30     
  Lines       458114   460060    +1946     
  Branches     67566    67875     +309     
===========================================
+ Hits        317756   319429    +1673     
- Misses      117218   117455     +237     
- Partials     23140    23176      +36     
Flag Coverage Δ *Carryforward flag
TensileLite-CPP 38.05% <ø> (ø) Carriedforward from 5692449
TensileLite-Unit 76.57% <ø> (ø) Carriedforward from 5692449
hipBLAS 90.62% <ø> (ø) Carriedforward from 5692449
hipBLASLt 34.89% <ø> (ø) Carriedforward from 5692449
hipCUB 82.68% <ø> (ø) Carriedforward from 5692449
hipDNN 86.79% <ø> (ø) Carriedforward from 5692449
hipFFT 43.60% <ø> (ø) Carriedforward from 5692449
hipRAND 76.12% <ø> (ø) Carriedforward from 5692449
hipSOLVER 69.03% <ø> (ø) Carriedforward from 5692449
hipSPARSE 86.99% <ø> (ø) Carriedforward from 5692449
rocBLAS 48.26% <ø> (ø) Carriedforward from 5692449
rocFFT 47.64% <ø> (ø) Carriedforward from 5692449
rocRAND 57.05% <ø> (ø) Carriedforward from 5692449
rocSOLVER 77.12% <ø> (ø) Carriedforward from 5692449
rocSPARSE 74.62% <ø> (ø) Carriedforward from 5692449
rocThrust 91.34% <ø> (-0.26%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.
see 328 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@marbre

marbre commented Aug 19, 2026

Copy link
Copy Markdown
Member

testLibrariesMirroredIntoDevel failure is unrelated to this change, see ROCm/TheRock#7369.

@stanleytsang-amd
stanleytsang-amd merged commit 4e164ad into develop Aug 19, 2026
221 of 243 checks passed
@stanleytsang-amd
stanleytsang-amd deleted the users/stanleytsang-amd/thrust-fetchdeps-fix-rocrand branch August 19, 2026 14:42
marbre added a commit that referenced this pull request Aug 19, 2026
… 10.0 (#10991)

This PR cherry picks #10978 to the 10.0 release branch.

## Motivation

Further investigation revealed some bugs in the fetch_dep call that is
used to get rocPRIM and/or rocRAND as dependencies. Hardcoded references
to rocPRIM were used, which obviously breaks when trying to fetch
rocRAND. This was causing rocRAND installs not being found, specifically
in [TheRock CI for ROCm
10](https://github.com/ROCm/TheRock/actions/runs/32192515118/job/95906621978?pr=7330),
which in turn triggered rocThrust to download rocRAND, which in turn
triggers #10967 and #10956, and also other behaviour that will soon be
undesired, specifically the packaging of duplicate files in separate
library packages. Unfortunately for this last behaviour, the fix is
beyond the scope of ROCm 10.

## Technical Details

Fix the `fetch_dep` function in cmake/Dependencies.cmake to properly
handle both rocPRIM and rocRAND.

## Test Plan

Run ROCm/TheRock#7475 in advance to see if
TheRock CI passes completely.

## Test Result

While it is still running at the time of writing, the Validate Artifact
Structure job passed, which is what this PR aims to fix. The windows
jobs seem stuck but everything else passes.

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.

JIRA ID: ROCM-29174

---------

Co-authored-by: Marius Brehler <marius.brehler@amd.com>
stanleytsang-amd added a commit that referenced this pull request Sep 18, 2026
## Motivation

Further investigation revealed some bugs in the fetch_dep call that is
used to get rocPRIM and/or rocRAND as dependencies. Hardcoded references
to rocPRIM were used, which obviously breaks when trying to fetch
rocRAND. This was causing rocRAND installs not being found, specifically
in [TheRock CI for ROCm
10](https://github.com/ROCm/TheRock/actions/runs/32192515118/job/95906621978?pr=7330),
which in turn triggered rocThrust to download rocRAND, which in turn
triggers #10967 and #10956, and also other behaviour that will soon be
undesired, specifically the packaging of duplicate files in separate
library packages. Unfortunately for this last behaviour, the fix is
beyond the scope of ROCm 10.

## Technical Details

Fix the `fetch_dep` function in cmake/Dependencies.cmake to properly
handle both rocPRIM and rocRAND.

## Test Plan

Run ROCm/TheRock#7475 in advance to see if
TheRock CI passes completely.

## Test Result

While it is still running at the time of writing, the Validate Artifact
Structure job passed, which is what this PR aims to fix. I will check in
the morning on the status.

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
illsilin pushed a commit to igorluppi/rocm-libraries that referenced this pull request Oct 1, 2026
## Motivation

Further investigation revealed some bugs in the fetch_dep call that is
used to get rocPRIM and/or rocRAND as dependencies. Hardcoded references
to rocPRIM were used, which obviously breaks when trying to fetch
rocRAND. This was causing rocRAND installs not being found, specifically
in [TheRock CI for ROCm
10](https://github.com/ROCm/TheRock/actions/runs/32192515118/job/95906621978?pr=7330),
which in turn triggered rocThrust to download rocRAND, which in turn
triggers ROCm#10967 and ROCm#10956, and also other behaviour that will soon be
undesired, specifically the packaging of duplicate files in separate
library packages. Unfortunately for this last behaviour, the fix is
beyond the scope of ROCm 10.

## Technical Details

Fix the `fetch_dep` function in cmake/Dependencies.cmake to properly
handle both rocPRIM and rocRAND.

## Test Plan

Run ROCm/TheRock#7475 in advance to see if
TheRock CI passes completely.

## Test Result

While it is still running at the time of writing, the Validate Artifact
Structure job passed, which is what this PR aims to fix. I will check in
the morning on the status.

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants