summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stream_manager.cc7
-rw-r--r--src/stream_manager.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/stream_manager.cc b/src/stream_manager.cc
index c6c17ac..6cd62a2 100644
--- a/src/stream_manager.cc
+++ b/src/stream_manager.cc
@@ -478,3 +478,10 @@ void stream_manager::push( stream_operation op )
}
}
+void stream_manager::pushCudaStreamWaitEventToAllStreams( CUevent_st *e, unsigned int flags ){
+ std::list<CUstream_st *>::iterator s;
+ for( s=m_streams.begin(); s != m_streams.end(); s++ ) {
+ stream_operation op(*s,e,flags);
+ push(op);
+ }
+}
diff --git a/src/stream_manager.h b/src/stream_manager.h
index edf2b24..1719ebd 100644
--- a/src/stream_manager.h
+++ b/src/stream_manager.h
@@ -255,6 +255,7 @@ public:
bool empty();
void print( FILE *fp);
void push( stream_operation op );
+ void pushCudaStreamWaitEventToAllStreams( CUevent_st *e, unsigned int flags );
bool operation(bool * sim);
void stop_all_running_kernels();
private: