-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move hash type declarations to hashing.hpp (#10320)
Move the `hash_id` and `DEFAULT_HASH_SEED` declarations from `types.hpp` to `hashing.hpp`. Authors: - David Wendt (https://github.com/davidwendt) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) - https://github.com/brandon-b-miller - Bradley Dice (https://github.com/bdice) URL: #10320
- Loading branch information
1 parent
b28bad6
commit ec614ac
Showing
7 changed files
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
# Copyright (c) 2020, NVIDIA CORPORATION. | ||
# Copyright (c) 2020-2022, NVIDIA CORPORATION. | ||
|
||
from libc.stdint cimport uint32_t | ||
from libcpp.memory cimport unique_ptr | ||
from libcpp.vector cimport vector | ||
|
||
cimport cudf._lib.cpp.types as libcudf_types | ||
from cudf._lib.cpp.column.column cimport column | ||
from cudf._lib.cpp.table.table cimport table | ||
from cudf._lib.cpp.table.table_view cimport table_view | ||
|
||
|
||
cdef extern from "cudf/hashing.hpp" namespace "cudf" nogil: | ||
|
||
ctypedef enum hash_id "cudf::hash_id": | ||
HASH_IDENTITY "cudf::hash_id::HASH_IDENTITY" | ||
HASH_MURMUR3 "cudf::hash_id::HASH_MURMUR3" | ||
HASH_MD5 "cudf::hash_id::HASH_MD5" | ||
HASH_SERIAL_MURMUR3 "cudf::hash_id::HASH_SERIAL_MURMUR3" | ||
HASH_SPARK_MURMUR3 "cudf::hash_id::HASH_SPARK_MURMUR3" | ||
|
||
cdef unique_ptr[column] hash "cudf::hash" ( | ||
const table_view& input, | ||
const libcudf_types.hash_id hash_function, | ||
const hash_id hash_function, | ||
const uint32_t seed | ||
) except + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters