expert cache: a slot guard for STRATA_MMQ_DIRECT (set_slot_guard), the sizing sites use slot_stride
ExpertCache gets inline set_slot_guard / slot_guard / slot_stride / slot_room / slot_tail; the 4-argument open_sized declaration is unchanged (the SYCL engine defines it out of line against the same header and ignores the guard). open_sized lays slots out at slot_stride(blob, guard); blob_ stays the largest blob, so fills, verify_slot and the HIP staging read no further. slot_tail works on uniform caches too (through slot_offset). generate.cpp: slot_guard = Prefill::slot_guard_bytes() (mmq::direct_slot_guard(): 256 when STRATA_MMQ_DIRECT is 1 or 2 on a pointer-table build, else 0) for native packs; the seven round-256 slot costs (split-skip-if-fits, split placement, per-layer sum, profile sizing, shrink_to, cache_bytes, stage sizing) use ExpertCache::slot_stride(b, slot_guard), and the primary and stage caches get set_slot_guard before they open. Guard 0: the same arithmetic as before, so the default layout is unchanged byte for byte.
This commit is contained in:
1 parent
86f677b4a9
commit
b82cdb1090
5 files changed
+47
-10
No files matched your search
@@ -1978,6 +1978,7 @@ void Prefill::arm_cpu_share(bool applies, bool by_default) {
|
||||
}
|
||||
|
||||
bool Prefill::ring_bytes_enabled() { return ring_bytes_on(); }
|
||||
size_t Prefill::slot_guard_bytes() { return mmq::direct_slot_guard(); }
|
||||
|
||||
namespace {
|
||||
|
||||
|
||||
Reference in new issue
Block a user