Skip to content

Commit 244c618

Browse files
committed
Use GPUArrays accumulation implementation
1 parent 205c238 commit 244c618

File tree

3 files changed

+0
-268
lines changed

3 files changed

+0
-268
lines changed

src/CUDA.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ include("texture.jl")
108108
include("indexing.jl")
109109
include("broadcast.jl")
110110
include("mapreduce.jl")
111-
include("accumulate.jl")
112111
include("reverse.jl")
113112
include("iterator.jl")
114113
include("sorting.jl")

src/accumulate.jl

Lines changed: 0 additions & 234 deletions
This file was deleted.

test/base/array.jl

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -413,39 +413,6 @@ end
413413
@test view(b, :, 1, :) isa StridedCuArray
414414
end
415415

416-
@testset "accumulate" begin
417-
for n in (0, 1, 2, 3, 10, 10_000, 16384, 16384+1) # small, large, odd & even, pow2 and not
418-
@test testf(x->accumulate(+, x), rand(n))
419-
@test testf(x->accumulate(+, x), rand(n,2))
420-
@test testf((x,y)->accumulate(+, x; init=y), rand(n), rand())
421-
end
422-
423-
# multidimensional
424-
for (sizes, dims) in ((2,) => 2,
425-
(3,4,5) => 2,
426-
(1, 70, 50, 20) => 3)
427-
@test testf(x->accumulate(+, x; dims=dims), rand(Int, sizes))
428-
@test testf(x->accumulate(+, x), rand(Int, sizes))
429-
end
430-
431-
# using initializer
432-
for (sizes, dims) in ((2,) => 2,
433-
(3,4,5) => 2,
434-
(1, 70, 50, 20) => 3)
435-
@test testf((x,y)->accumulate(+, x; dims=dims, init=y), rand(Int, sizes), rand(Int))
436-
@test testf((x,y)->accumulate(+, x; init=y), rand(Int, sizes), rand(Int))
437-
end
438-
439-
# in place
440-
@test testf(x->(accumulate!(+, x, copy(x)); x), rand(2))
441-
442-
# specialized
443-
@test testf(cumsum, rand(2))
444-
@test testf(cumprod, rand(2))
445-
446-
@test_throws ArgumentError("accumulate does not support the keyword arguments [:bad_kwarg]") accumulate(+, CUDA.rand(1024); bad_kwarg="bad")
447-
end
448-
449416
@testset "logical indexing" begin
450417
@test CuArray{Int}(undef, 2)[CUDA.ones(Bool, 2)] isa CuArray
451418
@test CuArray{Int}(undef, 2, 2)[CUDA.ones(Bool, 2, 2)] isa CuArray

0 commit comments

Comments
 (0)