diff options
| author | Inderpreet Singh <[email protected]> | 2011-08-18 16:16:18 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:18:22 -0700 |
| commit | 75cac88e2131564d79f0407c2d86d0429a1e2dba (patch) | |
| tree | 8479e2d32f23baa9119148c834172a2ad90f3347 /src/gpgpusim_entrypoint.cc | |
| parent | 4944711704b7b0e3a43517471aa568e73998a861 (diff) | |
Assigned debug level 3 to stream manager output.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 10013]
Diffstat (limited to 'src/gpgpusim_entrypoint.cc')
| -rw-r--r-- | src/gpgpusim_entrypoint.cc | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/src/gpgpusim_entrypoint.cc b/src/gpgpusim_entrypoint.cc index de81df8..ba3b9aa 100644 --- a/src/gpgpusim_entrypoint.cc +++ b/src/gpgpusim_entrypoint.cc @@ -89,13 +89,17 @@ void *gpgpu_sim_thread_concurrent(void*) // concurrent kernel execution simulation thread g_the_gpu->init(); do { - printf("GPGPU-Sim: *** simulation thread starting and spinning waiting for work ***\n"); - fflush(stdout); + if(g_debug_execution >= 3) { + printf("GPGPU-Sim: *** simulation thread starting and spinning waiting for work ***\n"); + fflush(stdout); + } while( g_stream_manager->empty() && !g_sim_done ) ; - printf("GPGPU-Sim: ** START simulation thread (detected work) **\n"); - g_stream_manager->print(stdout); - fflush(stdout); + if(g_debug_execution >= 3) { + printf("GPGPU-Sim: ** START simulation thread (detected work) **\n"); + g_stream_manager->print(stdout); + fflush(stdout); + } pthread_mutex_lock(&g_sim_lock); g_sim_active = true; pthread_mutex_unlock(&g_sim_lock); @@ -119,16 +123,20 @@ void *gpgpu_sim_thread_concurrent(void*) g_the_gpu->deadlock_check(); active = g_the_gpu->active() || !g_stream_manager->empty(); } while( active ); - printf("GPGPU-Sim: ** STOP simulation thread (no work) **\n"); - fflush(stdout); + if(g_debug_execution >= 3) { + printf("GPGPU-Sim: ** STOP simulation thread (no work) **\n"); + fflush(stdout); + } if( sim_cycles ) g_the_gpu->print_stats(); pthread_mutex_lock(&g_sim_lock); g_sim_active = false; pthread_mutex_unlock(&g_sim_lock); } while( !g_sim_done ); - printf("GPGPU-Sim: *** simulation thread exiting ***\n"); - fflush(stdout); + if(g_debug_execution >= 3) { + printf("GPGPU-Sim: *** simulation thread exiting ***\n"); + fflush(stdout); + } sem_post(&g_sim_signal_exit); return NULL; } |
