[python-dtcwt] 441/497: make OpenCL benchmark run in absence of OpenCL
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.
commit 77dd4ce8c9d33411812a25d38422a5ff43e5b405
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date: Mon May 12 12:48:20 2014 +0100
make OpenCL benchmark run in absence of OpenCL
This may seem a strange thing to do but the numpy-only benchmarks are
still useful. The speedup numbers, however, are meaningless.
---
scripts/benchmark_opencl.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scripts/benchmark_opencl.py b/scripts/benchmark_opencl.py
index fe6730a..45fda79 100644
--- a/scripts/benchmark_opencl.py
+++ b/scripts/benchmark_opencl.py
@@ -52,8 +52,7 @@ def main():
queue = get_default_queue()
print('Using context: {0}'.format(queue.context))
except NoCLPresentError:
- print('Skipping benchmark since OpenCL is not present')
- return
+ print('Skipping OpenCL benchmark since OpenCL is not present')
print('Running NumPy colfilter...')
a = benchmark('colfilter(lena, h1o)',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git
More information about the debian-science-commits
mailing list