Merged
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
davebayer
reviewed
Feb 4, 2026
Contributor
|
Found the issue. Here is the diff to be applied to diff --git a/libcudacxx/include/cuda/std/__pstl/reduce.h b/libcudacxx/include/cuda/std/__pstl/reduce.h
index 803edcc584..be0d33fc71 100644
--- a/libcudacxx/include/cuda/std/__pstl/reduce.h
+++ b/libcudacxx/include/cuda/std/__pstl/reduce.h
@@ -86,7 +86,11 @@ _CCCL_REQUIRES(__has_forward_traversal<_Iter> _CCCL_AND is_execution_policy_v<_P
[[nodiscard]] _CCCL_HOST_API _Tp reduce(const _Policy& __policy, _Iter __first, _Iter __last, _Tp __init)
{
return ::cuda::std::reduce(
- __policy, ::cuda::std::move(__first), ::cuda::std::move(__last), ::cuda::std::move(__init), ::cuda::std::plus<>{});
+ __policy,
+ ::cuda::std::move(__first),
+ ::cuda::std::move(__last),
+ ::cuda::std::move(__init),
+ ::cuda::std::plus<_Tp>{});
}
_CCCL_TEMPLATE(class _Policy, class _Iter)
@@ -94,7 +98,11 @@ _CCCL_REQUIRES(__has_forward_traversal<_Iter> _CCCL_AND is_execution_policy_v<_P
[[nodiscard]] _CCCL_HOST_API iter_value_t<_Iter> reduce(const _Policy& __policy, _Iter __first, _Iter __last)
{
return ::cuda::std::reduce(
- __policy, ::cuda::std::move(__first), ::cuda::std::move(__last), iter_value_t<_Iter>{}, ::cuda::std::plus<>{});
+ __policy,
+ ::cuda::std::move(__first),
+ ::cuda::std::move(__last),
+ iter_value_t<_Iter>{},
+ ::cuda::std::plus<iter_value_t<_Iter>>{});
}
_CCCL_END_NAMESPACE_ARCH_DEPENDENTThe main insight is that using |
We weren properly checking for errors of the CUB calls. Also make it so that the allocation guard does not sync in the destructor because we want to explicitly do that in code to ensure we do not forget it
7f04ec8 to
3ac29ab
Compare
Contributor
Author
|
New tunings look good: |
Contributor
🥳 CI Workflow Results🟩 Finished in 1h 30m: Pass: 100%/95 | Total: 16h 17m | Max: 1h 05m | Hits: 99%/248072See results here. |
bernhardmgruber
approved these changes
Feb 4, 2026
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.
We weren properly checking for errors of the CUB calls.
Also make it so that the allocation guard does not sync in the destructor because we want to explicitly do that in code to ensure we do not forget it
Pulled out of #7382