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

Method executor

benchmark/benchmark_utils.hpp:1929–1953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1927{
1928public:
1929 executor(int argc,
1930 char* argv[],
1931 size_t default_bytes,
1932 size_t default_batch_iterations,
1933 size_t default_warmup_iterations,
1934 bool default_cold = true,
1935 int default_trials = -1)
1936 {
1937 cli::Parser parser(argc, argv);
1938
1939 set_optional_parser_flags(parser,
1940 default_bytes,
1941 default_batch_iterations,
1942 default_warmup_iterations,
1943 default_cold,
1944 default_trials);
1945
1946 parser.run_and_exit_if_error();
1947
1948 benchmark::Initialize(&argc, argv);
1949
1950 parse(parser);
1951
1952 add_context();
1953 }
1954
1955 template<typename T>
1956 void queue_fn(const std::string& name, T bench_fn)

Callers

nothing calls this directly

Calls 1

run_and_exit_if_errorMethod · 0.80

Tested by

no test coverage detected