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

Commit a9143cf

Browse files
lilohuangalliepiper
authored andcommitted
Reduce scan_by_key memory consumption
Reduce scan_by_key memory consumption by using uint8_t rather than uint32_t on HeadFlagType
1 parent 66f22c3 commit a9143cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

thrust/system/detail/generic/scan_by_key.inl

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ __host__ __device__
109109
AssociativeOperator binary_op)
110110
{
111111
using OutputType = typename thrust::iterator_traits<InputIterator2>::value_type;
112-
using HeadFlagType = thrust::detail::uint32_t;
112+
using HeadFlagType = thrust::detail::uint8_t;
113113

114114
const size_t n = last1 - first1;
115115

@@ -205,7 +205,7 @@ __host__ __device__
205205
AssociativeOperator binary_op)
206206
{
207207
using OutputType = T;
208-
using HeadFlagType = thrust::detail::uint32_t;
208+
using HeadFlagType = thrust::detail::uint8_t;
209209

210210
const size_t n = last1 - first1;
211211

0 commit comments

Comments
 (0)