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

Function main

benchmark/benchmark_device_transform.cpp:50–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 executor.queue_instance(device_transform_benchmark<T, false, true>());
49
50int main(int argc, char* argv[])
51{
52 benchmark_utils::executor executor(argc, argv, 512 * benchmark_utils::MiB, 10, 5);
53
54#ifndef BENCHMARK_CONFIG_TUNING
55 // Tuned types
56 CREATE_BENCHMARK(rocprim::int128_t)
57 CREATE_BENCHMARK(int64_t)
58 CREATE_BENCHMARK(int)
59 CREATE_BENCHMARK(short)
60 CREATE_BENCHMARK(int8_t)
61 CREATE_BENCHMARK(double)
62 CREATE_BENCHMARK(float)
63 CREATE_BENCHMARK(rocprim::half)
64
65 #ifndef BENCHMARK_AUTOTUNED_TYPES_ONLY
66 // Not tuned types
67 CREATE_BENCHMARK(uint8_t)
68 CREATE_BENCHMARK(rocprim::uint128_t)
69
70 CREATE_BENCHMARK_BINARY(int)
71 CREATE_BENCHMARK_BINARY(float)
72 CREATE_BENCHMARK_BINARY(int8_t)
73 CREATE_BENCHMARK_BINARY(rocprim::int128_t)
74
75 // Not tuned custom types
76 using custom_float2 = common::custom_type<float, float>;
77 using custom_double2 = common::custom_type<double, double>;
78
79 CREATE_BENCHMARK(custom_float2)
80 CREATE_BENCHMARK(custom_double2)
81 CREATE_BENCHMARK_BINARY(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