You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MPIArray{T,N,A}(comm::MPI.Comm, partitions::NTuple{N,<:Integer}, sizes::Vararg{<:Integer,N}) where {T,N,A} =MPIArray{T,N,A}(comm, distribute.(sizes, partitions)...)
100
-
MPIArray{T,N,A}(::UndefInitializer, sizes::Vararg{<:Integer,N}) where {T,N,A} =MPIArray{T,N,A}(MPI.COMM_WORLD, (ones(Int, N-1)..., MPI.Comm_size(MPI.COMM_WORLD)), sizes...)
99
+
MPIArray{T,N,A}(comm::MPI.Comm, partitions::NTuple{N,<:Integer}, sizes::Vararg{Integer,N}) where {T,N,A} =MPIArray{T,N,A}(comm, distribute.(sizes, partitions)...)
100
+
MPIArray{T,N,A}(::UndefInitializer, sizes::Vararg{Integer,N}) where {T,N,A} =MPIArray{T,N,A}(MPI.COMM_WORLD, (ones(Int, N-1)..., MPI.Comm_size(MPI.COMM_WORLD)), sizes...)
101
101
102
102
end
103
103
@@ -120,9 +120,9 @@ end
120
120
121
121
MPIArray(init::Function, partition_sizes::Vararg{AbstractVector{<:Integer}, N};T=nothing,A=nothing) where N =MPIArray(MPI.COMM_WORLD, init, partition_sizes...;T=T,A=A)
122
122
123
-
MPIArray(init::Function, partitions::NTuple{N,<:Integer}, sizes::Vararg{<:Integer,N};T=nothing, A=nothing) where N =MPIArray(init, distribute.(sizes, partitions)...; T=T,A=A)
123
+
MPIArray(init::Function, partitions::NTuple{N,<:Integer}, sizes::Vararg{Integer,N};T=nothing, A=nothing) where N =MPIArray(init, distribute.(sizes, partitions)...; T=T,A=A)
124
124
125
-
MPIArray(init::Function, sizes::Vararg{<:Integer,N}; T=nothing, A=nothing) where N =MPIArray(init, (ones(Int, N-1)..., MPI.Comm_size(MPI.COMM_WORLD)), sizes...; T=T, A=A)
125
+
MPIArray(init::Function, sizes::Vararg{Integer,N}; T=nothing, A=nothing) where N =MPIArray(init, (ones(Int, N-1)..., MPI.Comm_size(MPI.COMM_WORLD)), sizes...; T=T, A=A)
0 commit comments