diff options
| author | Jin Wang <[email protected]> | 2016-07-01 05:29:58 -0400 |
|---|---|---|
| committer | Jin Wang <[email protected]> | 2016-07-05 09:16:53 -0400 |
| commit | 3656376ccd83d5c514389c4c3818f1969bc30e0c (patch) | |
| tree | ada5faf5474ad7b9de173854f74f848b2e3b5867 /src/stream_manager.cc | |
| parent | 38f811ab4d094e56b2065e1c8cb39327ad9f157b (diff) | |
MOD: schedule one child kernel each cycle
Diffstat (limited to 'src/stream_manager.cc')
| -rw-r--r-- | src/stream_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream_manager.cc b/src/stream_manager.cc index 546ab3b..f90d9be 100644 --- a/src/stream_manager.cc +++ b/src/stream_manager.cc @@ -217,8 +217,8 @@ stream_manager::stream_manager( gpgpu_sim *gpu, bool cuda_launch_blocking ) bool stream_manager::operation( bool * sim) { - pthread_mutex_lock(&m_lock); bool check=check_finished_kernel(); + pthread_mutex_lock(&m_lock); if(check)m_gpu->print_stats(); stream_operation op =front(); if(!op.do_operation( m_gpu )) //not ready to execute |
