@@ -1251,7 +1251,7 @@ end
12511251 n3 = rand(1 : 100 )
12521252 vh = rand(Float32, n1, n2, n3)
12531253 v = array_from_host(vh)
1254-
1254+
12551255 s = AK. accumulate(+ , v; init= Float32(0 ), dims= dims)
12561256 sh = Array(s)
12571257 @test all(sh .≈ accumulate(+ , vh, init= Float32(0 ), dims= dims))
@@ -1386,7 +1386,7 @@ end
13861386 AK. searchsortedfirst(v, x, by= abs, lt= (> ), rev= true , block_size= 64 )
13871387 AK. searchsortedlast!(ix, v, x, by= abs, lt= (> ), rev= true , block_size= 64 )
13881388 AK. searchsortedlast(v, x, by= abs, lt= (> ), rev= true , block_size= 64 )
1389-
1389+
13901390 vh = Array(v)
13911391 xh = Array(x)
13921392 ixh = similar(xh, Int32)
@@ -1627,7 +1627,9 @@ end
16271627 for _ in 1 : 100
16281628 num_elems = rand(1 : 100_000 )
16291629 v = array_from_host(rand(Float32, num_elems))
1630- @test AK. count(x-> x> 0.5 , v) == count(x-> x> 0.5 , Array(v))
1630+ gpucount = AK. count(x-> x> 0.5 , v)
1631+ cpucount = count(x-> x> 0.5 , Array(v))
1632+ @test gpucount == cpucount
16311633 end
16321634
16331635 for _ in 1 : 100
@@ -1665,7 +1667,7 @@ end
16651667
16661668
16671669@testset " cumsum" begin
1668-
1670+
16691671 Random. seed!(0 )
16701672
16711673 # Simple correctness tests
@@ -1714,7 +1716,7 @@ end
17141716
17151717
17161718@testset " cumprod" begin
1717-
1719+
17181720 Random. seed!(0 )
17191721
17201722 # Simple correctness tests
0 commit comments