Skip to content

ci(spirv): build rocThrust for the rocm-examples job - #3633

Merged
lamb-j merged 1 commit into
amd-stagingfrom
spirv-ci/add-rocthrust
Jul 27, 2026
Merged

ci(spirv): build rocThrust for the rocm-examples job#3633
lamb-j merged 1 commit into
amd-stagingfrom
spirv-ci/add-rocthrust

Conversation

@lamb-j

@lamb-j lamb-j commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Why

Applications/monte_carlo_pi was migrated off the CUB-style hipcub iterators that CCCL 3.0 removed (ROCm/rocm-libraries#9931) to the portable thrust:: iterators — see ROCm/rocm-examples#493. That migration pulls in a rocThrust dependency (find_package(rocthrust REQUIRED)), which the SPIRV CI build job doesn't currently install, so the Test rocm-examples job would fail at configure with Could not find rocthrust.

What

Add a rocThrust checkout + install into the staging tree so the rocm-examples build can find it:

  • Add ROCTHRUST_BUILD env var.
  • Checkout ROCm/rocThrust@develop, configure + install into staging after hipCUB. rocThrust is header-only, so it's a fast configure + install, mirroring the hipCUB step.
  • Include the build dir in the strip + tar steps.

Ordering

The Test rocm-examples job stays red until both this and rocm-examples#493 land (either order); then the next amd-staging run goes green. The job is informational (not a required check), so this doesn't block merges in the meantime.

Applications/monte_carlo_pi migrated off the CUB-style hipcub iterators
that CCCL 3.0 removed to portable thrust:: iterators (rocm-examples #493),
which pulls in a rocThrust dependency. Add a rocThrust checkout + install
into the staging tree so the rocm-examples build can find it. Header-only,
so it's a fast configure + install matching the hipCUB step.

Changes:
- Add ROCTHRUST_BUILD env var.
- Checkout ROCm/rocThrust@develop, configure + install into staging after
  hipCUB.
- Include the build dir in the strip + tar steps.
@lamb-j
lamb-j requested a review from idubinov July 27, 2026 17:09

@idubinov idubinov left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@lamb-j
lamb-j merged commit 45e3da7 into amd-staging Jul 27, 2026
27 of 28 checks passed
@lamb-j
lamb-j deleted the spirv-ci/add-rocthrust branch July 27, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants