diff options
| author | Ahmed El-Shafiey <[email protected]> | 2012-09-29 10:20:47 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:49:21 -0700 |
| commit | 59157dad1253f99b506c0e1a22c793dc96967ce1 (patch) | |
| tree | bdc587a9e003cea0efcbeddbf65e5248b4276b8e /src/stream_manager.h | |
| parent | 6f8637f120670157230074d3b3f847f00d3e3e2c (diff) | |
-being more conservative in locking the code of the kernel finish detection, solves the problem of underminitstic kernel finish detection
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14206]
Diffstat (limited to 'src/stream_manager.h')
| -rw-r--r-- | src/stream_manager.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/stream_manager.h b/src/stream_manager.h index 23867f1..a30e21b 100644 --- a/src/stream_manager.h +++ b/src/stream_manager.h @@ -235,15 +235,17 @@ private: class stream_manager { public: stream_manager( gpgpu_sim *gpu, bool cuda_launch_blocking ); - void register_finished_kernel( unsigned grid_uid ); + bool register_finished_kernel(unsigned grid_uid ); + bool check_finished_kernel( ); stream_operation front(); void add_stream( CUstream_st *stream ); void destroy_stream( CUstream_st *stream ); bool concurrent_streams_empty(); + bool empty_protected(); bool empty(); void print( FILE *fp); void push( stream_operation op ); - + void operation(bool * sim); private: void print_impl( FILE *fp); |
