communicator(4rheolef)

πŸ“¦
version 7.2 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu questing

πŸ’– NAME πŸ’–

communicator β€” the MPI communicator for C++, bestie, and it's part of rheolef-7.2 ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: you're in a distributed environment (multiple processes, group-chat but make it computing πŸ’…) β€” this class is literally just a cute lil wrapper around the usual MPI communicator for C++, exactly the way the boost::mpi library hands it to you. no cap.

and if you're in a sequential environment instead? don't even worry. there's a dummy class provided for compatibility purpose β€” so your code doesn't have a whole meltdown just because there's only one of you. she's an icon for that honestly 🫢


🌸 EXAMPLE 🌸

look at her go, main character energy:

communicator comm;
cout << 'my_proc = ' << comm.rank() << endl
     << 'nb_proc = ' << comm.size() << endl;

that's it. that's the vibe. πŸ‘‘


✨ IMPLEMENTATION ✨

fr fr, this documentation has been generated from file linalg/lib/communicator.h πŸŽ€

struct communicator {
  typedef std::vector<int>::size_type size_type;
  int size() const;
  int rank() const;
};

so tiny, so powerful, the way she does the absolute most with the absolute least πŸ’€πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Pierre Saramito <Pierre.Saramito@imag.fr> β€” yes the legend herself, give her her flowers 🌹


Copyright (C) 2000-2018 Pierre Saramito <Pierre.Saramito@imag.fr>

GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. (not me reminding you bestie, it's literally in the fine print πŸ™ˆ)

and that's a wrap, gorgeous ✨ this was rheolef, Version 7.2, page communicator(4rheolef) β€” mwah, go forth and communicate πŸ’…πŸ’–

πŸ“¦ where this page comes from