[python-dtcwt] 181/497: opencl: add non-POT dtcwt to benchmark
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:02 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 a98324275fd7119b5e7d0fb60b9ca77f97c06be8
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date: Sun Nov 10 14:34:33 2013 +0000
opencl: add non-POT dtcwt to benchmark
---
scripts/benchmark_opencl.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/scripts/benchmark_opencl.py b/scripts/benchmark_opencl.py
index 9d57687..9fea9c0 100644
--- a/scripts/benchmark_opencl.py
+++ b/scripts/benchmark_opencl.py
@@ -84,5 +84,14 @@ def main():
print('Speed up: x{0:.2f}'.format(a/b))
print('=====')
+ print('Running NumPy dtwavexfm2 (non-POT)...')
+ a = benchmark('dtwavexfm2(lena[:510,:480])',
+ 'from dtcwt import dtwavexfm2; from __main__ import lena')
+ print('Running OpenCL dtwavexfm2 (non-POT)...')
+ b = benchmark('dtwavexfm2(lena[:510,:480])',
+ 'from dtcwt.opencl.transform2d import dtwavexfm2; from __main__ import lena')
+ print('Speed up: x{0:.2f}'.format(a/b))
+ print('=====')
+
if __name__ == '__main__':
main()
--
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