Skip to content

Commit 00cde3f

Browse files
committed
EdgeDetection test now reports % speedup
1 parent 3e72782 commit 00cde3f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib

tests/Primitives/EdgeDetection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ TEST_CASE("Primitive_FindZeroCrossings")
8787
size_t gpulen = ldet.FindZeroCrossings(wfm, threshold, cmdBuf, queue);
8888
start = GetTime();
8989
gpulen = ldet.FindZeroCrossings(wfm, threshold, cmdBuf, queue);
90-
dt = GetTime() - start;
91-
LogNotice("GPU: %.3f ms, %zu edges\n", dt*1000, gpulen);
90+
double gpudt = GetTime() - start;
91+
LogNotice("GPU: %.3f ms, %zu edges, %.2fx speedup\n", gpudt*1000, gpulen, dt / gpudt);
9292

9393
//Don't count the final memcpy against run time since we assume the buffer is going to get used on the GPU
9494
gpuedges.PrepareForCpuAccess();

0 commit comments

Comments
 (0)