1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use msgpass::*; fn main() -> Result<(), StrError> { mpi_init()?; let mut comm = Communicator::new()?; let rank = comm.rank()?; if rank == 0 { comm.abort(0)?; } mpi_finalize()?; if rank == 0 { println!("... success ..."); } Ok(()) }