Skip to content

Commit

Permalink
Merge pull request #16966 from vyasr/branch-24.12-merge-branch-24.10
Browse files Browse the repository at this point in the history
Branch 24.12 merge branch 24.10
  • Loading branch information
AyodeAwe authored Oct 1, 2024
2 parents f9567a5 + c3f813e commit 69dc356
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpp/src/io/json/nested_json_gpu.cu
Original file line number Diff line number Diff line change
Expand Up @@ -620,10 +620,12 @@ struct PdaSymbolToSymbolGroupId {
// We map the delimiter character to LINE_BREAK symbol group id, and the newline character
// to WHITE_SPACE. Note that delimiter cannot be any of opening(closing) brace, bracket, quote,
// escape, comma, colon or whitespace characters.
auto constexpr newline = '\n';
auto constexpr whitespace = ' ';
auto const symbol_position =
symbol == delimiter
? static_cast<int32_t>('\n')
: (symbol == '\n' ? static_cast<int32_t>(' ') : static_cast<int32_t>(symbol));
? static_cast<int32_t>(newline)
: (symbol == newline ? static_cast<int32_t>(whitespace) : static_cast<int32_t>(symbol));
PdaSymbolGroupIdT symbol_gid =
tos_sg_to_pda_sgid[min(symbol_position, pda_sgid_lookup_size - 1)];
return stack_idx * static_cast<PdaSymbolGroupIdT>(symbol_group_id::NUM_PDA_INPUT_SGS) +
Expand Down

0 comments on commit 69dc356

Please sign in to comment.