Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Added privatized_region_ property to simgrid::smpi::Process
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 18 Oct 2017 13:03:09 +0000 (15:03 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Mon, 30 Oct 2017 12:26:15 +0000 (13:26 +0100)
This property is not used at this time but will be
once the privatization overhaul is completed.

For the record: This property will hold the pointer
to the memory address of the global-variables segment of
that specific process.

src/smpi/include/smpi_process.hpp
src/smpi/internals/smpi_process.cpp

index a69c16a..7477a66 100644 (file)
@@ -37,6 +37,7 @@ class Process {
     int return_value_ = 0;
     smpi_trace_call_location_t trace_call_loc_;
     smx_actor_t process_ = nullptr;
     int return_value_ = 0;
     smpi_trace_call_location_t trace_call_loc_;
     smx_actor_t process_ = nullptr;
+    smpi_privatization_region_t privatized_region_;
 #if HAVE_PAPI
   /** Contains hardware data as read by PAPI **/
     int papi_event_set_;
 #if HAVE_PAPI
   /** Contains hardware data as read by PAPI **/
     int papi_event_set_;
@@ -54,6 +55,8 @@ class Process {
     void set_user_data(void *data);
     void *get_user_data();
     smpi_trace_call_location_t* call_location();
     void set_user_data(void *data);
     void *get_user_data();
     smpi_trace_call_location_t* call_location();
+    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();
     int index();
     MPI_Comm comm_world();
     smx_mailbox_t mailbox();
index d073614..80d012e 100644 (file)
@@ -166,6 +166,16 @@ smpi_trace_call_location_t* Process::call_location()
   return &trace_call_loc_;
 }
 
   return &trace_call_loc_;
 }
 
+void Process::set_privatized_region(smpi_privatization_region_t region)
+{
+  privatized_region_ = region;
+}
+
+smpi_privatization_region_t Process::privatized_region()
+{
+  return privatized_region_;
+}
+
 int Process::index()
 {
   return index_;
 int Process::index()
 {
   return index_;