Skip to content

Commit

Permalink
Update cpp/src/io/orc/reader_impl.cu
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel authored Mar 21, 2022
1 parent d4e7d10 commit be4a0ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/src/io/orc/reader_impl.cu
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ void decompress_check(device_span<gpu_inflate_status_s> stats,
bool* any_block_failure,
rmm::cuda_stream_view stream)
{
if (stats.empty()) { retrun; } // early exit for empty stats

dim3 block(128);
dim3 grid(cudf::util::div_rounding_up_safe(stats.size(), static_cast<size_t>(block.x)));
decompress_check_kernel<<<grid, block, 0, stream.value()>>>(stats, any_block_failure);
Expand Down

0 comments on commit be4a0ed

Please sign in to comment.