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);