Fix AMD and OpenVINO

This commit is contained in:
2026-04-08 13:45:52 +10:00
parent a4a8caaa86
commit 69787b0ff0
15 changed files with 1209 additions and 132 deletions

View File

@@ -179,9 +179,12 @@ namespace ANSCENTER {
EngineType EPLoader::AutoDetect()
{
std::cout << "[EPLoader] Auto-detecting hardware..." << std::endl;
ANS_DBG("EPLoader", "AutoDetect: starting hardware detection");
ANSLicenseHelper helper;
EngineType detected = helper.CheckHardwareInformation();
std::cout << "[EPLoader] Detected: " << EngineTypeName(detected) << std::endl;
ANS_DBG("EPLoader", "AutoDetect: result=%d (%s)",
static_cast<int>(detected), EngineTypeName(detected));
return detected;
}
@@ -217,6 +220,9 @@ namespace ANSCENTER {
s_info.fromSubdir = (ep_dir != shared_dir);
s_initialized = true;
ANS_DBG("EPLoader", "Initialize: EP=%d (%s) dir=%s fromSubdir=%d",
static_cast<int>(type), EngineTypeName(type),
ep_dir.c_str(), s_info.fromSubdir ? 1 : 0);
std::cout << "[EPLoader] Ready. EP=" << EngineTypeName(type)
<< " dir=" << ep_dir << std::endl;
return s_info;