From: Christian Heinrich Date: Wed, 17 Jan 2018 20:02:50 +0000 (+0100) Subject: [SMPI] smpi.h: Remove smpi_process_index() usage in macros X-Git-Tag: v3.19~312^2~20 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1ddac9793d73ca354e64c4586de9fb8cd6c0478b [SMPI] smpi.h: Remove smpi_process_index() usage in macros --- diff --git a/include/smpi/smpi.h b/include/smpi/smpi.h index eb3a7b3d37..cd2ee94e40 100644 --- a/include/smpi/smpi.h +++ b/include/smpi/smpi.h @@ -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()