Skip to content

Commit

Permalink
cudf moved the default_hash into the cudf::detail namespace (#2244)
Browse files Browse the repository at this point in the history
Updated as part of rapidsai/cudf#10462

Update namespace for default_hash.

Also update a python call that was changed in cudf.

Authors:
  - Chuck Hastings (https://github.com/ChuckHastings)

Approvers:
  - Seunghwa Kang (https://github.com/seunghwak)
  - Joseph Nke (https://github.com/jnke2016)
  - Rick Ratzel (https://github.com/rlratzel)

URL: #2244
  • Loading branch information
ChuckHastings authored Apr 26, 2022
1 parent 4545cb8 commit 47ef819
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ union pair_packer<pair_type, std::enable_if_t<is_packable<pair_type>()>> {
*/
template <typename Key,
typename Element,
typename Hasher = default_hash<Key>,
typename Hasher = cudf::detail::default_hash<Key>,
typename Equality = equal_to<Key>,
typename Allocator = default_allocator<thrust::pair<Key, Element>>>
class concurrent_unordered_map {
Expand Down
2 changes: 1 addition & 1 deletion python/cugraph/cugraph/structure/hypergraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def _create_direct_edges(
def _str_scalar_to_category(size, val):
return cudf.core.column.build_categorical_column(
categories=cudf.core.column.as_column([val], dtype="str"),
codes=cudf.utils.utils.scalar_broadcast_to(0, size, dtype=np.int32),
codes=cudf.core.column.column.full(size, 0, dtype=np.int32),
mask=None,
size=size,
offset=0,
Expand Down

0 comments on commit 47ef819

Please sign in to comment.