-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
strings_udf lowering shall not import cudf, and functions shall be at…
…trs of string_view
- Loading branch information
1 parent
35d238b
commit cc661b3
Showing
19 changed files
with
229 additions
and
236 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) 2022, NVIDIA CORPORATION. | ||
# | ||
# distutils: language = c++ | ||
# cython: c_string_type=unicode, c_string_encoding=utf8 | ||
|
||
from strings_udf._lib.cpp.strings_udf cimport get_character_flags_table as cpp_get_character_flags_table | ||
from libc.stdint cimport uintptr_t, uint8_t | ||
import numpy as np | ||
|
||
|
||
def get_character_flags_table_ptr(): | ||
cdef const uint8_t* tbl_ptr = cpp_get_character_flags_table() | ||
return np.int64(<uintptr_t>tbl_ptr) |
Oops, something went wrong.