upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 18:37:48 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 18:37:48 -0500
commitfc71534883424112a7ea08fefe5b820fc4ee58aa (patch)
treeab8f2d564c61630f8adb9547a56f7ca84219f2b6 /runtime/src
parent3a2820b3bff812ff3cff6a4d4087912edb0541bb (diff)
Make the live compute warm-up limit opt-in; main's warm-up stays the default
#2098's LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES defaulted to 128 KiB, so while the title submits it skipped exactly the large modules main's warm-up (#1889) exists to build, with LargeModuleGate already ordering them behind a submission's compiles. At the maintainers' decision ("main wins") it is opt-in now: unset or 0 is no limit, as on main; <n> leaves warm-ups of modules over n bytes to their first use while the title submits, as #2098 measured with 131072. This reverts the test-side override of fb60a1cf4: d3d12_big_compute_warmup runs with main's environment again. The switch is documented in runtime/README.md beside the other #2098 switches, and in docs/d3d12_vulkan.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/pipeline_wait.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/src/pipeline_wait.h b/runtime/src/pipeline_wait.h
index b9e7ba936..2d74d8581 100644
--- a/runtime/src/pipeline_wait.h
+++ b/runtime/src/pipeline_wait.h
@@ -1,7 +1,7 @@
1#pragma once 1#pragma once
2// When the title last submitted, for the compute warm-ups (runtime/shims/d3d12_vulkan_device.cpp, 2// When the title last submitted, for the compute warm-ups (runtime/shims/d3d12_vulkan_device.cpp,
3// LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES): while the title submits, a warm-up of a big module is left to the pipeline's 3// LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES, opt-in): while the title submits, a warm-up of a big module is left to the
4// first use, since a create holds the compile gate for its whole length and every submission waits behind it. 4// pipeline's first use, since a create holds the compile gate for its whole length and every submission waits behind it.
5// No windows.h here: vulkan_backend.h includes this, and translation units without NOMINMAX include that. 5// No windows.h here: vulkan_backend.h includes this, and translation units without NOMINMAX include that.
6#include <atomic> 6#include <atomic>
7#include <chrono> 7#include <chrono>