-
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
- Loading branch information
1 parent
4e986fd
commit fb6cd2c
Showing
7 changed files
with
37 additions
and
37 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