From 5b4b678642d36eac16d637886c7f44d0e2e74ccb Mon Sep 17 00:00:00 2001 From: Inderpreet Singh Date: Mon, 7 May 2012 01:19:35 -0800 Subject: Integrated in CL12342 from coherence branch; fix for bug #160 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12343] --- src/gpgpusim_entrypoint.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gpgpusim_entrypoint.cc') diff --git a/src/gpgpusim_entrypoint.cc b/src/gpgpusim_entrypoint.cc index 325bac6..76c63b5 100644 --- a/src/gpgpusim_entrypoint.cc +++ b/src/gpgpusim_entrypoint.cc @@ -68,10 +68,11 @@ void *gpgpu_sim_thread_sequential(void*) if( g_the_gpu->get_more_cta_left() ) { done = false; g_the_gpu->init(); - while( g_the_gpu->active() ) + while( g_the_gpu->active() ) { g_the_gpu->cycle(); + g_the_gpu->deadlock_check(); + } g_the_gpu->print_stats(); - g_the_gpu->deadlock_check(); print_simulation_time(); } sem_post(&g_sim_signal_finish); @@ -120,8 +121,8 @@ void *gpgpu_sim_thread_concurrent(void*) if( g_the_gpu->active() ) { g_the_gpu->cycle(); sim_cycles = true; + g_the_gpu->deadlock_check(); } - g_the_gpu->deadlock_check(); active = g_the_gpu->active() || !g_stream_manager->empty(); } while( active ); if(g_debug_execution >= 3) { -- cgit v1.3