Repository navigation
Refactor Thrust execution policies - #5821
Merged
Merged
Conversation
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. |
bernhardmgruber
commented
Sep 9, 2025
Contributor
Author
|
/ok to test |
bernhardmgruber
force-pushed
the
ref_exec
branch
from
September 9, 2025 18:34
ae79bcc to
a7df58f
Compare
Contributor
Author
|
/ok to test |
bernhardmgruber
force-pushed
the
ref_exec
branch
from
September 9, 2025 18:38
a7df58f to
950dc25
Compare
bernhardmgruber
marked this pull request as ready for review
September 9, 2025 18:38
This comment has been minimized.
This comment has been minimized.
bernhardmgruber
force-pushed
the
ref_exec
branch
from
September 10, 2025 12:50
9afae26 to
2937c18
Compare
This comment has been minimized.
This comment has been minimized.
bernhardmgruber
force-pushed
the
ref_exec
branch
from
September 16, 2025 07:53
2937c18 to
3b2d2f7
Compare
This comment has been minimized.
This comment has been minimized.
bernhardmgruber
force-pushed
the
ref_exec
branch
from
September 16, 2025 21:27
3b2d2f7 to
ac3b2fa
Compare
This comment has been minimized.
This comment has been minimized.
bernhardmgruber
force-pushed
the
ref_exec
branch
3 times, most recently
from
September 18, 2025 21:05
d7c9a93 to
f77a088
Compare
This comment has been minimized.
This comment has been minimized.
bernhardmgruber
force-pushed
the
ref_exec
branch
from
September 19, 2025 10:46
f77a088 to
d989ed3
Compare
This comment has been minimized.
This comment has been minimized.
miscco
approved these changes
Sep 22, 2025
miscco
left a comment
Contributor
There was a problem hiding this comment.
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
bernhardmgruber
force-pushed
the
ref_exec
branch
from
September 22, 2025 08:20
d989ed3 to
c0c6b54
Compare
bernhardmgruber
force-pushed
the
ref_exec
branch
from
September 22, 2025 09:56
c0c6b54 to
6022f7c
Compare
miscco
approved these changes
Sep 22, 2025
bernhardmgruber
enabled auto-merge (squash)
September 22, 2025 11:59
Contributor
🥳 CI Workflow Results🟩 Finished in 3h 41m: Pass: 100%/159 | Total: 6d 14h | Max: 3h 39m | Hits: 71%/186335See results here. |
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.