From 55e072e5665d89bc4e0273530ad9ba9dc2c09995 Mon Sep 17 00:00:00 2001 From: David Wendt Date: Thu, 30 Sep 2021 10:58:25 -0400 Subject: [PATCH 1/2] Fix cudf_assert in cudf::io::orc::gpu::gpuDecodeOrcColumnData --- cpp/src/io/orc/stripe_data.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/io/orc/stripe_data.cu b/cpp/src/io/orc/stripe_data.cu index f566a4b53b5..2cf38e8175a 100644 --- a/cpp/src/io/orc/stripe_data.cu +++ b/cpp/src/io/orc/stripe_data.cu @@ -1728,7 +1728,7 @@ __global__ void __launch_bounds__(block_size) // Since the offsets column in cudf is `size_type`, // If the limit exceeds then value will be 0, which is Fail. cudf_assert( - (s->vals.u64[t + vals_skipped] > std::numeric_limits::max()) and + (s->vals.u64[t + vals_skipped] <= std::numeric_limits::max()) and "Number of elements is more than what size_type can handle"); list_child_elements = s->vals.u64[t + vals_skipped]; static_cast(data_out)[row] = list_child_elements; From ad7df06d87dc462334fe9539a7e103056556d2c8 Mon Sep 17 00:00:00 2001 From: David Wendt Date: Fri, 1 Oct 2021 10:15:51 -0400 Subject: [PATCH 2/2] remove unused parameter --- cpp/src/io/json/json_gpu.cu | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cpp/src/io/json/json_gpu.cu b/cpp/src/io/json/json_gpu.cu index 673d9054631..64761ca4e92 100644 --- a/cpp/src/io/json/json_gpu.cu +++ b/cpp/src/io/json/json_gpu.cu @@ -142,9 +142,7 @@ __inline__ __device__ T decode_value(char const* begin, } template ()>* = nullptr> -__inline__ __device__ T decode_value(char const* begin, - char const* end, - parse_options_view const& opts) +__inline__ __device__ T decode_value(char const* begin, char const* end, parse_options_view const&) { return to_duration(begin, end); }