Function 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 9)
4fn main() {
5    let (version, subversion) = mpi::environment::version();
6    println!("This is MPI-{}.{}.", version, subversion);
7    println!("{}", mpi::environment::library_version().unwrap());
8    let _universe = mpi::initialize().unwrap();
9    println!("{}", mpi::environment::processor_name().unwrap());
10
11    #[cfg(not(msmpi))]
12    assert!(
13        version >= 3,
14        "Rust MPI bindings require MPI standard 3.0 and up."
15    );
16}