MCPcopy Create free account
hub / github.com/ROCm/rocPRIM / main

Function main

benchmark/benchmark_device_adjacent_difference.cpp:56–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected