MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / runRepeat

Method runRepeat

src/tests/functional/func-images.cpp:117–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117template <typename M> nano_time_t
118ImagesClass<M>::runRepeat(int rep, cl_int* err)
119{
120 nano_time_t time1 = getCurrentTime();
121 for (int i= 0; i < rep; i++) {
122 nano_time_t time = getCurrentTime();
123 *err = metod.run();
124 if (*err != CL_SUCCESS) {
125 return 0;
126 }
127 *err = clFinish(metod.queues[0]);
128 if (*err != CL_SUCCESS) {
129 return 0;
130 }
131 time = getCurrentTime() - time;
132 time1 = (time < time1)?time:time1 ;
133 }
134 return time1;
135}
136
137template <typename M> void
138ImagesClass<M>::images()

Callers

nothing calls this directly

Calls 2

getCurrentTimeFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected