How do I optimize the parallelization of Monte Carlo data generation with MPI?
问题 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