viz: web work from rdna4 gemm (#15607)

* add rdna4 barrier

* fix realtime
This commit is contained in:
qazal 2026-04-05 13:14:16 +03:00 committed by GitHub
commit 056fcd7758
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -264,7 +264,7 @@ function timeAtCycle(clk) {
let cur = data.instSt, ns = 0, freq = null;
// walk through all frequency changes and accumulate time in nanoseconds
for (const [s, v] of data.tracks.get("Shader Clock").valueMap) {
if (freq != null && cur < s) {
if (freq != null && freq > 0 && cur < s) {
const et = Math.min(clk, s);
ns += (et - cur) * 1e9 / freq;
cur = et;

View file

@ -388,7 +388,7 @@ def sqtt_timeline(data:bytes, lib:bytes, target:str) -> Generator[ProfileEvent,
# barrier on this wave extends to fill the time it was waiting
if wave is not None:
if (barrier:=curr_barrier.pop(wave, None)) is not None: barrier.en = Decimal(p._time)
if name == "BARRIER": curr_barrier[wave] = e
if name in {"BARRIER", "BARRIER_SIGNAL"}: curr_barrier[wave] = e
NS_PER_TICK = 10 # 100MHz
prev_pair:tuple[int, int]|None = None # (shader, realtime)
yield ProfilePointEvent("", "JSON", "waveColors", list(wave_colors.items()), ts=Decimal(0))