Very interesting indeed. I didn't notice.
I wouldn't claim that, by definition, it is more safe than mpi4py (just
another wrapper) but it would remove that dependency.
I wonder if a simple replacement of mpi4py.comm by boost.mpi.comm would
do the trick. If they followed same naming conventions it could.
On 03/03/2021 23:56, Janek Kozicki (yade) wrote:
There is a boost::mpi library built on top of OpenMPI, MPICH2, IntelMPI .
In the introduction  they say it's just a wrapper for OpenMPI,
MPICH2 and IntelMPI. By using boost you could have some extra safety.
int main(int argc, char* argv)
mpi::environment env(argc, argv);
std::cout << "I am process " << world.rank() << " of " << world.size()
<< "." << std::endl;
Python example :
import boost.mpi as mpi
print "I am process %d of %d." % (mpi.rank, mpi.size)
Have a look :)
Mailing list: https://launchpad.net/~yade-dev
Post to : email@example.com
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp