Fix Intel ONNX runtime

This commit is contained in:
2026-04-10 17:13:47 +10:00
parent eb863bf510
commit 257145c429
5 changed files with 104 additions and 2 deletions

View File

@@ -230,6 +230,14 @@ namespace ANSCENTER {
// Initialise ORT engine from the resolved model path
bool InitOrtEngine();
// Run a few dummy inferences after session creation to force
// DirectML shader compile + kernel cache warm-up BEFORE the first
// real frame arrives. On AMD RDNA2 iGPUs (Radeon 680M) the first
// real inference can otherwise take several seconds of GPU time
// while compiling shaders, which has triggered amdkmdag.sys
// bugchecks under DirectML 1.15.4. Non-fatal on failure.
void WarmUpEngine();
public:
// Initialise ORT engine with explicit engine type override (e.g. CPU fallback for AMD iGPUs)
bool InitOrtEngine(ANSCENTER::EngineType engineType);