[python-dtcwt] 156/497: avoid divide-by-zero in benchmark script

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:00 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 772c73190d4cdac9c6abac8739e473261e4421f9
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Thu Nov 7 20:41:24 2013 +0000

    avoid divide-by-zero in benchmark script
---
 scripts/benchmark_opencl.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/benchmark_opencl.py b/scripts/benchmark_opencl.py
index 83e0870..23d5d79 100644
--- a/scripts/benchmark_opencl.py
+++ b/scripts/benchmark_opencl.py
@@ -40,7 +40,7 @@ def benchmark(statement='pass', setup='pass'):
             min_time = min(times)
     except NoCLPresentError:
         print('Skipping benchmark since OpenCL is not present')
-        return 0
+        return 1
 
     t = min_time / number
     print('{0} loops, best of {1}: {2}'.format(number, repeat, format_time(t)))

-- 
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