diff options
| author | tgrogers <[email protected]> | 2018-04-05 10:10:15 -0400 |
|---|---|---|
| committer | tgrogers <[email protected]> | 2018-04-05 10:10:15 -0400 |
| commit | 49429d3b01dcb5bac49b71df2156bceb70b64ce9 (patch) | |
| tree | 950a181a2dc7cb1bbd9d9349dee2b9141d964455 /src/gpgpusim_entrypoint.cc | |
| parent | c5da0034dd329976c77e2951e2f879095ea8cdac (diff) | |
GPGPU-Sim should always print when the sim thread exits - if this doesn't happen, something bad has happened
Diffstat (limited to 'src/gpgpusim_entrypoint.cc')
| -rw-r--r-- | src/gpgpusim_entrypoint.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpgpusim_entrypoint.cc b/src/gpgpusim_entrypoint.cc index dac9fd8..64962ab 100644 --- a/src/gpgpusim_entrypoint.cc +++ b/src/gpgpusim_entrypoint.cc @@ -165,10 +165,10 @@ void *gpgpu_sim_thread_concurrent(void*) g_sim_active = false; pthread_mutex_unlock(&g_sim_lock); } while( !g_sim_done ); - if(g_debug_execution >= 3) { - printf("GPGPU-Sim: *** simulation thread exiting ***\n"); - fflush(stdout); - } + + printf("GPGPU-Sim: *** simulation thread exiting ***\n"); + fflush(stdout); + if(break_limit) { printf("GPGPU-Sim: ** break due to reaching the maximum cycles (or instructions) **\n"); exit(1); |
