Skip to content

Commit

Permalink
Update code to use new cuco APIs instead of deprecated ones
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Oct 10, 2024
1 parent 69b0f66 commit be139c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cpp/src/io/parquet/chunk_dict.cu
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ struct map_insert_fn {
storage_ref};

// Create a map ref with `cuco::insert` operator
auto map_insert_ref = hash_map_ref.with_operators(cuco::insert);
auto map_insert_ref = hash_map_ref.rebind_operators(cuco::insert);
auto const t = threadIdx.x;

// Create atomic refs to the current chunk's num_dict_entries and uniq_data_size
Expand Down Expand Up @@ -186,7 +186,7 @@ struct map_find_fn {
storage_ref};

// Create a map ref with `cuco::find` operator
auto const map_find_ref = hash_map_ref.with_operators(cuco::find);
auto const map_find_ref = hash_map_ref.rebind_operators(cuco::find);
auto const t = threadIdx.x;

// Note: Adjust the following loop to use `cg::tiles<map_cg_size>` if needed in the future.
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/join/mixed_join_kernels_semi.cu
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ CUDF_KERNEL void __launch_bounds__(block_size)
evaluator, thread_intermediate_storage, swap_tables, equality_probe};

// Create set ref with the new equality comparator
auto const set_ref_equality = set_ref.with_key_eq(equality);
auto const set_ref_equality = set_ref.rebind_key_eq(equality);

// Total number of rows to query the set
auto const outer_num_rows = left_table.num_rows();
Expand Down
3 changes: 2 additions & 1 deletion cpp/src/join/mixed_join_semi.cu
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ std::unique_ptr<rmm::device_uvector<size_type>> mixed_join_semi(
auto const row_hash = cudf::experimental::row::hash::row_hasher{preprocessed_probe};
auto const hash_probe = row_hash.device_hasher(has_nulls);

hash_set_ref_type const row_set_ref = row_set.ref(cuco::contains).with_hash_function(hash_probe);
hash_set_ref_type const row_set_ref =
row_set.ref(cuco::contains).rebind_hash_function(hash_probe);

// Vector used to indicate indices from left/probe table which are present in output
auto left_table_keep_mask = rmm::device_uvector<bool>(probe.num_rows(), stream);
Expand Down

0 comments on commit be139c6

Please sign in to comment.