Function mpi::environment::processor_name
source · pub fn processor_name() -> Result<String, FromUtf8Error>
Expand description
Names the processor that the calling process is running on.
Can return an Err
if the processor name is not a UTF-8 string.
Examples found in repository?
examples/env_inq.rs (line 8)
3 4 5 6 7 8 9 10 11 12 13 14 15
fn main() {
let (version, subversion) = mpi::environment::version();
println!("This is MPI-{}.{}.", version, subversion);
println!("{}", mpi::environment::library_version().unwrap());
let _universe = mpi::initialize().unwrap();
println!("{}", mpi::environment::processor_name().unwrap());
#[cfg(not(msmpi))]
assert!(
version >= 3,
"Rust MPI bindings require MPI standard 3.0 and up."
);
}