Skip to content

Commit

Permalink
check needed only when recover with null is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
shrshi committed Dec 16, 2024
1 parent cab171d commit a07be57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/io/fst/logical_stack.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ void sparse_stack_op_to_top_of_stack(StackSymbolItT d_symbols,
}

// Check if the last element of d_kv_operations is 0. If not, then we have a problem.
if (num_symbols_in) {
if (num_symbols_in && !supports_reset_op) {
StackOpT last_symbol = d_kv_ops_current.element(num_symbols_in - 1, stream);
CUDF_EXPECTS(last_symbol.stack_level == 0, "The logical stack is not empty!");
}
Expand Down

0 comments on commit a07be57

Please sign in to comment.