Fix identity usage in scatter
MODIFY
thrust/system/hip/detail/scatter.h
thrust/system/hip/detail/scatter.h
@@ -47,12 +47,11 @@ scatter(execution_policy<Derived>& policy,
MapIt map,
ResultIt result)
{
- typedef typename ItemsIt::value_type ItemsTy;
hip_rocprim::transform(policy,
first,
last,
thrust::make_permutation_iterator(result, map),
- thrust::identity<ItemsTy>());
+ identity());
}
template <class Derived,
@@ -70,13 +69,12 @@ scatter_if(execution_policy<Derived>& policy,
ResultIt result,
Predicate predicate)
{
- typedef typename ItemsIt::value_type ItemsTy;
hip_rocprim::transform_if(policy,
first,
last,
stencil,
thrust::make_permutation_iterator(result, map),
- thrust::identity<ItemsTy>(),
+ identity(),
predicate);
}
@@ -94,14 +92,13 @@ scatter_if(execution_policy<Derived>& policy,
StencilIt stencil,
ResultIt result)
{
- typedef typename ItemsIt::value_type ItemsTy;
hip_rocprim::scatter_if(policy,
first,
last,
map,
stencil,
result,
- thrust::identity<ItemsTy>());
+ identity());
}

Fix identity usage in scatter