Expand description
Attribute caching on communicators. Mirrors rsmpi’s attribute module: a
keyval identifies a slot, and arbitrary typed values can be cached on a
communicator and retrieved later.
use mpi::attribute::{create_keyval, CommunicatorAttributes};
let key = create_keyval();
world.set_attr(&key, 123u64);
assert_eq!(world.get_attr::<u64>(&key), Some(123));Modules§
- traits
- Re-exports for
use mpi::attribute::traits::*;.
Structs§
- Comm
Keyval - A key identifying an attribute slot (
MPI_Comm_create_keyval).
Traits§
- Communicator
Attributes - Attribute-caching operations on communicators. Blanket-implemented for every
Communicator.
Functions§
- create_
keyval - Create a fresh communicator keyval (
MPI_Comm_create_keyval).