From 33262d1b6c2101dc43eb748d432df43097a1c849 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Mon, 12 Aug 2013 08:37:47 -0800 Subject: Adding the ability to trace all the shader cores Review ID: 75001 lgtm: 2 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 16758] --- CHANGES | 3 ++- src/gpgpu-sim/shader_trace.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index b15cc5d..2aeab18 100644 --- a/CHANGES +++ b/CHANGES @@ -51,7 +51,8 @@ Version 3.2.1+edits (development branch) versus 3.2.1 at half of its original speed. - Replaced intersim with intersim2. intersim is the original BookSim with extentions to interface with GPGPU-Sim. We applied similar changes to - BookSim 2.0. + BookSim 2.0. +- Added the ability to trace all the shader cores in the SHADER_DPRINTF - Bug Fixes: - Fixed the flit count sent to GPUWattch for atomic operations. - Fix for Bug 51 - Updated the function declaration of diff --git a/src/gpgpu-sim/shader_trace.h b/src/gpgpu-sim/shader_trace.h index 8a433cb..de3e059 100644 --- a/src/gpgpu-sim/shader_trace.h +++ b/src/gpgpu-sim/shader_trace.h @@ -36,7 +36,8 @@ #define SHADER_PRINT_STR SIM_PRINT_STR "Core %d - " #define SCHED_PRINT_STR SHADER_PRINT_STR "Scheduler %d - " -#define SHADER_DTRACE(x) (DTRACE(x) && Trace::sampling_core == get_sid()) +#define SHADER_DTRACE(x) (DTRACE(x) && (Trace::sampling_core == get_sid()\ + || Trace::sampling_core == -1)) // Intended to be called from inside components of a shader core. // Depends on a get_sid() function -- cgit v1.3