Skip to content

Commit 2f2ef7b

Browse files
traktofonandreasnoack
authored andcommitted
femtocleaning
This caught some additional deprecations.
1 parent cbc570b commit 2f2ef7b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/linalg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function Base.copy(D::Adjoint{T,<:DArray{T,2}}) where T
22
DArray(reverse(size(D)), procs(D)) do I
33
lp = Array{T}(map(length, I))
44
rp = convert(Array, D[reverse(I)...])
5-
ctranspose!(lp, rp)
5+
adjoint!(lp, rp)
66
end
77
end
88

src/sort.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function compute_boundaries(d::DVector{T}; kwargs...) where T
6666

6767
results = asyncmap(p -> remotecall_fetch(sample_n_setup_ref, p, d, sample_sz_on_wrkr; kwargs...), pids)
6868

69-
samples = Array{T}(0)
69+
samples = Array{T}(undef, 0)
7070
for x in results
7171
append!(samples, x[1])
7272
end

test/spmd.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ spmd(spmd_test1)
105105
end
106106

107107
# run foo_spmd on all workers, many of them, all concurrently using implictly different contexts.
108-
in_arrays = map(x->DArray(I->fill(myid(), (map(length,I)...)), (nworkers(), 2), workers(), [nworkers(),1]), 1:8)
108+
in_arrays = map(x->DArray(I->fill(myid(), (map(length,I)...,)), (nworkers(), 2), workers(), [nworkers(),1]), 1:8)
109109
out_arrays = map(x->ddata(), 1:8)
110110

111111
@sync for i in 1:8
@@ -151,7 +151,7 @@ println("SPMD: Passed testing of spmd function run concurrently")
151151
end
152152

153153

154-
in_arrays = map(x->DArray(I->fill(myid(), (map(length,I)...)), (nworkers(), 2), workers(), [nworkers(),1]), 1:8)
154+
in_arrays = map(x->DArray(I->fill(myid(), (map(length,I)...,)), (nworkers(), 2), workers(), [nworkers(),1]), 1:8)
155155
out_arrays = map(x->ddata(), 1:8)
156156
contexts = map(x->context(workers()), 1:8)
157157

0 commit comments

Comments
 (0)