From b3a03289436c64d7361b43b4dbf93106b10b80e8 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 3 Sep 2009 17:29:04 -0400 Subject: [PATCH] Another minor tweak in benchmark-all. --- examples/benchmark-all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/benchmark-all.py b/examples/benchmark-all.py index ed969a1d..493dd48e 100644 --- a/examples/benchmark-all.py +++ b/examples/benchmark-all.py @@ -67,7 +67,6 @@ for platform in cl.get_platforms(): } } """).build() - c = numpy.empty_like(a) exec_evt = prg.sum(queue, a.shape, a_buf, b_buf, dest_buf) exec_evt.wait() @@ -75,6 +74,7 @@ for platform in cl.get_platforms(): print "Execution time of test: %g s" % elapsed + c = numpy.empty_like(a) cl.enqueue_read_buffer(queue, dest_buf, c).wait() error = 0 for i in range(1000): -- GitLab