Skip to content

Commit

Permalink
add __host__ for nvcc return type deduction
Browse files Browse the repository at this point in the history
Fixes #9703
add __host__ for nvcc return type deduction to work. 
replaced `auto` (generic lambda) with size_type.
  • Loading branch information
karthikeyann authored Nov 25, 2021
1 parent d1811b5 commit 60a88fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/sort/rank.cu
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void rank_average(cudf::device_span<size_type const> group_keys,
tie_break_ranks_transform<MinCount>(
group_keys,
cudf::detail::make_counting_transform_iterator(1,
[] __device__(auto i) {
[] __host__ __device__(size_type i) -> MinCount {
return MinCount{i, 1};
}),
sorted_order_view,
Expand Down

0 comments on commit 60a88fb

Please sign in to comment.