summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/shader_trace.h
diff options
context:
space:
mode:
authorAhmad Alawneh <[email protected]>2023-06-20 14:42:00 -0400
committerAhmad Alawneh <[email protected]>2023-06-20 14:42:00 -0400
commit68a91076b2aab8f60bae551d6df6b3a8aa411463 (patch)
treed380fa98c220285ef4f3fc5b152ba1d314f04fdb /src/gpgpu-sim/shader_trace.h
parent24a35fbd683606efabae8d60a3283dc2bd2a66b0 (diff)
fix most c warnings
Diffstat (limited to 'src/gpgpu-sim/shader_trace.h')
-rw-r--r--src/gpgpu-sim/shader_trace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgpu-sim/shader_trace.h b/src/gpgpu-sim/shader_trace.h
index e7486d8..367262c 100644
--- a/src/gpgpu-sim/shader_trace.h
+++ b/src/gpgpu-sim/shader_trace.h
@@ -38,7 +38,7 @@
#define SCHED_PRINT_STR SHADER_PRINT_STR "Scheduler %d - "
#define SHADER_DTRACE(x) \
(DTRACE(x) && \
- (Trace::sampling_core == get_sid() || Trace::sampling_core == -1))
+ (Trace::sampling_core == (int)get_sid() || Trace::sampling_core == -1))
// Intended to be called from inside components of a shader core.
// Depends on a get_sid() function