Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Replay: Add typedefs
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 13 Apr 2018 07:59:24 +0000 (09:59 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 13 Apr 2018 08:28:15 +0000 (10:28 +0200)
src/smpi/internals/smpi_replay.cpp

index 72b7be0..6ac0204 100644 (file)
@@ -78,6 +78,8 @@ namespace hash_tuple{
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_replay,smpi,"Trace Replay with SMPI");
 
 static std::unordered_map<int, std::vector<MPI_Request>*> reqq;
+typedef std::tuple</*sender*/ int, /* reciever */ int, /* tag */int> req_key_t;
+typedef std::unordered_map<req_key_t, MPI_Request, hash_tuple::hash<std::tuple<int,int,int>>> req_storage_t;
 
 static MPI_Datatype MPI_DEFAULT_TYPE;