Skip to content

Commit

Permalink
fix atomic scope
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed Jun 15, 2024
1 parent dabad8f commit 530de96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/strings/replace/replace.cu
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ CUDF_KERNEL void count_targets_kernel(replace_parallel_chars_fn fn,
auto const total = block_reduce(temp_storage).Reduce(count, cub::Sum());

if ((lane_idx == 0) && (total > 0)) {
cuda::atomic_ref<int64_t, cuda::thread_scope_block> ref{*d_output};
cuda::atomic_ref<int64_t, cuda::thread_scope_device> ref{*d_output};
ref.fetch_add(total, cuda::std::memory_order_relaxed);
}
}
Expand Down

0 comments on commit 530de96

Please sign in to comment.