mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-25 17:40:35 +08:00
[XPU] Update Lite XPU lib and fixed some bugs (#1647)
This commit is contained in:
@@ -85,8 +85,13 @@ static bool CreateRuntimeOption(fastdeploy::RuntimeOption* option,
|
||||
return false;
|
||||
}
|
||||
} else if (config_info["device"] == "xpu") {
|
||||
option->UseKunlunXin(std::stoi(config_info["device_id"]),
|
||||
std::stoi(config_info["xpu_l3_cache"]));
|
||||
if (FLAGS_xpu_l3_cache >= 0) {
|
||||
option->UseKunlunXin(std::stoi(config_info["device_id"],
|
||||
FLAGS_xpu_l3_cache);
|
||||
} else {
|
||||
option->UseKunlunXin(std::stoi(config_info["device_id"]),
|
||||
std::stoi(config_info["xpu_l3_cache"]));
|
||||
}
|
||||
if (config_info["backend"] == "ort") {
|
||||
option->UseOrtBackend();
|
||||
} else if (config_info["backend"] == "paddle") {
|
||||
|
||||
Reference in New Issue
Block a user