communicator(4rheolef)
π 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 π
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
- debian trixie: librheolef-dev 7.2-4 Β· GPL-3.0-or-later
- ubuntu noble: librheolef-dev 7.2-3build5 Β· GPL-3.0-or-later
- ubuntu questing: librheolef-dev 7.2-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms