diff --git a/examples/benchmark-all.py b/examples/benchmark-all.py index ed969a1d4a1b367d7da7cd606f578a5e2bb5f0e3..493dd48eb3f3b0f8895612537d8220beed35d001 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):