A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SMPI] Add 'tag' parameter for instr::Pt2PtTI class
[simgrid.git]
/
src
/
instr
/
instr_private.hpp
diff --git
a/src/instr/instr_private.hpp
b/src/instr/instr_private.hpp
index
0004fa9
..
5d6d12e
100644
(file)
--- a/
src/instr/instr_private.hpp
+++ b/
src/instr/instr_private.hpp
@@
-17,6
+17,7
@@
#include "src/instr/instr_paje_values.hpp"
#include "src/internal_config.h"
#include "xbt/graph.h"
#include "src/instr/instr_paje_values.hpp"
#include "src/internal_config.h"
#include "xbt/graph.h"
+
#include <iomanip> /** std::setprecision **/
#include <map>
#include <memory>
#include <iomanip> /** std::setprecision **/
#include <map>
#include <memory>
@@
-112,16
+113,20
@@
public:
};
class Pt2PtTIData : public TIData {
};
class Pt2PtTIData : public TIData {
+ int tag;
public:
public:
+ explicit Pt2PtTIData(std::string name, int endpoint, int size, int tag, std::string datatype)
+ : TIData(name, endpoint, size, datatype), tag(tag) {};
+
explicit Pt2PtTIData(std::string name, int endpoint, int size, std::string datatype)
explicit Pt2PtTIData(std::string name, int endpoint, int size, std::string datatype)
- : TIData(name, endpoint, size, datatype){};
+ : TIData(name, endpoint, size, datatype)
, tag(0)
{};
std::string print() override
{
std::stringstream stream;
stream << getName() << " ";
if (endpoint >= 0)
stream << endpoint << " ";
std::string print() override
{
std::stringstream stream;
stream << getName() << " ";
if (endpoint >= 0)
stream << endpoint << " ";
- stream << send_size << " " << send_type;
+ stream <<
tag << " " <<
send_size << " " << send_type;
return stream.str();
}
std::string display_size() override { return std::to_string(send_size); }
return stream.str();
}
std::string display_size() override { return std::to_string(send_size); }