Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class block_sort_bitonic
const auto warp_id_is_even = ((flat_tid / ::rocprim::warp_size()) % 2) == 0;
::rocprim::warp_sort<Key, ::rocprim::warp_size(), Value> wsort;
auto compare_function2 =
[compare_function, warp_id_is_even](const Key& a, const Key& b) -> bool
[compare_function, warp_id_is_even](const Key& a, const Key& b) mutable -> bool
{
auto r = compare_function(a, b);
if(warp_id_is_even)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ void block_sort_kernel_impl(KeysInputIterator keys_input,
);

// Special comparison that preserves relative order of equal keys
auto stable_compare_function = [compare_function](const stable_key_type& a, const stable_key_type& b) -> bool
auto stable_compare_function = [compare_function](const stable_key_type& a, const stable_key_type& b) mutable -> bool
{
const bool ab = compare_function(rocprim::get<0>(a), rocprim::get<0>(b));
const bool ba = compare_function(rocprim::get<0>(b), rocprim::get<0>(a));
Expand Down