16 #include <boost/property_tree/ptree.hpp>
18 namespace pt = boost::property_tree;
26 #include "ParallelProblem.h"
29 int main(
int argc,
char **argv){
31 spdlog::set_level(spdlog::level::debug);
33 MPI_Init(&argc, &argv);
36 pt.put(
"NumSamples_0_0", 1e3);
37 pt.put(
"NumSamples_0_1", 5e2);
38 pt.put(
"NumSamples_0_2", 1e2);
39 pt.put(
"NumSamples_1_0", 5e2);
40 pt.put(
"NumSamples_1_1", 5e2);
41 pt.put(
"NumSamples_1_2", 1e2);
42 pt.put(
"NumSamples_2_0", 1e2);
43 pt.put(
"NumSamples_2_1", 1e2);
44 pt.put(
"NumSamples_2_2", 1e2);
45 pt.put(
"MCMC.BurnIn", 1e1);
46 pt.put(
"MLMCMC.Subsampling_0_0", 5);
47 pt.put(
"MLMCMC.Subsampling_0_1", 5);
48 pt.put(
"MLMCMC.Subsampling_0_2", 5);
49 pt.put(
"MLMCMC.Subsampling_1_0", 5);
50 pt.put(
"MLMCMC.Subsampling_1_1", 5);
51 pt.put(
"MLMCMC.Subsampling_1_2", 5);
52 pt.put(
"MLMCMC.Subsampling_2_0", 5);
53 pt.put(
"MLMCMC.Subsampling_2_1", 5);
54 pt.put(
"MLMCMC.Subsampling_2_2", 5);
55 pt.put(
"MLMCMC.Scheduling",
true);
57 auto comm = std::make_shared<parcer::Communicator>(MPI_COMM_WORLD);
60 auto componentFactory = std::make_shared<MyMIComponentFactory>(pt);
int main(int argc, char **argv)
A parallel MIMCMC method.
void Finalize()
Cleanup parallel method, wait for all ranks to finish.