Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #854 from andrewcorrigan/fixes_852
Browse files Browse the repository at this point in the history
fixes #852
  • Loading branch information
jaredhoberock committed Oct 24, 2016
2 parents f9ac498 + 3a0e7d9 commit 0cc0477
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions thrust/system/tbb/detail/reduce_by_key.inl
Expand Up @@ -81,7 +81,7 @@ template<typename InputIterator1,
thrust::pair<
InputIterator1,
thrust::pair<
typename InputIterator1::value_type,
typename thrust::iterator_value<InputIterator1>::type,
typename partial_sum_type<InputIterator2,BinaryFunction>::type
>
>
Expand All @@ -98,7 +98,7 @@ template<typename InputIterator1,
thrust::reverse_iterator<InputIterator1> keys_last_r(keys_first);
thrust::reverse_iterator<InputIterator2> values_first_r(values_first + n);

typename InputIterator1::value_type result_key = *keys_first_r;
typename thrust::iterator_value<InputIterator1>::type result_key = *keys_first_r;
typename partial_sum_type<InputIterator2,BinaryFunction>::type result_value = *values_first_r;

// consume the entirety of the first key's sequence
Expand All @@ -122,7 +122,7 @@ template<typename InputIterator1,
thrust::tuple<
OutputIterator1,
OutputIterator2,
typename InputIterator1::value_type,
typename thrust::iterator_value<InputIterator1>::type,
typename partial_sum_type<InputIterator2,BinaryFunction>::type
>
reduce_by_key_with_carry(InputIterator1 keys_first,
Expand All @@ -136,7 +136,7 @@ template<typename InputIterator1,
// first, consume the last sequence to produce the carry
// XXX is there an elegant way to pose this such that we don't need to default construct carry?
thrust::pair<
typename InputIterator1::value_type,
typename thrust::iterator_value<InputIterator1>::type,
typename partial_sum_type<InputIterator2,BinaryFunction>::type
> carry;

Expand Down

0 comments on commit 0cc0477

Please sign in to comment.