Function threading_support

Source
pub fn threading_support() -> Threading
Expand description

Level of multithreading supported by this MPI universe

See the Threading enum.

ยงExamples

See examples/init_with_threading.rs

Examples found in repository?
examples/init_with_threading.rs (line 8)
6fn main() {
7    let (_universe, threading) = mpi::initialize_with_threading(Threading::Multiple).unwrap();
8    assert_eq!(threading, mpi::environment::threading_support());
9    println!("Supported level of threading: {:?}", threading);
10}