Skip to content

Commit

Permalink
Added utility to debug print & instrumented code to use it
Browse files Browse the repository at this point in the history
  • Loading branch information
elstehle committed Jul 16, 2022
1 parent 67f609d commit 2f7b254
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cpp/src/io/fst/logical_stack.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,14 @@ void sparse_stack_op_to_top_of_stack(StackSymbolItT d_symbols,
get_stack_level_iterator(d_kv_operations.Current()),
get_value_iterator(d_kv_operations.Current()));

// Dump info on stack operations: (stack level change + symbol) -> (absolute stack level + symbol)
test::print::print_array(num_symbols_in,
stream,
get_key_it(stack_symbols_in),
get_value_it(stack_symbols_in),
get_key_it(d_kv_operations.Current()),
get_value_it(d_kv_operations.Current()));

// Stable radix sort, sorting by stack level of the operations
d_kv_operations_unsigned = cub::DoubleBuffer<StackOpUnsignedT>{
reinterpret_cast<StackOpUnsignedT*>(d_kv_operations.Current()),
Expand Down

0 comments on commit 2f7b254

Please sign in to comment.