mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-10 02:50:19 +08:00
[XPU] Support XPU via Paddle Inference backend (#1987)
* [backend] Support XPU via Paddle Inference backend * [backend] Support XPU via Paddle Inference backend * [backend] Support XPU via Paddle Inference backend * [XPU] support XPU benchmark via paddle inference * [XPU] support XPU benchmark via paddle inference * [benchmark] add xpu paddle h2d config files
This commit is contained in:
@@ -114,10 +114,11 @@ else()
|
||||
endif()
|
||||
set(PADDLEINFERENCE_VERSION "0.0.0.660f781b77")
|
||||
else()
|
||||
# Linux with x86 CPU/Arm CPU/GPU/IPU ...
|
||||
# Linux with x86/aarch64 CPU/Arm CPU/GPU/IPU ...
|
||||
if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64")
|
||||
message(FATAL_ERROR "Paddle Backend doesn't support linux aarch64 now.")
|
||||
else()
|
||||
# x86_64
|
||||
if(WITH_GPU)
|
||||
set(PADDLEINFERENCE_FILE "paddle_inference-linux-x64-gpu-trt8.5.2.2-mkl-avx-0.0.0.660f781b77.tgz")
|
||||
set(PADDLEINFERENCE_VERSION "0.0.0.660f781b77")
|
||||
@@ -125,14 +126,18 @@ else()
|
||||
set(PADDLEINFERENCE_FILE "paddle_inference-linux-x64-mkl-avx-0.0.0.660f781b77.tgz")
|
||||
set(PADDLEINFERENCE_VERSION "0.0.0.660f781b77")
|
||||
endif()
|
||||
if (WITH_IPU)
|
||||
if(WITH_IPU)
|
||||
set(PADDLEINFERENCE_FILE "paddle_inference-linux-x64-ipu-2.4-dev1.tgz")
|
||||
# TODO(qiuyanjun): Should use the commit id to tag the version
|
||||
set(PADDLEINFERENCE_VERSION "2.4-dev1")
|
||||
endif()
|
||||
if(WITH_KUNLUNXIN)
|
||||
set(PADDLEINFERENCE_FILE "paddle_inference-linux-x64-xpu-openblas-0.0.0.021fd73536.tgz")
|
||||
set(PADDLEINFERENCE_VERSION "0.0.0.021fd73536")
|
||||
endif()
|
||||
|
||||
if(NEED_ABI0)
|
||||
if(WITH_GPU OR WITH_PU)
|
||||
if(WITH_GPU OR WITH_IPU OR WITH_KUNLUNXIN)
|
||||
message(WARNING "While NEED_ABI0=ON, only support CPU now, will fallback to CPU.")
|
||||
endif()
|
||||
set(PADDLEINFERENCE_FILE "paddle_inference-linux-x64-2.4.0-abi0.tgz")
|
||||
|
Reference in New Issue
Block a user