Skip to content

Commit 46fb065

Browse files
committedJul 28, 2024·
typos
1 parent 0451d00 commit 46fb065

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed
 

‎docs/src/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ equal the number of processes.
5959
* `localpart(d::DArray)` obtains the locally-stored portion
6060
of a `DArray`.
6161

62-
* Localparts can be retrived and set via the indexing syntax too.
62+
* Localparts can be retrieved and set via the indexing syntax too.
6363
Indexing via symbols is used for this, specifically symbols `:L`,`:LP`,`:l`,`:lp` which
6464
are all equivalent. For example, `d[:L]` returns the localpart of `d`
6565
while `d[:L]=v` sets `v` as the localpart of `d`.
@@ -314,7 +314,7 @@ The following primitives can be used in SPMD mode.
314314

315315
- `recvfrom_any(; tag=nothing)` - receives data from any `pid`
316316

317-
- `barrier(;pids=procs(), tag=nothing)` - all tasks wait and then proceeed
317+
- `barrier(;pids=procs(), tag=nothing)` - all tasks wait and then proceed
318318

319319
- `bcast(data, pid; tag=nothing, pids=procs())` - broadcasts the same data over `pids` from `pid`
320320

‎src/broadcast.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ end
5656
# We purposefully only specialise `copyto!`,
5757
# Broadcast implementation that defers to the underlying BroadcastStyle. We can't
5858
# assume that `getindex` is fast, furthermore we can't assume that the distribution of
59-
# DArray accross workers is equal or that the underlying array type is consistent.
59+
# DArray across workers is equal or that the underlying array type is consistent.
6060
#
6161
# Implementation:
6262
# - first distribute all arguments

‎src/darray.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ import Base: checkbounds_indices
814814
# from all other arrays, wherein we simply iterate over the source array’s
815815
# elements. You need to *both* know which elements in `J` were skipped
816816
# (`indexin_mask`) and which dimensions should match up (`restrict_indices`)
817-
# 4. If `K` doesnt correspond to an entire chunk, reinterpret `K` in terms of
817+
# 4. If `K` doesn't correspond to an entire chunk, reinterpret `K` in terms of
818818
# the local portion of the source array
819819
function Base.setindex!(a::Array, s::SubDArray,
820820
I::Union{UnitRange{Int},Colon,Vector{Int},StepRange{Int,Int}}...)

‎src/mapreduce.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function mapreducedim_within(f, op, A::DArray, region)
6363
tuple(arraysize...), procs(A), indx, cuts)
6464
end
6565

66-
# Compute mapreducedim accros the processes. This should be done after mapreducedim
66+
# Compute mapreducedim across the processes. This should be done after mapreducedim
6767
# has been run on each localpart with mapreducedim_within. Eventually, we might
6868
# want to write mapreducedim_between! as a binary reduction.
6969
function mapreducedim_between!(f, op, R::DArray, A::DArray, region)

‎src/serialize.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ end
5252

5353
DestinationSerializer(f::Function, pids::Array) = DestinationSerializer(f, pids, nothing)
5454

55-
# contructs a DestinationSerializer after verifying that the shape of pids.
55+
# constructs a DestinationSerializer after verifying that the shape of pids.
5656
function verified_destination_serializer(f::Function, pids::Array, verify_size)
5757
@assert size(pids) == verify_size
5858
return DestinationSerializer(f, pids)

‎test/darray.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ using Random
2828
close(DA)
2929
end
3030

31-
@testset "Create darray with unconventional distribution and distibute like it" begin
31+
@testset "Create darray with unconventional distribution and distribute like it" begin
3232
block = 10
3333
Y = nworkers() * block
3434
X = nworkers() * block
@@ -66,7 +66,7 @@ using Random
6666
@test DistributedArrays.defaultdist(50,4) == [1,14,27,39,51]
6767
end
6868

69-
@testset "Inhomogenous typeof(localpart)" begin
69+
@testset "Inhomogeneous typeof(localpart)" begin
7070
block = 10
7171
Y = nworkers() * block
7272
X = nworkers() * block
@@ -531,7 +531,7 @@ check_leaks()
531531
close(A)
532532
end
533533

534-
@testset "2D dzeros default element type, Dims constuctor" begin
534+
@testset "2D dzeros default element type, Dims constructor" begin
535535
A = dzeros((10,10))
536536
@test A == zeros((10,10))
537537
@test eltype(A) == Float64
@@ -582,7 +582,7 @@ check_leaks()
582582
close(A)
583583
end
584584

585-
@testset "2D dones default element type, Dims constuctor" begin
585+
@testset "2D dones default element type, Dims constructor" begin
586586
A = dones((10,10))
587587
@test A == ones((10,10))
588588
@test eltype(A) == Float64

‎test/spmd.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ spmd(spmd_test1)
104104
d_out[:L] = localsum
105105
end
106106

107-
# run foo_spmd on all workers, many of them, all concurrently using implictly different contexts.
107+
# run foo_spmd on all workers, many of them, all concurrently using implicitly different contexts.
108108
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

@@ -117,7 +117,7 @@ end
117117

118118
println("SPMD: Passed testing of spmd function run concurrently")
119119

120-
# run concurrently with explictly different contexts
120+
# run concurrently with explicitly different contexts
121121

122122
# define the function everywhere
123123
@everywhere function foo_spmd2(d_in, d_out, n)

0 commit comments

Comments
 (0)
Please sign in to comment.