From 8acc20574b73d8f392e3acc6c369c05e3d88da75 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Tue, 13 Mar 2018 14:15:47 +0100 Subject: [PATCH] [SMPI] Replay: Declare variables as static --- src/smpi/internals/smpi_replay.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/smpi/internals/smpi_replay.cpp b/src/smpi/internals/smpi_replay.cpp index b3e2fc6a84..2230e6f143 100644 --- a/src/smpi/internals/smpi_replay.cpp +++ b/src/smpi/internals/smpi_replay.cpp @@ -21,17 +21,17 @@ using simgrid::s4u::Actor; XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_replay,smpi,"Trace Replay with SMPI"); -int communicator_size = 0; -static int active_processes = 0; -std::unordered_map*> reqq; +static int communicator_size = 0; +static int active_processes = 0; +static std::unordered_map*> reqq; -MPI_Datatype MPI_DEFAULT_TYPE; -MPI_Datatype MPI_CURRENT_TYPE; +static MPI_Datatype MPI_DEFAULT_TYPE; +static MPI_Datatype MPI_CURRENT_TYPE; -static int sendbuffer_size=0; -char* sendbuffer=nullptr; -static int recvbuffer_size=0; -char* recvbuffer=nullptr; +static int sendbuffer_size = 0; +static char* sendbuffer = nullptr; +static int recvbuffer_size = 0; +static char* recvbuffer = nullptr; static void log_timed_action (const char *const *action, double clock){ if (XBT_LOG_ISENABLED(smpi_replay, xbt_log_priority_verbose)){ -- 2.20.1