You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sim/include/sim/ad.hpp
+35-15Lines changed: 35 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
#include<chimbuko/ad/ADNormalEventProvenance.hpp>
6
6
#include<chimbuko/ad/ADEvent.hpp>
7
7
#include<chimbuko/ad/ADCounter.hpp>
8
+
#include<map>
8
9
9
10
namespacechimbuko_sim{
10
11
usingnamespacechimbuko;
@@ -13,32 +14,41 @@ namespace chimbuko_sim{
13
14
14
15
//An object that represents a rank of the AD
15
16
classADsim{
16
-
std::unordered_map<unsignedlong, std::list<ExecData_t> > m_all_execs; //map of thread to execs, never flushed
17
-
std::unordered_map<eventID, CallListIterator_t> m_eventid_map; //map from event index to iterator ; never flushed
18
-
std::list<CallListIterator_t> m_step_exec_its; //iterators to events on this io step; flushed at end of step
19
-
std::unordered_map<unsignedlong, std::vector<CallListIterator_t>> m_step_func_exec_its; //map of function id to iterators on this io step; flushed at end of step
17
+
std::unordered_map<unsignedlong, std::list<ExecData_t> > m_all_execs; /**< Map of thread to execs */
18
+
std::unordered_map<eventID, CallListIterator_t> m_eventid_map; /**< Map from event index to iterator */
19
+
std::map<unsignedlong, std::list<CallListIterator_t> > m_step_execs; /**< Events in any given step */
20
+
21
+
unsignedlong m_largest_step; /**< Largest step index of an inserted function execution thus far encountered */
22
+
unsignedlong m_program_start;
23
+
unsignedlong m_step_freq; /**< Frequency of IO steps */
20
24
21
-
bool m_step_is_open; /**< Is an io step currently open? */
if(exec_it->get_exit() > step_end_time) fatal_error("Event " + exec_it->get_json(true, true).dump(4) + " has an exit time later than the end of the current step, " + std::to_string(step_end_time) );
0 commit comments