Process::~Process()
{
+ if (comm_self_ != MPI_COMM_NULL)
+ simgrid::smpi::Comm::destroy(comm_self_);
+ if (comm_intra_ != MPI_COMM_NULL)
+ simgrid::smpi::Comm::destroy(comm_intra_);
xbt_os_timer_free(timer_);
xbt_mutex_destroy(mailboxes_mutex_);
}
argv_ = argv;
// set the process attached to the mailbox
mailbox_small_->setReceiver(process_);
- XBT_DEBUG("<%lu> New process in the game: %p", process_->getPid(), process_.get());
+ XBT_DEBUG("<%lu> SMPI process has been initialized: %p", process_->getPid(), process_.get());
}
/** @brief Prepares the current process for termination. */
return papi_event_set_;
}
-papi_counter_t& smpi_process_papi_counters()
+papi_counter_t& Process::papi_counters()
{
return papi_counter_data_;
}
return finalization_barrier_;
}
-int Process::return_value(){
- return return_value_;
-}
-
-void Process::set_return_value(int val){
- return_value_=val;
-}
-
void Process::init(int *argc, char ***argv){
if (smpi_process_count() == 0) {