From 6148cb2c7d502c524999081f15ba352316b2bbb0 Mon Sep 17 00:00:00 2001 From: Martin Marenz Date: Mon, 18 Sep 2023 10:33:47 +0200 Subject: [PATCH] Fix code style in shift benchmark --- cpp/benchmarks/copying/shift.cu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/benchmarks/copying/shift.cu b/cpp/benchmarks/copying/shift.cu index 7a80e0d598d..f7f1858bd5a 100644 --- a/cpp/benchmarks/copying/shift.cu +++ b/cpp/benchmarks/copying/shift.cu @@ -69,15 +69,15 @@ static void BM_shift(benchmark::State& state) auto output = cudf::shift(input, offset, *fill); } - auto const elems_read = (size - offset); - auto const bytes_read = elems_read * sizeof(int); + auto const elems_read = (size - offset); + auto const bytes_read = elems_read * sizeof(int); // If 'use_validity' is false, the fill value is a number, and the entire column // (excluding the null bitmask) needs to be written. On the other hand, if 'use_validity' // is true, only the elements that can be shifted are written, along with the full null bitmask. auto const elems_written = use_validity ? (size - offset) : size; auto const bytes_written = elems_written * sizeof(int); - auto const null_bytes = use_validity ? 2 * cudf::bitmask_allocation_size_bytes(size) : 0; + auto const null_bytes = use_validity ? 2 * cudf::bitmask_allocation_size_bytes(size) : 0; state.SetBytesProcessed(static_cast(state.iterations()) * (bytes_written + bytes_read + null_bytes));