Skip to content

Commit

Permalink
minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed Oct 3, 2024
1 parent b023aa5 commit 03d570d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpp/src/text/minhash.cu
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ namespace detail {
namespace {

constexpr cudf::thread_index_type block_size = 256;
constexpr cudf::thread_index_type tile_size = block_size; // cudf::detail::warp_size;
// for tuning independently from block_size
constexpr cudf::thread_index_type tile_size = block_size;

/**
* @brief Compute the minhash of each string for each seed
Expand Down Expand Up @@ -85,6 +86,7 @@ CUDF_KERNEL void minhash_kernel(cudf::column_device_view const d_strings,

auto tile_hashes = working_memory + (str_idx * tile_size * seeds.size());

// initialize working memory
for (std::size_t seed_idx = lane_idx; seed_idx < seeds.size(); seed_idx += tile_size) {
auto begin = tile_hashes + (seed_idx * tile_size);
thrust::uninitialized_fill(thrust::seq, begin, begin + tile_size, init);
Expand Down

0 comments on commit 03d570d

Please sign in to comment.