mpi

How do I optimize the parallelization of Monte Carlo data generation with MPI?

混江龙づ霸主 提交于 2020-08-10 20:16:36
问题 I am currently building a Monte Carlo application in C++ and I have a question regarding parallelization with MPI. The process I want to parallelize is the MC generation of data. To have good precision in my final results, I specify the goal number of data points. Each data point is generated independently, but might require vastly differing amounts of time. How do I organize the parallelization and workload distribution of the data generation most efficiently? What I have done so far So far

mpi4py returning rank differences

不羁的心 提交于 2020-08-03 01:24:40
问题 I want to launch parallel processes from a python script (and, for testing, interactively, but not from ipython), across two different versions of python, and have started out with mpi4py. The two versions are (for 2 and 8 cores respectively): Python 2.7.2 |EPD 7.2-2 (64-bit)| (default, Sep 7 2011, 16:31:15) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin and Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] on linux2 On the first one (to learn the ropes), interactively I get: from