MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / perf_accumulate

Function perf_accumulate

compute/perf/perf_accumulate.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32template<class T>
33double perf_accumulate(const compute::vector<T>& data,
34 const size_t trials,
35 compute::command_queue& queue)
36{
37 perf_timer t;
38 for(size_t trial = 0; trial < trials; trial++){
39 t.start();
40 compute::accumulate(data.begin(), data.end(), T(0), queue);
41 queue.finish();
42 t.stop();
43 }
44 return t.min_time();
45}
46
47template<class T>
48void tune_accumulate(const compute::vector<T>& data,

Callers 2

tune_accumulateFunction · 0.85
mainFunction · 0.85

Calls 8

accumulateFunction · 0.85
startMethod · 0.80
stopMethod · 0.80
min_timeMethod · 0.80
TClass · 0.50
beginMethod · 0.45
endMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected