https://github.com/JuliaParallel/MPI.jl
Revision a0861c312a9c78b7d4d1827b2ddcf5dbfedf4814 authored by Johannes Blaschke on 05 November 2023, 02:15:41 UTC, committed by Johannes Blaschke on 05 November 2023, 02:15:41 UTC
2 parent s a145973 + f512a3d
Raw File
Tip revision: a0861c312a9c78b7d4d1827b2ddcf5dbfedf4814 authored by Johannes Blaschke on 05 November 2023, 02:15:41 UTC
Merge branch 'master' into jpb/fix_gtl
Tip revision: a0861c3
misc.jl
"""
    Get_processor_name()

Return the name of the processor, as a `String`.

# External links
$(_doc_external("MPI_Get_processor_name"))
"""
function Get_processor_name()
    proc_name = Array{UInt8}(undef, API.MPI_MAX_PROCESSOR_NAME)
    name_len = Ref{Cint}(0)
    API.MPI_Get_processor_name(proc_name, name_len)
    @assert name_len[] <= API.MPI_MAX_PROCESSOR_NAME
    GC.@preserve proc_name unsafe_string(pointer(proc_name))
end
back to top