| 117 | } |
| 118 | |
| 119 | static void Do3DXZReduce(int iters, const string& device, const string& reduce, |
| 120 | int num_x, int num_y) { |
| 121 | testing::ItemsProcessed(static_cast<int64>(iters) * num_x * num_y); |
| 122 | testing::BytesProcessed(static_cast<int64>(iters) * num_x * num_y * |
| 123 | sizeof(float)); |
| 124 | test::Benchmark(device, ThreeDXZReduce(reduce, num_x, num_y)).Run(iters); |
| 125 | } |
| 126 | |
| 127 | static void BM_Sum2DToScalarGPU(int iters, int num_x, int num_y) { |
| 128 | ReduceToScalar<float>(iters, "gpu", "Sum", num_x, num_y); |
no test coverage detected