[Bug Fix] fix bug in benchmark option.h

This commit is contained in:
DefTruth
2023-03-17 23:17:01 +08:00
committed by GitHub
parent 6af3691568
commit 876cc645cb

View File

@@ -86,7 +86,7 @@ static bool CreateRuntimeOption(fastdeploy::RuntimeOption* option,
}
} else if (config_info["device"] == "xpu") {
if (FLAGS_xpu_l3_cache >= 0) {
option->UseKunlunXin(std::stoi(config_info["device_id"],
option->UseKunlunXin(std::stoi(config_info["device_id"]),
FLAGS_xpu_l3_cache);
} else {
option->UseKunlunXin(std::stoi(config_info["device_id"]),