diff options
| author | boyealkim <[email protected]> | 2019-07-25 20:42:13 +0900 |
|---|---|---|
| committer | boyealkim <[email protected]> | 2019-07-25 20:42:13 +0900 |
| commit | f829a12add380c78e50ecc86357d4a1b513f21f0 (patch) | |
| tree | 3f1d13131230e17ee512479794cc4241d5d06eac /src/stream_manager.h | |
| parent | a1e2c4273542ca78098c9f4f25eebc087e0aec37 (diff) | |
fix stream_merge front algo
Diffstat (limited to 'src/stream_manager.h')
| -rw-r--r-- | src/stream_manager.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/stream_manager.h b/src/stream_manager.h index 91d1b36..ae1af9f 100644 --- a/src/stream_manager.h +++ b/src/stream_manager.h @@ -163,7 +163,6 @@ public: void print( FILE *fp ) const; struct CUstream_st *get_stream() { return m_stream; } void set_stream( CUstream_st *stream ) { m_stream = stream; } - private: struct CUstream_st *m_stream; @@ -179,9 +178,9 @@ private: const char *m_symbol; size_t m_offset; + struct CUevent_st *m_event; bool m_sim_mode; kernel_info_t *m_kernel; - struct CUevent_st *m_event; }; struct CUevent_st { @@ -193,6 +192,7 @@ public: m_updates = 0; m_wallclock = 0; m_gpu_tot_sim_cycle = 0; + m_issued = 0; m_done = false; } void update( double cycle, time_t clk ) @@ -207,11 +207,18 @@ public: unsigned num_updates() const { return m_updates; } bool done() const { return m_done; } time_t clock() const { return m_wallclock; } + void issue(){ + m_issued++; + } + unsigned int num_issued() const{ + return m_issued; + } private: int m_uid; bool m_blocking; bool m_done; int m_updates; + unsigned int m_issued; time_t m_wallclock; double m_gpu_tot_sim_cycle; @@ -268,6 +275,7 @@ private: CUstream_st m_stream_zero; bool m_service_stream_zero; pthread_mutex_t m_lock; + std::list<struct CUstream_st*>::iterator m_last_stream; }; #endif |
