1
- # Copyright (c) 2020-2024 , NVIDIA CORPORATION.
1
+ # Copyright (c) 2020-2025 , NVIDIA CORPORATION.
2
2
from libcpp.memory cimport unique_ptr
3
3
from libcpp.string cimport string
4
4
from pylibcudf.exception_handler cimport libcudf_exception_handler
@@ -8,6 +8,7 @@ from pylibcudf.libcudf.scalar.scalar cimport string_scalar
8
8
from pylibcudf.libcudf.strings.regex_program cimport regex_program
9
9
from pylibcudf.libcudf.table.table cimport table
10
10
from pylibcudf.libcudf.types cimport size_type
11
+ from rmm.librmm.cuda_stream_view cimport cuda_stream_view
11
12
12
13
13
14
cdef extern from " cudf/strings/split/split.hpp" namespace \
@@ -16,22 +17,26 @@ cdef extern from "cudf/strings/split/split.hpp" namespace \
16
17
cdef unique_ptr[table] split(
17
18
column_view strings_column,
18
19
string_scalar delimiter,
19
- size_type maxsplit) except + libcudf_exception_handler
20
+ size_type maxsplit,
21
+ cuda_stream_view stream) except + libcudf_exception_handler
20
22
21
23
cdef unique_ptr[table] rsplit(
22
24
column_view strings_column,
23
25
string_scalar delimiter,
24
- size_type maxsplit) except + libcudf_exception_handler
26
+ size_type maxsplit,
27
+ cuda_stream_view stream) except + libcudf_exception_handler
25
28
26
29
cdef unique_ptr[column] split_record(
27
30
column_view strings,
28
31
string_scalar delimiter,
29
- size_type maxsplit) except + libcudf_exception_handler
32
+ size_type maxsplit,
33
+ cuda_stream_view stream) except + libcudf_exception_handler
30
34
31
35
cdef unique_ptr[column] rsplit_record(
32
36
column_view strings,
33
37
string_scalar delimiter,
34
- size_type maxsplit) except + libcudf_exception_handler
38
+ size_type maxsplit,
39
+ cuda_stream_view stream) except + libcudf_exception_handler
35
40
36
41
37
42
cdef extern from " cudf/strings/split/split_re.hpp" namespace \
@@ -40,19 +45,23 @@ cdef extern from "cudf/strings/split/split_re.hpp" namespace \
40
45
cdef unique_ptr[table] split_re(
41
46
const column_view& input ,
42
47
regex_program prog,
43
- size_type maxsplit) except + libcudf_exception_handler
48
+ size_type maxsplit,
49
+ cuda_stream_view stream) except + libcudf_exception_handler
44
50
45
51
cdef unique_ptr[table] rsplit_re(
46
52
const column_view& input ,
47
53
regex_program prog,
48
- size_type maxsplit) except + libcudf_exception_handler
54
+ size_type maxsplit,
55
+ cuda_stream_view stream) except + libcudf_exception_handler
49
56
50
57
cdef unique_ptr[column] split_record_re(
51
58
const column_view& input ,
52
59
regex_program prog,
53
- size_type maxsplit) except + libcudf_exception_handler
60
+ size_type maxsplit,
61
+ cuda_stream_view stream) except + libcudf_exception_handler
54
62
55
63
cdef unique_ptr[column] rsplit_record_re(
56
64
const column_view& input ,
57
65
regex_program prog,
58
- size_type maxsplit) except + libcudf_exception_handler
66
+ size_type maxsplit,
67
+ cuda_stream_view stream) except + libcudf_exception_handler
0 commit comments