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
implement CRTP in kernel::activity
[simgrid.git]
/
include
/
simgrid
/
smpi
/
replay.hpp
diff --git
a/include/simgrid/smpi/replay.hpp
b/include/simgrid/smpi/replay.hpp
index 46f5d86fb2372bebaf915dfcc34fc273f36901a4..91f8943bd87153a14215af913f67c924900925f3 100644
(file)
--- a/
include/simgrid/smpi/replay.hpp
+++ b/
include/simgrid/smpi/replay.hpp
@@
-33,8
+33,6
@@
XBT_PRIVATE void* smpi_get_tmp_sendbuffer(int size);
XBT_PRIVATE void* smpi_get_tmp_recvbuffer(int size);
XBT_PRIVATE void* smpi_get_tmp_sendbuffer(int size);
XBT_PRIVATE void* smpi_get_tmp_recvbuffer(int size);
-XBT_PRIVATE void smpi_free_tmp_buffer(void* buf);
-XBT_PRIVATE void smpi_free_replay_tmp_buffers();
XBT_PRIVATE void log_timed_action(simgrid::xbt::ReplayAction& action, double clock);
XBT_PRIVATE void log_timed_action(simgrid::xbt::ReplayAction& action, double clock);
@@
-51,7
+49,7
@@
class RequestStorage; // Forward decl
class ActionArgParser {
public:
virtual ~ActionArgParser() = default;
class ActionArgParser {
public:
virtual ~ActionArgParser() = default;
- virtual void parse(simgrid::xbt::ReplayAction& action,
std::string
name) { CHECK_ACTION_PARAMS(action, 0, 0) }
+ virtual void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) { CHECK_ACTION_PARAMS(action, 0, 0) }
};
class WaitTestParser : public ActionArgParser {
};
class WaitTestParser : public ActionArgParser {
@@
-60,7
+58,7
@@
public:
int dst;
int tag;
int dst;
int tag;
- void parse(simgrid::xbt::ReplayAction& action,
std::string
name) override;
+ void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) override;
};
class SendRecvParser : public ActionArgParser {
};
class SendRecvParser : public ActionArgParser {
@@
-71,7
+69,7
@@
public:
int tag;
MPI_Datatype datatype1 = MPI_DEFAULT_TYPE;
int tag;
MPI_Datatype datatype1 = MPI_DEFAULT_TYPE;
- void parse(simgrid::xbt::ReplayAction& action,
std::string
name) override;
+ void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) override;
};
class ComputeParser : public ActionArgParser {
};
class ComputeParser : public ActionArgParser {
@@
-79,7
+77,7
@@
public:
/* communication partner; if we send, this is the receiver and vice versa */
double flops;
/* communication partner; if we send, this is the receiver and vice versa */
double flops;
- void parse(simgrid::xbt::ReplayAction& action,
std::string
name) override;
+ void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) override;
};
class CollCommParser : public ActionArgParser {
};
class CollCommParser : public ActionArgParser {
@@
-96,27
+94,27
@@
public:
class BcastArgParser : public CollCommParser {
public:
class BcastArgParser : public CollCommParser {
public:
- void parse(simgrid::xbt::ReplayAction& action,
std::string
name) override;
+ void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) override;
};
class ReduceArgParser : public CollCommParser {
public:
};
class ReduceArgParser : public CollCommParser {
public:
- void parse(simgrid::xbt::ReplayAction& action,
std::string
name) override;
+ void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) override;
};
class AllReduceArgParser : public CollCommParser {
public:
};
class AllReduceArgParser : public CollCommParser {
public:
- void parse(simgrid::xbt::ReplayAction& action,
std::string
name) override;
+ void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) override;
};
class AllToAllArgParser : public CollCommParser {
public:
};
class AllToAllArgParser : public CollCommParser {
public:
- void parse(simgrid::xbt::ReplayAction& action,
std::string
name) override;
+ void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) override;
};
class GatherArgParser : public CollCommParser {
public:
};
class GatherArgParser : public CollCommParser {
public:
- void parse(simgrid::xbt::ReplayAction& action,
std::string
name) override;
+ void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) override;
};
class GatherVArgParser : public CollCommParser {
};
class GatherVArgParser : public CollCommParser {
@@
-124,12
+122,12
@@
public:
int recv_size_sum;
std::shared_ptr<std::vector<int>> recvcounts;
std::vector<int> disps;
int recv_size_sum;
std::shared_ptr<std::vector<int>> recvcounts;
std::vector<int> disps;
- void parse(simgrid::xbt::ReplayAction& action,
std::string
name) override;
+ void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) override;
};
class ScatterArgParser : public CollCommParser {
public:
};
class ScatterArgParser : public CollCommParser {
public:
- void parse(simgrid::xbt::ReplayAction& action,
std::string
name) override;
+ void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) override;
};
class ScatterVArgParser : public CollCommParser {
};
class ScatterVArgParser : public CollCommParser {
@@
-138,7
+136,7
@@
public:
int send_size_sum;
std::shared_ptr<std::vector<int>> sendcounts;
std::vector<int> disps;
int send_size_sum;
std::shared_ptr<std::vector<int>> sendcounts;
std::vector<int> disps;
- void parse(simgrid::xbt::ReplayAction& action,
std::string
name) override;
+ void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) override;
};
class ReduceScatterArgParser : public CollCommParser {
};
class ReduceScatterArgParser : public CollCommParser {
@@
-146,7
+144,7
@@
public:
int recv_size_sum;
std::shared_ptr<std::vector<int>> recvcounts;
std::vector<int> disps;
int recv_size_sum;
std::shared_ptr<std::vector<int>> recvcounts;
std::vector<int> disps;
- void parse(simgrid::xbt::ReplayAction& action,
std::string
name) override;
+ void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) override;
};
class AllToAllVArgParser : public CollCommParser {
};
class AllToAllVArgParser : public CollCommParser {
@@
-159,7
+157,7
@@
public:
std::vector<int> recvdisps;
int send_buf_size;
int recv_buf_size;
std::vector<int> recvdisps;
int send_buf_size;
int recv_buf_size;
- void parse(simgrid::xbt::ReplayAction& action,
std::string
name) override;
+ void parse(simgrid::xbt::ReplayAction& action,
const std::string&
name) override;
};
/**
};
/**
@@
-175,7
+173,7
@@
protected:
T args;
public:
T args;
public:
- explicit ReplayAction(
std::string
name) : name(name), my_proc_id(simgrid::s4u::this_actor::get_pid()) {}
+ explicit ReplayAction(
const std::string&
name) : name(name), my_proc_id(simgrid::s4u::this_actor::get_pid()) {}
virtual ~ReplayAction() = default;
void execute(simgrid::xbt::ReplayAction& action)
virtual ~ReplayAction() = default;
void execute(simgrid::xbt::ReplayAction& action)
@@
-207,7
+205,7
@@
private:
RequestStorage& req_storage;
public:
RequestStorage& req_storage;
public:
- explicit SendAction(
std::string
name, RequestStorage& storage) : ReplayAction(name), req_storage(storage) {}
+ explicit SendAction(
const std::string&
name, RequestStorage& storage) : ReplayAction(name), req_storage(storage) {}
void kernel(simgrid::xbt::ReplayAction& action) override;
};
void kernel(simgrid::xbt::ReplayAction& action) override;
};
@@
-216,7
+214,7
@@
private:
RequestStorage& req_storage;
public:
RequestStorage& req_storage;
public:
- explicit RecvAction(
std::string
name, RequestStorage& storage) : ReplayAction(name), req_storage(storage) {}
+ explicit RecvAction(
const std::string&
name, RequestStorage& storage) : ReplayAction(name), req_storage(storage) {}
void kernel(simgrid::xbt::ReplayAction& action) override;
};
void kernel(simgrid::xbt::ReplayAction& action) override;
};
@@
-288,13
+286,13
@@
public:
class GatherAction : public ReplayAction<GatherArgParser> {
public:
class GatherAction : public ReplayAction<GatherArgParser> {
public:
- explicit GatherAction(
std::string
name) : ReplayAction(name) {}
+ explicit GatherAction(
const std::string&
name) : ReplayAction(name) {}
void kernel(simgrid::xbt::ReplayAction& action) override;
};
class GatherVAction : public ReplayAction<GatherVArgParser> {
public:
void kernel(simgrid::xbt::ReplayAction& action) override;
};
class GatherVAction : public ReplayAction<GatherVArgParser> {
public:
- explicit GatherVAction(
std::string
name) : ReplayAction(name) {}
+ explicit GatherVAction(
const std::string&
name) : ReplayAction(name) {}
void kernel(simgrid::xbt::ReplayAction& action) override;
};
void kernel(simgrid::xbt::ReplayAction& action) override;
};