Skip to content

Refactor Thrust execution policies - #5821

Merged
bernhardmgruber merged 13 commits into
NVIDIA:mainfrom
bernhardmgruber:ref_exec
Sep 22, 2025
Merged

bernhardmgruber merged 13 commits into
NVIDIA:mainfrom
bernhardmgruber:ref_exec

Conversation

@bernhardmgruber

Copy link
Copy Markdown
Contributor

No description provided.

@copy-pr-bot

copy-pr-bot Bot commented Sep 9, 2025

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Progress in CCCL Sep 9, 2025
@bernhardmgruber

Copy link
Copy Markdown
Contributor Author

/ok to test

@bernhardmgruber

Copy link
Copy Markdown
Contributor Author

/ok to test

@bernhardmgruber
bernhardmgruber marked this pull request as ready for review September 9, 2025 18:38
@bernhardmgruber
bernhardmgruber requested a review from a team as a code owner September 9, 2025 18:38
@cccl-authenticator-app cccl-authenticator-app Bot moved this from In Progress to In Review in CCCL Sep 9, 2025
@bernhardmgruber bernhardmgruber changed the title Refactor Thrust execution policies and document them Refactor Thrust execution policies Sep 9, 2025
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@bernhardmgruber
bernhardmgruber force-pushed the ref_exec branch 3 times, most recently from d7c9a93 to f77a088 Compare September 18, 2025 21:05
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@miscco miscco 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.

One nitpick about the deprecated tags and adding a message to the deprecation.

Besides that we moved to @c and friends for the doxygen comments, but that can happen in a followup for sure

Comment thread thrust/thrust/detail/execution_policy.h Resolved
@bernhardmgruber
bernhardmgruber enabled auto-merge (squash) September 22, 2025 11:59
@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 3h 41m: Pass: 100%/159 | Total: 6d 14h | Max: 3h 39m | Hits: 71%/186335

See results here.

