diff options
| author | Tim Rogers <[email protected]> | 2013-08-12 08:37:47 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:58 -0700 |
| commit | 33262d1b6c2101dc43eb748d432df43097a1c849 (patch) | |
| tree | 19018b9e7b50302c4a5c90775ae4d4028d6e6340 /src/gpgpu-sim | |
| parent | 7f49fe9feb174d34efc2a011bad79b38522a360b (diff) | |
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]
Diffstat (limited to 'src/gpgpu-sim')
| -rw-r--r-- | src/gpgpu-sim/shader_trace.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
