From e44d00da9e7d411c30e1b08a6088e51967f2d3c0 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sat, 30 Oct 2010 02:00:46 -0400
Subject: [PATCH] Fix integer division issue in clmath tests (fix by Paul
 Ivanov).

---
 test/test_clmath.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/test_clmath.py b/test/test_clmath.py
index 58b6a09b..0dd32a8a 100644
--- a/test/test_clmath.py
+++ b/test/test_clmath.py
@@ -21,7 +21,7 @@ if have_cl():
 
 
 
-sizes = [10, 128, 1024, 1<<10, 1<<13]
+sizes = [10, 128, 1<<10, 1<<11, 1<<13]
 
 
 
@@ -45,6 +45,9 @@ numpy_func_names = {
 
 
 def make_unary_function_test(name, (a, b)=(0, 1), threshold=0):
+    a = float(a)
+    b = float(b)
+
     def test(ctx_getter):
         context = ctx_getter()
         queue = cl.CommandQueue(context)
-- 
GitLab