| 93 | } |
| 94 | |
| 95 | static void DoRowReduce(int iters, const string& device, const string& reduce, |
| 96 | int num_x, int num_y) { |
| 97 | testing::ItemsProcessed(static_cast<int64>(iters) * num_x * num_y); |
| 98 | testing::BytesProcessed(static_cast<int64>(iters) * num_x * num_y * |
| 99 | sizeof(float)); |
| 100 | test::Benchmark(device, RowReduce(reduce, num_x, num_y)).Run(iters); |
| 101 | } |
| 102 | |
| 103 | static void DoColReduce(int iters, const string& device, const string& reduce, |
| 104 | int num_x, int num_y) { |
no test coverage detected