Skip to content

Commit

Permalink
refactor lut sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
elstehle committed Jul 13, 2022
1 parent 17dcbfd commit 6fdd24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/io/fst/lookup_tables.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class TransducerLookupTable {
}

// Check whether runtime-provided table size exceeds the compile-time given max. table size
if (out_symbols.size() > MAX_TABLE_SIZE) { CUDF_FAIL("Unsupported translation table"); }
CUDF_EXPECTS(out_symbols.size() <= MAX_TABLE_SIZE, "Unsupported translation table");

// Prepare host-side data to be copied and passed to the device
std::copy(std::cbegin(out_symbol_offsets),
Expand Down

0 comments on commit 6fdd24a

Please sign in to comment.