Skip to content

Commit 83af5b6

Browse files
traktofonandreasnoack
authored andcommitted
Remove reducedim_initarray0 extension.
It has been dropped from Base.
1 parent b32e930 commit 83af5b6

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/mapreduce.jl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,6 @@ function Base.reducedim_initarray(A::DArray, region, v0, ::Type{R}) where {R}
7373
end
7474
Base.reducedim_initarray(A::DArray, region, v0::T) where {T} = Base.reducedim_initarray(A, region, v0, T)
7575

76-
# function Base.reducedim_initarray0(A::DArray, region, v0, ::Type{R}) where {R}
77-
# # Store reduction on lowest pids
78-
# pids = A.pids[ntuple(i -> i in region ? (1:1) : (:), ndims(A))...]
79-
# chunks = similar(pids, Future)
80-
# @sync for i in eachindex(pids)
81-
# @async chunks[i...] = remotecall_wait(() -> Base.reducedim_initarray0(localpart(A), region, v0, R), pids[i...])
82-
# end
83-
# return DArray(chunks)
84-
# end
85-
# Base.reducedim_initarray0(A::DArray, region, v0::T) where {T} = Base.reducedim_initarray0(A, region, v0, T)
86-
8776
# Compute mapreducedim of each localpart and store the result in a new DArray
8877
function mapreducedim_within(f, op, A::DArray, region)
8978
arraysize = [size(A)...]

0 commit comments

Comments
 (0)