Skip to content

Commit

Permalink
Get correct data type for lane reductions (#3325)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Jul 31, 2024
1 parent bdc7d17 commit 1fecf2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ struct lane
template <class Op, class T, class Read, class N, class U, class... Us>
__device__ auto reduce_impl(Op op, T init, Read read, N n, U&& x, Us&&... xs) const
{
using type = remove_reference_t<decltype(x(0, _c<0>))>;
using type = remove_reference_t<decltype(read(x(0, _c<0>), xs(0, _c<0>)...))>;
type r = type(init);
for(index_int j = 0; j < n; j++)
{
Expand Down

0 comments on commit 1fecf2a

Please sign in to comment.