MCPcopy Create free account
hub / github.com/Niko1221/Strata / Timer

Method Timer

engine/src/kernels/qsa_rows_bench.cpp:71–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69struct Timer {
70 cudaEvent_t e0 = nullptr, e1 = nullptr;
71 Timer() { ck(cudaEventCreate(&e0), "event"); ck(cudaEventCreate(&e1), "event"); }
72 ~Timer() { cudaEventDestroy(e0); cudaEventDestroy(e1); }
73 // microseconds per call over `iters` back-to-back calls, warmed; the median of three such runs
74 template <typename F> double us(F&& f, int iters) {

Calls 2

ckFunction · 0.70
cudaEventCreateFunction · 0.50