Skip to content

Probe the runtime adapter before warming the shader cache - #815

Draft
Kamiloj9 wants to merge 2 commits into
fxceless:mainfrom
Kamiloj9:codex/warm-adapter-cache-key
Draft

Kamiloj9 wants to merge 2 commits into
fxceless:mainfrom
Kamiloj9:codex/warm-adapter-cache-key

Conversation

@Kamiloj9

@Kamiloj9 Kamiloj9 commented Nov 25, 2026 •

Copy link
Copy Markdown

Change

Probe the host adapter's wave size and view-heap limit before translate --warm starts worker threads. The default cache keys then match normal pipeline translation. Preserve explicit VICTORY_HOST_WAVE and VICTORY_VIEW_LIMIT overrides. When both values are supplied, warming works without initializing a local device.

Verification

  • Workspace check, asset policy and independent code review.
  • On RTX, two CLI runs over an isolated capture first translated the shader, then found it in the cache. A separate local title process with the same build and adapter read the exact prewarmed cache entry and created the compute PSO.
  • After the override follow-up, detected adapter facts and explicitly specified matching facts produced the same cache entry. Changing the specified wave size produced a distinct entry. The replay measured cache reuse only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant