mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
[XPU] Update Lite XPU lib & add l3 cache benchmark option (#1503)
* [XPU] Update Lite XPU lib & add l3 cache benchmark option * Update build_linux_x86_64_cpp_xpu_with_benchmark.sh * Update kunlunxin.cmake * Update build_linux_x86_64_cpp_xpu_with_benchmark.sh
This commit is contained in:
@@ -10,4 +10,5 @@ use_fp16: false
|
||||
collect_memory_info: false
|
||||
sampling_interval: 1
|
||||
precision_compare: false
|
||||
xpu_l3_cache: 0
|
||||
result_path: benchmark_cpu.txt
|
||||
|
@@ -76,7 +76,8 @@ static bool CreateRuntimeOption(fastdeploy::RuntimeOption* option,
|
||||
return false;
|
||||
}
|
||||
} else if (config_info["device"] == "xpu") {
|
||||
option->UseKunlunXin(std::stoi(config_info["device_id"]));
|
||||
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