From f6a2bbb0d054105cc4bfae500027ab300d002260 Mon Sep 17 00:00:00 2001 From: spaette Date: Wed, 29 Nov 2023 13:37:55 -0600 Subject: [PATCH] typos --- docs/src/configuration.md | 4 ++-- docs/src/external.md | 2 +- docs/src/reference/mpipreferences.md | 2 +- lib/MPIPreferences/src/parse_cray_cc.jl | 4 ++-- src/implementations.jl | 2 +- src/info.jl | 2 +- src/io.jl | 2 +- src/pointtopoint.jl | 2 +- test/test_bcast.jl | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/src/configuration.md b/docs/src/configuration.md index f4dc709ed..215605fd7 100644 --- a/docs/src/configuration.md +++ b/docs/src/configuration.md @@ -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. @@ -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) diff --git a/docs/src/external.md b/docs/src/external.md index 32d0a361a..9de8ef268 100644 --- a/docs/src/external.md +++ b/docs/src/external.md @@ -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: diff --git a/docs/src/reference/mpipreferences.md b/docs/src/reference/mpipreferences.md index 1b2649ae0..5d6ac5038 100644 --- a/docs/src/reference/mpipreferences.md +++ b/docs/src/reference/mpipreferences.md @@ -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. \ No newline at end of file + - an array of strings, with the first entry being the executable and remaining entries being additional flags that should be used with the executable. \ No newline at end of file diff --git a/lib/MPIPreferences/src/parse_cray_cc.jl b/lib/MPIPreferences/src/parse_cray_cc.jl index 32f5b96dc..d1eae42bc 100644 --- a/lib/MPIPreferences/src/parse_cray_cc.jl +++ b/lib/MPIPreferences/src/parse_cray_cc.jl @@ -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" @@ -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" diff --git a/src/implementations.jl b/src/implementations.jl index ad11c6d1e..7a6df324a 100644 --- a/src/implementations.jl +++ b/src/implementations.jl @@ -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:") diff --git a/src/info.jl b/src/info.jl index 0e8d1a075..8a3aae11b 100644 --- a/src/info.jl +++ b/src/info.jl @@ -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} diff --git a/src/io.jl b/src/io.jl index 94106caf2..c84259d69 100644 --- a/src/io.jl +++ b/src/io.jl @@ -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")) diff --git a/src/pointtopoint.jl b/src/pointtopoint.jl index fa6b2ac2b..b41a2c7a6 100644 --- a/src/pointtopoint.jl +++ b/src/pointtopoint.jl @@ -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) diff --git a/test/test_bcast.jl b/test/test_bcast.jl index dfe26c008..9eaeced31 100644 --- a/test/test_bcast.jl +++ b/test/test_bcast.jl @@ -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)