From 0ecc50cd53173914f312ca2a0ff3dcc0daf1885c Mon Sep 17 00:00:00 2001 From: Martin Marenz Date: Fri, 22 Sep 2023 16:46:58 +0200 Subject: [PATCH] Run clang-format on transpose benchmark --- cpp/benchmarks/transpose/transpose.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/cpp/benchmarks/transpose/transpose.cpp b/cpp/benchmarks/transpose/transpose.cpp index b9ec5055451..da602bd9783 100644 --- a/cpp/benchmarks/transpose/transpose.cpp +++ b/cpp/benchmarks/transpose/transpose.cpp @@ -42,7 +42,7 @@ static void BM_transpose(benchmark::State& state) } // Collect memory statistics. - auto const bytes_read = input.num_columns() * input.num_rows() * (sizeof(int32_t)); + auto const bytes_read = input.num_columns() * input.num_rows() * (sizeof(int32_t)); auto const bytes_written = bytes_read; // Account for nullability in input and output. auto const null_bytes = @@ -54,12 +54,15 @@ static void BM_transpose(benchmark::State& state) class Transpose : public cudf::benchmark {}; -#define TRANSPOSE_BM_BENCHMARK_DEFINE(name) \ - BENCHMARK_DEFINE_F(Transpose, name)(::benchmark::State & state) { BM_transpose(state); } \ - BENCHMARK_REGISTER_F(Transpose, name) \ - ->RangeMultiplier(4) \ - ->Range(4, 4 << 13) \ - ->UseManualTime() \ +#define TRANSPOSE_BM_BENCHMARK_DEFINE(name) \ + BENCHMARK_DEFINE_F(Transpose, name)(::benchmark::State & state) \ + { \ + BM_transpose(state); \ + } \ + BENCHMARK_REGISTER_F(Transpose, name) \ + ->RangeMultiplier(4) \ + ->Range(4, 4 << 13) \ + ->UseManualTime() \ ->Unit(benchmark::kMillisecond); TRANSPOSE_BM_BENCHMARK_DEFINE(transpose_simple);