From 1db0f2c97c9afcb080f8009d79a590eb345f7729 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Wed, 6 Dec 2023 13:56:49 -0500 Subject: [PATCH] Correct invalid or missing return types --- cpp/src/io/parquet/page_delta_decode.cu | 2 +- cpp/src/text/jaccard.cu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/io/parquet/page_delta_decode.cu b/cpp/src/io/parquet/page_delta_decode.cu index 5c8dcaad422..c2a7deedb80 100644 --- a/cpp/src/io/parquet/page_delta_decode.cu +++ b/cpp/src/io/parquet/page_delta_decode.cu @@ -213,7 +213,7 @@ struct delta_byte_array_decoder { using cudf::detail::warp_size; __shared__ __align__(8) uint8_t* so_ptr; - if (start_idx >= suffixes.value_count) { return; } + if (start_idx >= suffixes.value_count) { return 0; } auto end_idx = start_idx + min(suffixes.values_per_mb, num_values); end_idx = min(end_idx, static_cast(suffixes.value_count)); diff --git a/cpp/src/text/jaccard.cu b/cpp/src/text/jaccard.cu index 95324847ea0..dacfa935d0f 100644 --- a/cpp/src/text/jaccard.cu +++ b/cpp/src/text/jaccard.cu @@ -113,7 +113,7 @@ struct sorted_intersect_fn { cudf::size_type* d_results; // warp per row - __device__ float operator()(cudf::size_type idx) const + __device__ void operator()(cudf::size_type idx) const { using warp_reduce = cub::WarpReduce; __shared__ typename warp_reduce::TempStorage temp_storage;