mailboxes_mutex_ = s4u::Mutex::create();
timer_ = xbt_os_timer_new();
state_ = SmpiProcessState::UNINITIALIZED;
+ info_env_ = MPI_INFO_NULL;
if (MC_is_active())
MC_ignore_heap(timer_, xbt_os_timer_size());
return comm_self_;
}
+MPI_Info ActorExt::info_env()
+{
+ return info_env_;
+}
+
MPI_Comm ActorExt::comm_intra()
{
return comm_intra_;
void ActorExt::init()
{
- if (smpi_process_count() == 0) {
- xbt_die("SimGrid was not initialized properly before entering MPI_Init. Aborting, please check compilation process "
- "and use smpirun\n");
- }
+ xbt_assert(smpi_get_universe_size() != 0, "SimGrid was not initialized properly before entering MPI_Init. "
+ "Aborting, please check compilation process and use smpirun.");
simgrid::s4u::ActorPtr proc = simgrid::s4u::Actor::self();
// cheinrich: I'm not sure what the impact of the SMPI_switch_data_segment on this call is. I moved
{
return optind_;
}
+
void ActorExt::set_optind(int new_optind)
{
optind_ = new_optind;