Fix AMD and OpenVINO
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user