Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Rename variables from 'rank' to 'my_proc_id' in smpi_replay.cpp
[simgrid.git] / src / smpi / include / smpi_process.hpp
index 7477a66..f6bfa80 100644 (file)
@@ -36,7 +36,7 @@ class Process {
     msg_bar_t finalization_barrier_;
     int return_value_ = 0;
     smpi_trace_call_location_t trace_call_loc_;
-    smx_actor_t process_ = nullptr;
+    simgrid::s4u::ActorPtr process_ = nullptr;
     smpi_privatization_region_t privatized_region_;
 #if HAVE_PAPI
   /** Contains hardware data as read by PAPI **/
@@ -44,7 +44,7 @@ class Process {
     papi_counter_t papi_counter_data_;
 #endif
   public:
-    explicit Process(int index, msg_bar_t barrier);
+    explicit Process(simgrid::s4u::ActorPtr actor, msg_bar_t barrier);
     void set_data(int index, int* argc, char*** argv);
     void finalize();
     int finalized();
@@ -58,7 +58,6 @@ class Process {
     void set_privatized_region(smpi_privatization_region_t region);
     smpi_privatization_region_t privatized_region();
     int index();
-    MPI_Comm comm_world();
     smx_mailbox_t mailbox();
     smx_mailbox_t mailbox_small();
     xbt_mutex_t mailboxes_mutex();
@@ -69,6 +68,7 @@ class Process {
     xbt_os_timer_t timer();
     void simulated_start();
     double simulated_elapsed();
+    MPI_Comm comm_world();
     MPI_Comm comm_self();
     MPI_Comm comm_intra();
     void set_comm_intra(MPI_Comm comm);
@@ -78,7 +78,7 @@ class Process {
     int return_value();
     void set_return_value(int val);
     static void init(int *argc, char ***argv);
-    smx_actor_t process();
+    simgrid::s4u::ActorPtr process();
 };