upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTheGeogeo <57634077+TheGeogeo@users.noreply.github.com>2026-11-25 13:42:21 +0100
committerTheGeogeo <57634077+TheGeogeo@users.noreply.github.com>2026-11-25 15:11:10 +0100
commit4aa21d1a83f4a7954ca79111fffb0d4aba674bf2 (patch)
tree054c5713374e505eef12b3ef9a202adae6027dcd /docs
parent71a769d7d85208f86c6e2e50263aca7df1becce9 (diff)
runtime: large compiles wait for memory in arrival order, demand before speculative (RT-BIG-COMPUTE-BUDGET)
LargeModuleGate moves to runtime/src (a forwarding header keeps vk_pipeline_check and its test as they are) and gets a second constructor, whose budget is read whenever a place is given or returned. Its modules get in in the order they came, a speculative one only while no demand waits and within a quarter of the budget. large_compile_budget_bytes() is three quarters of the smaller of the free RAM and the room under the commit limit. CPU test: the bound, one always, order, priority, every wake-up, the budget of the moment and the setting.
Diffstat (limited to 'docs')
-rw-r--r--docs/pipeline_check.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/pipeline_check.md b/docs/pipeline_check.md
index d5d76cb93..47e3a409c 100644
--- a/docs/pipeline_check.md
+++ b/docs/pipeline_check.md
@@ -256,7 +256,7 @@ acceptance only.
256 256
257A SPIR-V module larger than 4 MiB is "large". [#884](https://github.com/ItsNotRexed/Leonida/issues/884) 257A SPIR-V module larger than 4 MiB is "large". [#884](https://github.com/ItsNotRexed/Leonida/issues/884)
258showed why that matters: several compiles that each needed gigabytes of host RAM ran at the same time. Large 258showed why that matters: several compiles that each needed gigabytes of host RAM ran at the same time. Large
259modules now share a memory budget (`runtime/test/large_module_gate.h`): each one reserves 512 bytes of RAM per 259modules now share a memory budget (`runtime/src/large_module_gate.h`): each one reserves 512 bytes of RAM per
260SPIR-V byte, and they enter the driver while their reservations fit three quarters of the memory available when 260SPIR-V byte, and they enter the driver while their reservations fit three quarters of the memory available when
261the run starts, up to `--jobs` of them. One large module always gets in when none is compiling, so a module 261the run starts, up to `--jobs` of them. One large module always gets in when none is compiling, so a module
262bigger than the whole budget still compiles, alone among the large ones. Small modules are never held back. On 262bigger than the whole budget still compiles, alone among the large ones. Small modules are never held back. On