This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Code000andClaude Opus 5.5 7bd195d394 vram: charge the runtime's resident queue scratch to the card budget
Once a kernel with a private segment has been dispatched (rad_step_advance has
544 bytes a lane), the HSA runtime hands its queue scratch memory and keeps it:
about +114 MiB on a card after the first speculative step, +150 MiB with a
larger segment, with or without HSA_NO_SCRATCH_RECLAIM. The VRAM budget does
not count it, so a serving process was left with only 27-65 MiB free after its
first speculative steps -- a thin margin for any kernel that later takes a
bigger private segment (the runtime then faults the queue with OUT_OF_RESOURCES
instead of failing the load).

The backend now reports rad_dev_resident_scratch_bytes(): 5 MiB per CU (160 MiB
on an R9700, which reports 32), over the measured 114-150 MiB, and 0 on the
host backend and on unified memory. The engine puts it into VramFacts::
queue_scratch, and the budget charges it with the hardware queues (the
resolver, vram_budget_need, and the report line).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 18:18:56 +01:00
..
2026-10-16 18:25:18 +02:00
2026-10-16 18:25:18 +02:00
2026-11-15 16:00:05 +01:00
2026-11-15 16:00:05 +01:00
2026-11-15 16:00:05 +01:00
2026-11-15 16:00:05 +01:00
2026-11-14 22:32:28 +01:00
2026-10-16 18:25:18 +02:00
2026-11-15 16:00:05 +01:00
2026-11-15 16:00:05 +01:00
2026-11-14 22:32:28 +01:00