Skip to content

Commit

Permalink
Fix bitonic test dtype and RNG invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 15, 2015
1 parent 83445bb commit 2181288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_algorithm.py
Expand Up @@ -856,7 +856,7 @@ def test_bitonic_sort(ctx_factory, size, dtype):
import pyopencl.clrandom as clrandom
from pyopencl.bitonic_sort import BitonicSort

s = clrandom.rand(queue, (2, size, 3,), dtype, luxury=None, a=0, b=1.0)
s = clrandom.rand(queue, (2, size, 3,), dtype, luxury=None, a=0, b=239482333)
sorter = BitonicSort(ctx)
sgs, evt = sorter(s.copy(), axis=1)
assert np.array_equal(np.sort(s.get(), axis=1), sgs.get())
Expand All @@ -882,7 +882,7 @@ def test_bitonic_argsort(ctx_factory, size, dtype):
from pyopencl.bitonic_sort import BitonicSort

index = cl_array.arange(queue, 0, size, 1, dtype=np.int32)
m = clrandom.rand(queue, (size,), np.float32, luxury=None, a=0, b=1.0)
m = clrandom.rand(queue, (size,), dtype, luxury=None, a=0, b=239432234)

sorterm = BitonicSort(ctx)

Expand Down

0 comments on commit 2181288

Please sign in to comment.