Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] smpi.h: Remove smpi_process_index() usage in macros
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 17 Jan 2018 20:02:50 +0000 (21:02 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 24 Jan 2018 14:58:20 +0000 (15:58 +0100)
include/smpi/smpi.h

index eb3a7b3..cd2ee94 100644 (file)
@@ -987,7 +987,7 @@ static void __attribute__((destructor)) __postfini_##name(void) { \
    name = NULL;                                                 \
 }
 
-#define SMPI_VARGET_GLOBAL(name) name[smpi_process_index()]
+#define SMPI_VARGET_GLOBAL(name) name[SIMIX_process_self()->pid]
 
 /**
  * This is used for the old privatization method, i.e., on old
@@ -1013,7 +1013,7 @@ if(!name) {                                         \
    smpi_register_static(name, xbt_free_f);          \
 }
 
-#define SMPI_VARGET_STATIC(name) name[smpi_process_index()]
+#define SMPI_VARGET_STATIC(name) name[SIMIX_process_self()->pid]
 
 
 SG_END_DECL()