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