Skip to content

Commit

Permalink
change CUDF_FAIL to cudf_assert for count_matches detail function
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed Apr 8, 2022
1 parent 9c658a1 commit 6b3d152
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion cpp/src/strings/count_matches.cu
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct count_dispatch_fn {
rmm::cuda_stream_view stream,
rmm::mr::device_memory_resource* mr)
{
CUDF_EXPECTS(output_size >= d_strings.size(), "Unexpected output size");
cudf_assert(output_size >= d_strings.size() and "Unexpected output size");

auto results = make_numeric_column(
data_type{type_id::INT32}, output_size, mask_state::UNALLOCATED, stream, mr);
Expand Down
2 changes: 0 additions & 2 deletions cpp/src/strings/count_matches.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ class reprog_device;
*
* A null entry will result in a zero count for that output row.
*
* @throw cudf::logic_error if `output_size < d_strings.size()`
*
* @param d_strings Device view of the input strings column.
* @param d_prog Regex instance to evaluate on each string.
* @param output_size Number of rows for the output column.
Expand Down

0 comments on commit 6b3d152

Please sign in to comment.