From 2ac445d72a5bdb4f14869d11efecace20e844099 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Tue, 14 May 2019 17:20:47 -0400 Subject: [PATCH] fix tests on julia v1.2 --- src/darray.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/darray.jl b/src/darray.jl index 58ec943..c4b12b1 100644 --- a/src/darray.jl +++ b/src/darray.jl @@ -672,6 +672,9 @@ function Base.isassigned(D::DArray, i::Integer...) end end +Base.copy(d::SubDArray) = copyto!(similar(d), d) +Base.copy(d::SubDArray{<:Any,2}) = copyto!(similar(d), d) + function Base.copyto!(dest::SubOrDArray, src::AbstractArray) asyncmap(procs(dest)) do p remotecall_fetch(p) do