MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / time_run

Function time_run

src/driver/perf.cpp:143–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143double time_run(const program& p, const parameter_map& m, int n)
144{
145 // Run once without timing
146 p.eval(m);
147 p.finish();
148 double total = time<milliseconds>([&] {
149 for(auto i : range(n))
150 {
151 (void)i;
152 p.eval(m);
153 }
154 p.finish();
155 });
156 return total / n;
157}
158
159} // namespace MIGRAPHX_INLINE_NS
160} // namespace driver

Callers 1

runMethod · 0.85

Calls 3

rangeFunction · 0.50
evalMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected