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

Function BM_kernel_launch

benchmark/benchmark_config_dispatch.cpp:57–69  ·  view source on GitHub ↗

An empty kernel launch for baseline

Source from the content-addressed store, hash-verified

55
56// An empty kernel launch for baseline
57static void BM_kernel_launch(benchmark_utils::state&& state)
58{
59 const auto& stream = state.stream;
60
61 state.run(
62 [&]
63 {
64 empty_kernel<<<dim3(1), dim3(1), 0, stream>>>();
65 HIP_CHECK(hipGetLastError());
66 });
67
68 state.set_throughput(1, sizeof(char));
69}
70
71#define CREATE_BENCHMARK(ST, SK) \
72 executor.queue_fn( \

Callers

nothing calls this directly

Calls 2

set_throughputMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected