Fix Intel ONNX runtime
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user