@bernhardmgruber
bernhardmgruber merged commit 2f39a34 into NVIDIA:main Sep 22, 2025
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL Sep 22, 2025
@bernhardmgruber
bernhardmgruber deleted the ref_exec branch September 22, 2025 13:44
bernhardmgruber added a commit to bernhardmgruber/cccl that referenced this pull request Sep 24, 2025
bernhardmgruber added a commit to bernhardmgruber/cccl that referenced this pull request Sep 24, 2025
pciolkosz pushed a commit to pciolkosz/cccl that referenced this pull request Sep 24, 2025
bernhardmgruber added a commit that referenced this pull request Sep 30, 2025
…ce (#4226) (#6002)

* Fix dereferencing nullptr in `thrust::device_reference` (#4226)

* Improve select_system diagnostics
* Add tests for minimum_system and allow any execution policy to convert to the sequantial tag
* Dispatch using system tag instead, which is default constructible.

(cherry-picked from 9fbba01)

* Manual fixes extracted from #5821
Naraenda pushed a commit to ROCm/rocm-libraries that referenced this pull request Oct 26, 2026
…licies (NVIDIA/cccl#5821)

Upstream: NVIDIA/cccl@2f39a34

  - Generic: cpp/omp/tbb `tag`/`execution_policy` moved out of `system::X::detail` into `system::X`, and `par_t`/`par` folded into each `detail/execution_policy.h`; `git rm` `system/{cpp,omp,tbb}/detail/par.h`. Upstream SPDX header taken where the file had no AMD modification line; AMD-modified license headers kept (`seq.h`, `execution_policy.h`, `sequential/execution_policy.h`). `_CCCL_*` spelled `THRUST_*`.
  - `system/detail/sequential/execution_policy.h`: kept the local converting constructor on `sequential::tag` (needed for minimum_system), took upstream's `operator tag()` and TODO comment.
  - `thrust/execution_policy.h`: Doxygen-only `#if THRUST_DOXYGEN_INVOKED` blocks replaced by upstream doc comments; `host` is now `inline constexpr`; device docs keep "CUDA or HIP" wording; kept `#include <thrust/detail/execute_with_allocator.h>` (upstream dropped it) so `thrust::device(alloc)` keeps working for users including only this header.
  - cuda: `par.h`/`par_to_seq.h` folded into `cuda/detail/execution_policy.h` (`git rm` both; local leftover `<cuda/stream_ref>` include dropped with par.h); algorithm headers include `execution_policy.h` instead of `par_to_seq.h`; `util.h` forward-declares `execution_policy`.
  - HIP counterpart: no change: `system/hip/detail/par.h` and `par_to_seq.h` kept as-is (pure restructuring, no behavior fix; `hip/execution_policy.h` still includes `hip/detail/par.h`, `thrust::system::hip::detail::par_t` still exists for `device_t`).
  - testing/ counterpart: `allocator_aware_policies.cu` includes `{cpp,omp,tbb}/detail/execution_policy.h` (kept `hip/detail/par.h`, no cuda block); `gather.cu` gains gcc>=11 `THRUST_DISABLE_BROKEN_GCC_VECTORIZER` on `TestGatherCountingIterator`; `transform_input_output_iterator.cu` workaround widened to gcc>=12 (spelled `THRUST_COMPILER`).
  - test/ counterpart: `test_allocator_aware_policies.cpp` same include/policy_info updates (`thrust::system::X::execution_policy`); `test_gather.cpp` adds the gcc>=11 vectorizer workaround on `TestGatherCountingIterator`; `test_transform_input_output_iterator.cpp` widened to gcc>=12.
  - Not compiled, tests not run (per human).

Co-Authored-By: Claude <[email protected]>
amd-jmahovsky added a commit to ROCm/rocm-libraries that referenced this pull request Oct 28, 2026
…seq.h into execution_policy.h

Related upstream commit: 2f39a342b93 Refactor Thrust execution policies (NVIDIA/cccl#5821)
Related local port commit: db142f7

The local port applied this refactor to the cuda backend only. Do the same
for hip:
- thrust/system/hip/detail/par.h and par_to_seq.h are removed; their
  contents (execute_on_stream*, par_t, par_nosync_t and the hip-specific
  par_det_t/par_det_nosync_t, and the par/par_nosync/par_det/par_det_nosync
  constants) now live in hip/detail/execution_policy.h. All existing aliases
  in thrust::hip, thrust::system::hip and thrust::system::hip::detail are kept.
- cvt_to_seq takes upstream's simple form (returns thrust::detail::seq_t),
  dropping the unused has_par trait and the #if 0 block.
- hip/detail/util.h forward-declares execution_policy instead of including
  hip/detail/execution_policy.h at the top, as cuda/detail/util.h does. It
  includes it at the bottom so headers that relied on util.h for the policy
  definitions keep working.
- Algorithm headers, temporary_buffer.h, hip/execution_policy.h and the
  allocator_aware_policies tests include hip/detail/execution_policy.h
  instead of the removed headers.

Compatibility: code that includes thrust/system/hip/detail/par.h or
par_to_seq.h directly must switch to thrust/system/hip/execution_policy.h.

Not compiled, tests not run (per human)

Co-Authored-By: Claude <[email protected]>
Naraenda pushed a commit to ROCm/rocm-libraries that referenced this pull request Oct 29, 2026
…licies (NVIDIA/cccl#5821)

Upstream: NVIDIA/cccl@2f39a34

  - Generic: cpp/omp/tbb `tag`/`execution_policy` moved out of `system::X::detail` into `system::X`, and `par_t`/`par` folded into each `detail/execution_policy.h`; `git rm` `system/{cpp,omp,tbb}/detail/par.h`. Upstream SPDX header taken where the file had no AMD modification line; AMD-modified license headers kept (`seq.h`, `execution_policy.h`, `sequential/execution_policy.h`). `_CCCL_*` spelled `THRUST_*`.
  - `system/detail/sequential/execution_policy.h`: kept the local converting constructor on `sequential::tag` (needed for minimum_system), took upstream's `operator tag()` and TODO comment.
  - `thrust/execution_policy.h`: Doxygen-only `#if THRUST_DOXYGEN_INVOKED` blocks replaced by upstream doc comments; `host` is now `inline constexpr`; device docs keep "CUDA or HIP" wording; kept `#include <thrust/detail/execute_with_allocator.h>` (upstream dropped it) so `thrust::device(alloc)` keeps working for users including only this header.
  - cuda: `par.h`/`par_to_seq.h` folded into `cuda/detail/execution_policy.h` (`git rm` both; local leftover `<cuda/stream_ref>` include dropped with par.h); algorithm headers include `execution_policy.h` instead of `par_to_seq.h`; `util.h` forward-declares `execution_policy`.
  - HIP counterpart: no change: `system/hip/detail/par.h` and `par_to_seq.h` kept as-is (pure restructuring, no behavior fix; `hip/execution_policy.h` still includes `hip/detail/par.h`, `thrust::system::hip::detail::par_t` still exists for `device_t`).
  - testing/ counterpart: `allocator_aware_policies.cu` includes `{cpp,omp,tbb}/detail/execution_policy.h` (kept `hip/detail/par.h`, no cuda block); `gather.cu` gains gcc>=11 `THRUST_DISABLE_BROKEN_GCC_VECTORIZER` on `TestGatherCountingIterator`; `transform_input_output_iterator.cu` workaround widened to gcc>=12 (spelled `THRUST_COMPILER`).
  - test/ counterpart: `test_allocator_aware_policies.cpp` same include/policy_info updates (`thrust::system::X::execution_policy`); `test_gather.cpp` adds the gcc>=11 vectorizer workaround on `TestGatherCountingIterator`; `test_transform_input_output_iterator.cpp` widened to gcc>=12.
  - Not compiled, tests not run (per human).

Co-Authored-By: Claude <[email protected]>
Naraenda pushed a commit to ROCm/rocm-libraries that referenced this pull request Oct 29, 2026
…licies (NVIDIA/cccl#5821)

Upstream: NVIDIA/cccl@2f39a34

  - Generic: cpp/omp/tbb `tag`/`execution_policy` moved out of `system::X::detail` into `system::X`, and `par_t`/`par` folded into each `detail/execution_policy.h`; `git rm` `system/{cpp,omp,tbb}/detail/par.h`. Upstream SPDX header taken where the file had no AMD modification line; AMD-modified license headers kept (`seq.h`, `execution_policy.h`, `sequential/execution_policy.h`). `_CCCL_*` spelled `THRUST_*`.
  - `system/detail/sequential/execution_policy.h`: kept the local converting constructor on `sequential::tag` (needed for minimum_system), took upstream's `operator tag()` and TODO comment.
  - `thrust/execution_policy.h`: Doxygen-only `#if THRUST_DOXYGEN_INVOKED` blocks replaced by upstream doc comments; `host` is now `inline constexpr`; device docs keep "CUDA or HIP" wording; kept `#include <thrust/detail/execute_with_allocator.h>` (upstream dropped it) so `thrust::device(alloc)` keeps working for users including only this header.
  - cuda: `par.h`/`par_to_seq.h` folded into `cuda/detail/execution_policy.h` (`git rm` both; local leftover `<cuda/stream_ref>` include dropped with par.h); algorithm headers include `execution_policy.h` instead of `par_to_seq.h`; `util.h` forward-declares `execution_policy`.
  - HIP counterpart: no change: `system/hip/detail/par.h` and `par_to_seq.h` kept as-is (pure restructuring, no behavior fix; `hip/execution_policy.h` still includes `hip/detail/par.h`, `thrust::system::hip::detail::par_t` still exists for `device_t`).
  - testing/ counterpart: `allocator_aware_policies.cu` includes `{cpp,omp,tbb}/detail/execution_policy.h` (kept `hip/detail/par.h`, no cuda block); `gather.cu` gains gcc>=11 `THRUST_DISABLE_BROKEN_GCC_VECTORIZER` on `TestGatherCountingIterator`; `transform_input_output_iterator.cu` workaround widened to gcc>=12 (spelled `THRUST_COMPILER`).
  - test/ counterpart: `test_allocator_aware_policies.cpp` same include/policy_info updates (`thrust::system::X::execution_policy`); `test_gather.cpp` adds the gcc>=11 vectorizer workaround on `TestGatherCountingIterator`; `test_transform_input_output_iterator.cpp` widened to gcc>=12.
  - Not compiled, tests not run (per human).

Co-Authored-By: Claude <[email protected]>
Naraenda pushed a commit to ROCm/rocm-libraries that referenced this pull request Oct 29, 2026
…seq.h into execution_policy.h

Related upstream commit: 2f39a342b93 Refactor Thrust execution policies (NVIDIA/cccl#5821)
Related local port commit: db142f7

The local port applied this refactor to the cuda backend only. Do the same
for hip:
- thrust/system/hip/detail/par.h and par_to_seq.h are removed; their
  contents (execute_on_stream*, par_t, par_nosync_t and the hip-specific
  par_det_t/par_det_nosync_t, and the par/par_nosync/par_det/par_det_nosync
  constants) now live in hip/detail/execution_policy.h. All existing aliases
  in thrust::hip, thrust::system::hip and thrust::system::hip::detail are kept.
- cvt_to_seq takes upstream's simple form (returns thrust::detail::seq_t),
  dropping the unused has_par trait and the #if 0 block.
- hip/detail/util.h forward-declares execution_policy instead of including
  hip/detail/execution_policy.h at the top, as cuda/detail/util.h does. It
  includes it at the bottom so headers that relied on util.h for the policy
  definitions keep working.
- Algorithm headers, temporary_buffer.h, hip/execution_policy.h and the
  allocator_aware_policies tests include hip/detail/execution_policy.h
  instead of the removed headers.

Compatibility: code that includes thrust/system/hip/detail/par.h or
par_to_seq.h directly must switch to thrust/system/hip/execution_policy.h.

Not compiled, tests not run (per human)

Co-Authored-By: Claude <[email protected]>
Naraenda pushed a commit to ROCm/rocm-libraries that referenced this pull request Oct 30, 2026
…licies (NVIDIA/cccl#5821)

Upstream: NVIDIA/cccl@2f39a34

  - Generic: cpp/omp/tbb `tag`/`execution_policy` moved out of `system::X::detail` into `system::X`, and `par_t`/`par` folded into each `detail/execution_policy.h`; `git rm` `system/{cpp,omp,tbb}/detail/par.h`. Upstream SPDX header taken where the file had no AMD modification line; AMD-modified license headers kept (`seq.h`, `execution_policy.h`, `sequential/execution_policy.h`). `_CCCL_*` spelled `THRUST_*`.
  - `system/detail/sequential/execution_policy.h`: kept the local converting constructor on `sequential::tag` (needed for minimum_system), took upstream's `operator tag()` and TODO comment.
  - `thrust/execution_policy.h`: Doxygen-only `#if THRUST_DOXYGEN_INVOKED` blocks replaced by upstream doc comments; `host` is now `inline constexpr`; device docs keep "CUDA or HIP" wording; kept `#include <thrust/detail/execute_with_allocator.h>` (upstream dropped it) so `thrust::device(alloc)` keeps working for users including only this header.
  - cuda: `par.h`/`par_to_seq.h` folded into `cuda/detail/execution_policy.h` (`git rm` both; local leftover `<cuda/stream_ref>` include dropped with par.h); algorithm headers include `execution_policy.h` instead of `par_to_seq.h`; `util.h` forward-declares `execution_policy`.
  - HIP counterpart: no change: `system/hip/detail/par.h` and `par_to_seq.h` kept as-is (pure restructuring, no behavior fix; `hip/execution_policy.h` still includes `hip/detail/par.h`, `thrust::system::hip::detail::par_t` still exists for `device_t`).
  - testing/ counterpart: `allocator_aware_policies.cu` includes `{cpp,omp,tbb}/detail/execution_policy.h` (kept `hip/detail/par.h`, no cuda block); `gather.cu` gains gcc>=11 `THRUST_DISABLE_BROKEN_GCC_VECTORIZER` on `TestGatherCountingIterator`; `transform_input_output_iterator.cu` workaround widened to gcc>=12 (spelled `THRUST_COMPILER`).
  - test/ counterpart: `test_allocator_aware_policies.cpp` same include/policy_info updates (`thrust::system::X::execution_policy`); `test_gather.cpp` adds the gcc>=11 vectorizer workaround on `TestGatherCountingIterator`; `test_transform_input_output_iterator.cpp` widened to gcc>=12.
  - Not compiled, tests not run (per human).

Co-Authored-By: Claude <[email protected]>
Beanavil pushed a commit to ROCm/rocm-libraries that referenced this pull request Oct 30, 2026
…licies (NVIDIA/cccl#5821)

Upstream: NVIDIA/cccl@2f39a34

  - Generic: cpp/omp/tbb `tag`/`execution_policy` moved out of `system::X::detail` into `system::X`, and `par_t`/`par` folded into each `detail/execution_policy.h`; `git rm` `system/{cpp,omp,tbb}/detail/par.h`. Upstream SPDX header taken where the file had no AMD modification line; AMD-modified license headers kept (`seq.h`, `execution_policy.h`, `sequential/execution_policy.h`). `_CCCL_*` spelled `THRUST_*`.
  - `system/detail/sequential/execution_policy.h`: kept the local converting constructor on `sequential::tag` (needed for minimum_system), took upstream's `operator tag()` and TODO comment.
  - `thrust/execution_policy.h`: Doxygen-only `#if THRUST_DOXYGEN_INVOKED` blocks replaced by upstream doc comments; `host` is now `inline constexpr`; device docs keep "CUDA or HIP" wording; kept `#include <thrust/detail/execute_with_allocator.h>` (upstream dropped it) so `thrust::device(alloc)` keeps working for users including only this header.
  - cuda: `par.h`/`par_to_seq.h` folded into `cuda/detail/execution_policy.h` (`git rm` both; local leftover `<cuda/stream_ref>` include dropped with par.h); algorithm headers include `execution_policy.h` instead of `par_to_seq.h`; `util.h` forward-declares `execution_policy`.
  - HIP counterpart: no change: `system/hip/detail/par.h` and `par_to_seq.h` kept as-is (pure restructuring, no behavior fix; `hip/execution_policy.h` still includes `hip/detail/par.h`, `thrust::system::hip::detail::par_t` still exists for `device_t`).
  - testing/ counterpart: `allocator_aware_policies.cu` includes `{cpp,omp,tbb}/detail/execution_policy.h` (kept `hip/detail/par.h`, no cuda block); `gather.cu` gains gcc>=11 `THRUST_DISABLE_BROKEN_GCC_VECTORIZER` on `TestGatherCountingIterator`; `transform_input_output_iterator.cu` workaround widened to gcc>=12 (spelled `THRUST_COMPILER`).
  - test/ counterpart: `test_allocator_aware_policies.cpp` same include/policy_info updates (`thrust::system::X::execution_policy`); `test_gather.cpp` adds the gcc>=11 vectorizer workaround on `TestGatherCountingIterator`; `test_transform_input_output_iterator.cpp` widened to gcc>=12.
  - Not compiled, tests not run (per human).

Co-Authored-By: Claude <[email protected]>
amd-jmahovsky added a commit to ROCm/rocm-libraries that referenced this pull request Oct 30, 2026
…seq.h into execution_policy.h

Related upstream commit: 2f39a342b93 Refactor Thrust execution policies (NVIDIA/cccl#5821)
Related local port commit: db142f7

The local port applied this refactor to the cuda backend only. Do the same
for hip:
- thrust/system/hip/detail/par.h and par_to_seq.h are removed; their
  contents (execute_on_stream*, par_t, par_nosync_t and the hip-specific
  par_det_t/par_det_nosync_t, and the par/par_nosync/par_det/par_det_nosync
  constants) now live in hip/detail/execution_policy.h. All existing aliases
  in thrust::hip, thrust::system::hip and thrust::system::hip::detail are kept.
- cvt_to_seq takes upstream's simple form (returns thrust::detail::seq_t),
  dropping the unused has_par trait and the #if 0 block.
- hip/detail/util.h forward-declares execution_policy instead of including
  hip/detail/execution_policy.h at the top, as cuda/detail/util.h does. It
  includes it at the bottom so headers that relied on util.h for the policy
  definitions keep working.
- Algorithm headers, temporary_buffer.h, hip/execution_policy.h and the
  allocator_aware_policies tests include hip/detail/execution_policy.h
  instead of the removed headers.

Compatibility: code that includes thrust/system/hip/detail/par.h or
par_to_seq.h directly must switch to thrust/system/hip/execution_policy.h.

Not compiled, tests not run (per human)

Co-Authored-By: Claude <[email protected]>
amd-jmahovsky added a commit to ROCm/rocm-libraries that referenced this pull request Oct 30, 2026
… policies like cuda

Related upstream commit: 2f39a342b93 Refactor Thrust execution policies (NVIDIA/cccl#5821)
Upstream: NVIDIA/cccl@2f39a34
Related local port commit: 7544a6b
Related local parity commit: 2b563b3

2b563b3 already folded par.h/par_to_seq.h into
thrust/system/hip/detail/execution_policy.h. This commit applies the rest of
upstream's cuda execution_policy.h refactor to the hip file:
- tag derives from thrust::detail::allocator_aware_execution_policy<execution_policy>,
  and execution_policy<Derived>::operator tag() returns {};
- execute_on_stream{,_nosync,_deterministic,_nosync_deterministic} use
  `= default` default constructors and construct the injected base class
  name instead of a base_t alias;
- par_t, par_nosync_t, par_det_t and par_det_nosync_t drop their
  user-written constexpr default constructors and base_t aliases;
- the public types sit in the execution_policies Doxygen group, with
  upstream's comments adapted to HIP and a usage example on par;
- `namespace system::hip`, and system::hip::detail no longer re-exports
  execution_policy and tag, matching upstream's system::cuda::detail.

The AMD-only deterministic stream bases are unchanged.

Not compiled, tests not run

Co-Authored-By: Claude <[email protected]>
Beanavil pushed a commit to ROCm/rocm-libraries that referenced this pull request Nov 9, 2026
…licies (NVIDIA/cccl#5821)

Upstream: NVIDIA/cccl@2f39a34

  - Generic: cpp/omp/tbb `tag`/`execution_policy` moved out of `system::X::detail` into `system::X`, and `par_t`/`par` folded into each `detail/execution_policy.h`; `git rm` `system/{cpp,omp,tbb}/detail/par.h`. Upstream SPDX header taken where the file had no AMD modification line; AMD-modified license headers kept (`seq.h`, `execution_policy.h`, `sequential/execution_policy.h`). `_CCCL_*` spelled `THRUST_*`.
  - `system/detail/sequential/execution_policy.h`: kept the local converting constructor on `sequential::tag` (needed for minimum_system), took upstream's `operator tag()` and TODO comment.
  - `thrust/execution_policy.h`: Doxygen-only `#if THRUST_DOXYGEN_INVOKED` blocks replaced by upstream doc comments; `host` is now `inline constexpr`; device docs keep "CUDA or HIP" wording; kept `#include <thrust/detail/execute_with_allocator.h>` (upstream dropped it) so `thrust::device(alloc)` keeps working for users including only this header.
  - cuda: `par.h`/`par_to_seq.h` folded into `cuda/detail/execution_policy.h` (`git rm` both; local leftover `<cuda/stream_ref>` include dropped with par.h); algorithm headers include `execution_policy.h` instead of `par_to_seq.h`; `util.h` forward-declares `execution_policy`.
  - HIP counterpart: no change: `system/hip/detail/par.h` and `par_to_seq.h` kept as-is (pure restructuring, no behavior fix; `hip/execution_policy.h` still includes `hip/detail/par.h`, `thrust::system::hip::detail::par_t` still exists for `device_t`).
  - testing/ counterpart: `allocator_aware_policies.cu` includes `{cpp,omp,tbb}/detail/execution_policy.h` (kept `hip/detail/par.h`, no cuda block); `gather.cu` gains gcc>=11 `THRUST_DISABLE_BROKEN_GCC_VECTORIZER` on `TestGatherCountingIterator`; `transform_input_output_iterator.cu` workaround widened to gcc>=12 (spelled `THRUST_COMPILER`).
  - test/ counterpart: `test_allocator_aware_policies.cpp` same include/policy_info updates (`thrust::system::X::execution_policy`); `test_gather.cpp` adds the gcc>=11 vectorizer workaround on `TestGatherCountingIterator`; `test_transform_input_output_iterator.cpp` widened to gcc>=12.
  - Not compiled, tests not run (per human).

Co-Authored-By: Claude <[email protected]>
amd-jmahovsky added a commit to ROCm/rocm-libraries that referenced this pull request Nov 10, 2026
…licies (NVIDIA/cccl#5821)

Upstream: NVIDIA/cccl@2f39a34

  - Generic: cpp/omp/tbb `tag`/`execution_policy` moved out of `system::X::detail` into `system::X`, and `par_t`/`par` folded into each `detail/execution_policy.h`; `git rm` `system/{cpp,omp,tbb}/detail/par.h`. Upstream SPDX header taken where the file had no AMD modification line; AMD-modified license headers kept (`seq.h`, `execution_policy.h`, `sequential/execution_policy.h`). `_CCCL_*` spelled `THRUST_*`.
  - `system/detail/sequential/execution_policy.h`: kept the local converting constructor on `sequential::tag` (needed for minimum_system), took upstream's `operator tag()` and TODO comment.
  - `thrust/execution_policy.h`: Doxygen-only `#if THRUST_DOXYGEN_INVOKED` blocks replaced by upstream doc comments; `host` is now `inline constexpr`; device docs keep "CUDA or HIP" wording; kept `#include <thrust/detail/execute_with_allocator.h>` (upstream dropped it) so `thrust::device(alloc)` keeps working for users including only this header.
  - cuda: `par.h`/`par_to_seq.h` folded into `cuda/detail/execution_policy.h` (`git rm` both; local leftover `<cuda/stream_ref>` include dropped with par.h); algorithm headers include `execution_policy.h` instead of `par_to_seq.h`; `util.h` forward-declares `execution_policy`.
  - HIP counterpart: no change: `system/hip/detail/par.h` and `par_to_seq.h` kept as-is (pure restructuring, no behavior fix; `hip/execution_policy.h` still includes `hip/detail/par.h`, `thrust::system::hip::detail::par_t` still exists for `device_t`).
  - testing/ counterpart: `allocator_aware_policies.cu` includes `{cpp,omp,tbb}/detail/execution_policy.h` (kept `hip/detail/par.h`, no cuda block); `gather.cu` gains gcc>=11 `THRUST_DISABLE_BROKEN_GCC_VECTORIZER` on `TestGatherCountingIterator`; `transform_input_output_iterator.cu` workaround widened to gcc>=12 (spelled `THRUST_COMPILER`).
  - test/ counterpart: `test_allocator_aware_policies.cpp` same include/policy_info updates (`thrust::system::X::execution_policy`); `test_gather.cpp` adds the gcc>=11 vectorizer workaround on `TestGatherCountingIterator`; `test_transform_input_output_iterator.cpp` widened to gcc>=12.
  - Not compiled, tests not run (per human).

Co-Authored-By: Claude <[email protected]>
Naraenda pushed a commit to ROCm/rocm-libraries that referenced this pull request Nov 12, 2026
…licies (NVIDIA/cccl#5821)

Upstream: NVIDIA/cccl@2f39a34

  - Generic: cpp/omp/tbb `tag`/`execution_policy` moved out of `system::X::detail` into `system::X`, and `par_t`/`par` folded into each `detail/execution_policy.h`; `git rm` `system/{cpp,omp,tbb}/detail/par.h`. Upstream SPDX header taken where the file had no AMD modification line; AMD-modified license headers kept (`seq.h`, `execution_policy.h`, `sequential/execution_policy.h`). `_CCCL_*` spelled `THRUST_*`.
  - `system/detail/sequential/execution_policy.h`: kept the local converting constructor on `sequential::tag` (needed for minimum_system), took upstream's `operator tag()` and TODO comment.
  - `thrust/execution_policy.h`: Doxygen-only `#if THRUST_DOXYGEN_INVOKED` blocks replaced by upstream doc comments; `host` is now `inline constexpr`; device docs keep "CUDA or HIP" wording; kept `#include <thrust/detail/execute_with_allocator.h>` (upstream dropped it) so `thrust::device(alloc)` keeps working for users including only this header.
  - cuda: `par.h`/`par_to_seq.h` folded into `cuda/detail/execution_policy.h` (`git rm` both; local leftover `<cuda/stream_ref>` include dropped with par.h); algorithm headers include `execution_policy.h` instead of `par_to_seq.h`; `util.h` forward-declares `execution_policy`.
  - HIP counterpart: no change: `system/hip/detail/par.h` and `par_to_seq.h` kept as-is (pure restructuring, no behavior fix; `hip/execution_policy.h` still includes `hip/detail/par.h`, `thrust::system::hip::detail::par_t` still exists for `device_t`).
  - testing/ counterpart: `allocator_aware_policies.cu` includes `{cpp,omp,tbb}/detail/execution_policy.h` (kept `hip/detail/par.h`, no cuda block); `gather.cu` gains gcc>=11 `THRUST_DISABLE_BROKEN_GCC_VECTORIZER` on `TestGatherCountingIterator`; `transform_input_output_iterator.cu` workaround widened to gcc>=12 (spelled `THRUST_COMPILER`).
  - test/ counterpart: `test_allocator_aware_policies.cpp` same include/policy_info updates (`thrust::system::X::execution_policy`); `test_gather.cpp` adds the gcc>=11 vectorizer workaround on `TestGatherCountingIterator`; `test_transform_input_output_iterator.cpp` widened to gcc>=12.
  - Not compiled, tests not run (per human).

Co-Authored-By: Claude <[email protected]>
Naraenda pushed a commit to ROCm/rocm-libraries that referenced this pull request Nov 12, 2026
…licies (NVIDIA/cccl#5821)

Upstream: NVIDIA/cccl@2f39a34

  - Generic: cpp/omp/tbb `tag`/`execution_policy` moved out of `system::X::detail` into `system::X`, and `par_t`/`par` folded into each `detail/execution_policy.h`; `git rm` `system/{cpp,omp,tbb}/detail/par.h`. Upstream SPDX header taken where the file had no AMD modification line; AMD-modified license headers kept (`seq.h`, `execution_policy.h`, `sequential/execution_policy.h`). `_CCCL_*` spelled `THRUST_*`.
  - `system/detail/sequential/execution_policy.h`: kept the local converting constructor on `sequential::tag` (needed for minimum_system), took upstream's `operator tag()` and TODO comment.
  - `thrust/execution_policy.h`: Doxygen-only `#if THRUST_DOXYGEN_INVOKED` blocks replaced by upstream doc comments; `host` is now `inline constexpr`; device docs keep "CUDA or HIP" wording; kept `#include <thrust/detail/execute_with_allocator.h>` (upstream dropped it) so `thrust::device(alloc)` keeps working for users including only this header.
  - cuda: `par.h`/`par_to_seq.h` folded into `cuda/detail/execution_policy.h` (`git rm` both; local leftover `<cuda/stream_ref>` include dropped with par.h); algorithm headers include `execution_policy.h` instead of `par_to_seq.h`; `util.h` forward-declares `execution_policy`.
  - HIP counterpart: no change: `system/hip/detail/par.h` and `par_to_seq.h` kept as-is (pure restructuring, no behavior fix; `hip/execution_policy.h` still includes `hip/detail/par.h`, `thrust::system::hip::detail::par_t` still exists for `device_t`).
  - testing/ counterpart: `allocator_aware_policies.cu` includes `{cpp,omp,tbb}/detail/execution_policy.h` (kept `hip/detail/par.h`, no cuda block); `gather.cu` gains gcc>=11 `THRUST_DISABLE_BROKEN_GCC_VECTORIZER` on `TestGatherCountingIterator`; `transform_input_output_iterator.cu` workaround widened to gcc>=12 (spelled `THRUST_COMPILER`).
  - test/ counterpart: `test_allocator_aware_policies.cpp` same include/policy_info updates (`thrust::system::X::execution_policy`); `test_gather.cpp` adds the gcc>=11 vectorizer workaround on `TestGatherCountingIterator`; `test_transform_input_output_iterator.cpp` widened to gcc>=12.
  - Not compiled, tests not run (per human).

Co-Authored-By: Claude <[email protected]>
Naraenda pushed a commit to ROCm/rocm-libraries that referenced this pull request Nov 12, 2026
…licies (NVIDIA/cccl#5821)

Upstream: NVIDIA/cccl@2f39a34

  - Generic: cpp/omp/tbb `tag`/`execution_policy` moved out of `system::X::detail` into `system::X`, and `par_t`/`par` folded into each `detail/execution_policy.h`; `git rm` `system/{cpp,omp,tbb}/detail/par.h`. Upstream SPDX header taken where the file had no AMD modification line; AMD-modified license headers kept (`seq.h`, `execution_policy.h`, `sequential/execution_policy.h`). `_CCCL_*` spelled `THRUST_*`.
  - `system/detail/sequential/execution_policy.h`: kept the local converting constructor on `sequential::tag` (needed for minimum_system), took upstream's `operator tag()` and TODO comment.
  - `thrust/execution_policy.h`: Doxygen-only `#if THRUST_DOXYGEN_INVOKED` blocks replaced by upstream doc comments; `host` is now `inline constexpr`; device docs keep "CUDA or HIP" wording; kept `#include <thrust/detail/execute_with_allocator.h>` (upstream dropped it) so `thrust::device(alloc)` keeps working for users including only this header.
  - cuda: `par.h`/`par_to_seq.h` folded into `cuda/detail/execution_policy.h` (`git rm` both; local leftover `<cuda/stream_ref>` include dropped with par.h); algorithm headers include `execution_policy.h` instead of `par_to_seq.h`; `util.h` forward-declares `execution_policy`.
  - HIP counterpart: no change: `system/hip/detail/par.h` and `par_to_seq.h` kept as-is (pure restructuring, no behavior fix; `hip/execution_policy.h` still includes `hip/detail/par.h`, `thrust::system::hip::detail::par_t` still exists for `device_t`).
  - testing/ counterpart: `allocator_aware_policies.cu` includes `{cpp,omp,tbb}/detail/execution_policy.h` (kept `hip/detail/par.h`, no cuda block); `gather.cu` gains gcc>=11 `THRUST_DISABLE_BROKEN_GCC_VECTORIZER` on `TestGatherCountingIterator`; `transform_input_output_iterator.cu` workaround widened to gcc>=12 (spelled `THRUST_COMPILER`).
  - test/ counterpart: `test_allocator_aware_policies.cpp` same include/policy_info updates (`thrust::system::X::execution_policy`); `test_gather.cpp` adds the gcc>=11 vectorizer workaround on `TestGatherCountingIterator`; `test_transform_input_output_iterator.cpp` widened to gcc>=12.
  - Not compiled, tests not run (per human).

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants