diff options
| author | Jin Wang <[email protected]> | 2014-10-23 15:33:59 -0400 |
|---|---|---|
| committer | Jin Wang <[email protected]> | 2016-07-05 09:05:36 -0400 |
| commit | f372a4c641b9e6d38470ead6ae25743d26c5fed1 (patch) | |
| tree | 5a331b1221150c5118e2ef3e058e62340c1a8aeb /src/stream_manager.h | |
| parent | 3bb32d87175d873e7089ad50a0069acc195edb34 (diff) | |
BUG: kernels should return to stream if not pushed to concurrent kernel pool
Diffstat (limited to 'src/stream_manager.h')
| -rw-r--r-- | src/stream_manager.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stream_manager.h b/src/stream_manager.h index 701b33c..222a1b2 100644 --- a/src/stream_manager.h +++ b/src/stream_manager.h @@ -150,7 +150,7 @@ public: bool is_noop() const { return m_type == stream_no_op; } bool is_done() const { return m_done; } kernel_info_t *get_kernel() { return m_kernel; } - void do_operation( gpgpu_sim *gpu ); + bool do_operation( gpgpu_sim *gpu ); void print( FILE *fp ) const; struct CUstream_st *get_stream() { return m_stream; } void set_stream( CUstream_st *stream ) { m_stream = stream; } @@ -218,6 +218,7 @@ public: void push( const stream_operation &op ); void record_next_done(); stream_operation next(); + void cancel_front(); //front operation fails, cancle the pending status stream_operation &front() { return m_operations.front(); } void print( FILE *fp ); unsigned get_uid() const { return m_uid; } |
