Re: [Yade-dev] boost::mpi and python bindings for it.

2021-03-04 Thread Bruno Chareyre
Hi, 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

[Yade-dev] boost::mpi and python bindings for it.

2021-03-03 Thread Janek Kozicki (yade)
Hi Bruno, There is a boost::mpi library built on top of OpenMPI, MPICH2, IntelMPI [0]. In the introduction [1] they say it's just a wrapper for OpenMPI, MPICH2 and IntelMPI. By using boost you could have some extra safety. Example [2]: int main(int argc, char* argv[]) { mpi::environment