mpi 0.8.0

Message Passing Interface bindings for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![deny(warnings)]

use mpi::traits::*;

fn main() {
    let universe = mpi::initialize().unwrap();

    let comm = universe.world();

    let new_rank = comm.cartesian_map(&[2, comm.size() / 4], &[false, false]);

    println!("{} -> {:?}", comm.rank(), new_rank);
}