Skip to content

Commit

Permalink
fix: restore missing thread sync
Browse files Browse the repository at this point in the history
This got removed during a rebase.
  • Loading branch information
Naraenda committed Aug 29, 2024
1 parent 7e4f295 commit e15bcfd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ namespace detail
unsigned int indices[ItemsPerThread];

serial_merge<false>(keys_shared, keys, indices, range_local, compare_function);
rocprim::syncthreads();

if ROCPRIM_IF_CONSTEXPR(with_values){
reg_to_shared<BlockSize, ItemsPerThread>(values_shared, values);
Expand Down Expand Up @@ -336,6 +337,7 @@ namespace detail
unsigned int indices[ItemsPerThread];

serial_merge<false>(keys_shared, keys, indices, range_local, compare_function);
rocprim::syncthreads();

if ROCPRIM_IF_CONSTEXPR(with_values)
{
Expand Down

0 comments on commit e15bcfd

Please sign in to comment.