summaryrefslogtreecommitdiff
path: root/src/stream_manager.cc
diff options
context:
space:
mode:
authorboyealkim <[email protected]>2019-07-27 03:54:44 +0900
committerboyealkim <[email protected]>2019-07-27 03:54:44 +0900
commitf3ec23390a0798eab1426adf962487680ea89e93 (patch)
treea98888812c64113d5a31bc9780bb377ef36b1290 /src/stream_manager.cc
parentb13557baa4ea6d1084bdcc9b28b9eb660c394427 (diff)
fix event done impl
Diffstat (limited to 'src/stream_manager.cc')
-rw-r--r--src/stream_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream_manager.cc b/src/stream_manager.cc
index d0eecdd..0d67e10 100644
--- a/src/stream_manager.cc
+++ b/src/stream_manager.cc
@@ -198,7 +198,7 @@ bool stream_operation::do_operation( gpgpu_sim *gpu )
//only allows next op to go if event is done
//otherwise stays in the stream queue
printf("stream wait event processing...\n");
- if(m_event->done()){
+ if(m_event->num_updates()>=m_cnt){
printf("stream wait event done\n");
m_stream->record_next_done();
}