Skip to content

Commit

Permalink
Fix integer division issue in clmath tests (fix by Paul Ivanov).
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Oct 30, 2010
1 parent 0df882e commit e44d00d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_clmath.py
Expand Up @@ -21,7 +21,7 @@ def have_cl():



sizes = [10, 128, 1024, 1<<10, 1<<13]
sizes = [10, 128, 1<<10, 1<<11, 1<<13]



Expand All @@ -45,6 +45,9 @@ def has_double_support(dev):


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)
Expand Down

0 comments on commit e44d00d

Please sign in to comment.