Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
spaette committed Nov 29, 2023
1 parent b3b83cd commit f6a2bbb
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/src/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ configures `MPIPreferences` for use on Cray systems with `srun`.
Currently `vendor` only supports Cray systems.

This populates the `library_names`, `preloads`, `preloads_env_switch` and
`cclibs` preferences. These are defermined by parsing `cc --cray-print-opts=all`
`cclibs` preferences. These are determined by parsing `cc --cray-print-opts=all`
emitted from the Cray Compiler Wrappers. Therefore `use_system_binary` needs
to be run on the target system, with the corresponding `PrgEnv` loaded.

Expand Down Expand Up @@ -157,7 +157,7 @@ preloads_env_switch = "MPICH_GPU_SUPPORT_ENABLED"

This is an example of CrayMPICH requiring `libmpi_gtl_cuda.so` to be preloaded,
unless `MPICH_GPU_SUPPORT_ENABLED=0` (the latter allowing MPI-enabled code to
run on a non-GPU enabled node without needing a seperate `LocalPreferences.toml`).
run on a non-GPU enabled node without needing a separate `LocalPreferences.toml`).

## [Using an alternative JLL-provided MPI library](@id configure_jll_binary)

Expand Down
2 changes: 1 addition & 1 deletion docs/src/external.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ccall((:cfunc2, lib), Cint, (Ptr{MPI.MPI_Comm},), comm)

## Object finalizers and `MPI.Finalize`

External libraries may allocate their own MPI handles (e.g., create or duplicate MPI communictors), which need to be cleaned up before MPI is finalized. If these are attached to [object finalizers](https://docs.julialang.org/en/v1/base/base/#Base.finalizer), they may not be guaranteed to be called before `MPI.Finalize`, which can result in an error upon program exit. (By default, MPI.jl will install an [`atexit`](https://docs.julialang.org/en/v1/base/base/#Base.atexit) hook that calls `MPI.Finalize` if it hasn't already been invoked.)
External libraries may allocate their own MPI handles (e.g., create or duplicate MPI communicators), which need to be cleaned up before MPI is finalized. If these are attached to [object finalizers](https://docs.julialang.org/en/v1/base/base/#Base.finalizer), they may not be guaranteed to be called before `MPI.Finalize`, which can result in an error upon program exit. (By default, MPI.jl will install an [`atexit`](https://docs.julialang.org/en/v1/base/base/#Base.atexit) hook that calls `MPI.Finalize` if it hasn't already been invoked.)

There are two typical solutions to this problem:

Expand Down
2 changes: 1 addition & 1 deletion docs/src/reference/mpipreferences.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ If `binary == "system"`, then the following keys are also required (otherwise th
- `abi`: The ABI of the MPI implementation. This should be one of the strings listed in [`MPIPreferences.abi`](@ref).
- `mpiexec`: either
- a string corresponding to the MPI launcher executable
- an array of strings, with the first entry being the executable and remaining entried being additional flags that should be used with the executable.
- an array of strings, with the first entry being the executable and remaining entries being additional flags that should be used with the executable.
4 changes: 2 additions & 2 deletions lib/MPIPreferences/src/parse_cray_cc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct CrayPE
gtl_dl::T,
cclibs::Vector{T}
) where T <:AbstractString = new(
"lib" * mpi_dl * ".so", # Assuming Linux -- CrayPE is only avaialbe for linux anyway
"lib" * mpi_dl * ".so", # Assuming Linux -- CrayPE is only available for linux anyway
"lib" * gtl_dl * ".so",
cclibs,
"MPICH_GPU_SUPPORT_ENABLED"
Expand All @@ -25,7 +25,7 @@ struct CrayPE
gtl_dl::Nothing,
cclibs::Vector{T}
) where T <:AbstractString = new(
"lib" * mpi_dl * ".so", # Assuming Linux -- CrayPE is only avaialbe for linux anyway
"lib" * mpi_dl * ".so", # Assuming Linux -- CrayPE is only available for linux anyway
nothing,
cclibs,
"MPICH_GPU_SUPPORT_ENABLED"
Expand Down
2 changes: 1 addition & 1 deletion src/implementations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ using PkgVersion
"""
MPI.versioninfo(io::IO=stdout)
Print a summary of the curent MPI configuration.
Print a summary of the current MPI configuration.
"""
function versioninfo(io::IO=stdout)
println(io, "MPIPreferences:")
Expand Down
2 changes: 1 addition & 1 deletion src/info.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ x = info[key]
delete!(info, key)
```
If `init=false` is used in the costructor (the default), a "null" `Info` object will be
If `init=false` is used in the constructor (the default), a "null" `Info` object will be
returned: no keys can be added to such an object.
"""
mutable struct Info <: AbstractDict{Symbol,String}
Expand Down
2 changes: 1 addition & 1 deletion src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ end
"""
MPI.File.set_atomicity(file::FileHandle, flag::Bool)
Set the consitency option for the `fh`.
Set the consistency option for the `fh`.
# External links
$(_doc_external("MPI_File_get_atomicity"))
Expand Down
2 changes: 1 addition & 1 deletion src/pointtopoint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Isend(data, dest::Integer, tag::Integer, comm::Comm, req::AbstractRequest=Reques
Starts a nonblocking send of using a serialized version of `obj` to MPI rank
`dest` of communicator `comm` using with the message tag `tag`.
Returns the commication `Request` for the nonblocking send.
Returns the communication `Request` for the nonblocking send.
"""
isend(data, comm::Comm, req::AbstractRequest = Request(); dest::Integer, tag::Integer=0) =
isend(data, dest, tag, comm, req)
Expand Down
2 changes: 1 addition & 1 deletion test/test_bcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ matsize = (17,17)

for T in MPITestTypes
# This test depends on the stability of the rng and we have observed with
# CUDA.jl that it is not gurantueed that the same number of rand calls will
# CUDA.jl that it is not guaranteed that the same number of rand calls will
# occur on each rank. (This is a hypothesis). To be sure we shall seed the rng
# just before we call rand.
Random.seed!(17)
Expand Down

0 comments on commit f6a2bbb

Please sign in to comment.