| 91 | } |
| 92 | |
| 93 | static void Do3DYCumsum(int iters, const string& device, int num_x, int num_y, |
| 94 | bool reverse = false) { |
| 95 | testing::ItemsProcessed(static_cast<int64>(iters) * num_x * num_y); |
| 96 | testing::BytesProcessed(static_cast<int64>(iters) * num_x * num_y * |
| 97 | sizeof(float)); |
| 98 | test::Benchmark(device, ThreeDYCumsum(num_x, num_y, reverse)).Run(iters); |
| 99 | } |
| 100 | |
| 101 | static void BM_OneDCumsumGPU(int iters, int num_x) { |
| 102 | LargeOneDimensional<float>(iters, "gpu", num_x); |
no test coverage detected