diff --git a/cpp/src/io/parquet/page_enc.cu b/cpp/src/io/parquet/page_enc.cu index 976559a8b38..7b0eabdcfd4 100644 --- a/cpp/src/io/parquet/page_enc.cu +++ b/cpp/src/io/parquet/page_enc.cu @@ -205,8 +205,9 @@ void __device__ calculate_frag_size(frag_init_state_s* const s, int t) } } } + + auto const total_len = block_reduce(reduce_storage).Sum(len); __syncthreads(); - auto const total_len = block_reduce(reduce_storage).Sum(len); auto const total_valid = block_reduce(reduce_storage).Sum(num_valid); if (t == 0) {