- std::unique_ptr<simgrid::mc::Process> process(new simgrid::mc::Process(pid, socket));
- // TODO, automatic detection of the config from the process
- process->privatized(
- xbt_cfg_get_boolean("smpi/privatize-global-variables"));
- modelChecker_ = std::unique_ptr<ModelChecker>(
- new simgrid::mc::ModelChecker(std::move(process)));
+ std::unique_ptr<simgrid::mc::RemoteClient> process(new simgrid::mc::RemoteClient(pid, socket));
+
+#if HAVE_SMPI
+ xbt_assert(smpi_privatize_global_variables != SmpiPrivStrategies::MMAP,
+ "Please use the dlopen privatization schema when model-checking SMPI code");
+#endif
+
+ model_checker_.reset(new simgrid::mc::ModelChecker(std::move(process)));