X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0824862bd35b67c487e0d35805238a9232ce2add..07fa4dbf48f51edfee6c6a56c11095b02e93bf5e:/src/smpi/internals/smpi_process.cpp diff --git a/src/smpi/internals/smpi_process.cpp b/src/smpi/internals/smpi_process.cpp index 4b55a615b7..2ed9958cf6 100644 --- a/src/smpi/internals/smpi_process.cpp +++ b/src/smpi/internals/smpi_process.cpp @@ -14,8 +14,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_process, smpi, "Logging specific to SMPI (kernel)"); -extern int* index_to_process_data; - #define MAILBOX_NAME_MAXLEN (5 + sizeof(int) * 2 + 1) static char *get_mailbox_name(char *str, int index) @@ -114,11 +112,9 @@ int Process::finalized() /** @brief Check if a process is initialized */ int Process::initialized() { - if (index_to_process_data == nullptr){ - return false; - } else{ - return ((index_ != MPI_UNDEFINED) && (state_ == SMPI_INITIALIZED)); - } + // TODO cheinrich: Check if we still need this. This should be a global condition, not for a + // single process ... ? + return ((index_ != MPI_UNDEFINED) && (state_ == SMPI_INITIALIZED)); } /** @brief Mark a process as initialized (=MPI_Init called) */ @@ -279,10 +275,6 @@ void Process::init(int *argc, char ***argv){ int index = proc->pid - 1; // The maestro process has always ID 0 but we don't need that process here - if(index_to_process_data == nullptr){ - index_to_process_data=static_cast(xbt_malloc(SIMIX_process_count()*sizeof(int))); - } - char* instance_id = (*argv)[1]; try { int rank = std::stoi(std::string((*argv)[2]));