| 52 | CREATE_BENCHMARK(type, 10000) |
| 53 | |
| 54 | int main(int argc, char* argv[]) |
| 55 | { |
| 56 | benchmark_utils::executor executor(argc, argv, 128 * benchmark_utils::MiB, 10, 5); |
| 57 | |
| 58 | #ifndef BENCHMARK_CONFIG_TUNING |
| 59 | // Tuned types |
| 60 | BENCHMARK_TYPE(rocprim::int128_t) |
| 61 | BENCHMARK_TYPE(int64_t) |
| 62 | BENCHMARK_TYPE(int) |
| 63 | BENCHMARK_TYPE(short) |
| 64 | BENCHMARK_TYPE(int8_t) |
| 65 | BENCHMARK_TYPE(double) |
| 66 | BENCHMARK_TYPE(float) |
| 67 | BENCHMARK_TYPE(rocprim::half) |
| 68 | |
| 69 | #ifndef BENCHMARK_AUTOTUNED_TYPES_ONLY |
| 70 | // Not tuned types |
| 71 | BENCHMARK_TYPE(uint8_t) |
| 72 | BENCHMARK_TYPE(rocprim::uint128_t) |
| 73 | |
| 74 | // Not tuned custom types |
| 75 | using custom_float2 = common::custom_type<float, float>; |
| 76 | using custom_double2 = common::custom_type<double, double>; |
| 77 | |
| 78 | BENCHMARK_TYPE(custom_float2) |
| 79 | BENCHMARK_TYPE(custom_double2) |
| 80 | #endif |
| 81 | #endif |
| 82 | |
| 83 | executor.run(); |
| 84 | } |