From 27d42fd575a00dc836c3b5e28905cea8bd2f4788 Mon Sep 17 00:00:00 2001 From: qazal <77887910+Qazalin@users.noreply.github.com> Date: Mon, 3 Nov 2025 23:20:03 +0800 Subject: [PATCH] sqtt decoder print behind DEBUG>=5 (#13076) * sqtt decoder print behind DEBUG>=5 * gfx version stuff also behind 5 --- extra/sqtt/roc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extra/sqtt/roc.py b/extra/sqtt/roc.py index 2651d4a008..295501649d 100644 --- a/extra/sqtt/roc.py +++ b/extra/sqtt/roc.py @@ -35,10 +35,10 @@ class _ROCParseCtx: def find_program(self, addr): return self.addr2prg[addr] def on_occupancy_ev(self, ev): - if DEBUG >= 4: print("OCC", ev.time, self.active_se, ev.cu, ev.simd, ev.wave_id, ev.start) + if DEBUG >= 5: print("OCC", ev.time, self.active_se, ev.cu, ev.simd, ev.wave_id, ev.start) def on_wave_ev(self, ev): - if DEBUG >= 4: print("WAVE", ev.wave_id, self.active_se, ev.cu, ev.simd, ev.contexts, ev.begin_time, ev.end_time) + if DEBUG >= 5: print("WAVE", ev.wave_id, self.active_se, ev.cu, ev.simd, ev.contexts, ev.begin_time, ev.end_time) asm = {} for j in range(ev.instructions_size): @@ -73,7 +73,7 @@ def decode(profile:list[ProfileEvent]) -> _ROCParseCtx: case rocprof.ROCPROFILER_THREAD_TRACE_DECODER_RECORD_WAVE: for ev in (rocprof.rocprofiler_thread_trace_decoder_wave_t * n).from_address(events_ptr): ROCParseCtx.on_wave_ev(ev) case _: - if DEBUG >= 2: print(rocprof.rocprofiler_thread_trace_decoder_record_type_t__enumvalues[record_type], events_ptr, n) + if DEBUG >= 5: print(rocprof.rocprofiler_thread_trace_decoder_record_type_t__enumvalues[record_type], events_ptr, n) return rocprof.ROCPROFILER_THREAD_TRACE_DECODER_STATUS_SUCCESS @rocprof.rocprof_trace_decoder_isa_callback_t