diff --git a/cmake/external/lite.cmake b/cmake/external/lite.cmake index c48f2cb0467cf842db167d7b46d651dad14cd787..e213068377b1409595cac9b6169fe7605cff059c 100644 --- a/cmake/external/lite.cmake +++ b/cmake/external/lite.cmake @@ -108,7 +108,7 @@ if (NOT LITE_SOURCE_DIR OR NOT LITE_BINARY_DIR) -DLITE_WITH_STATIC_CUDA=OFF -DCUDA_ARCH_NAME=${CUDA_ARCH_NAME} -DLITE_WITH_XPU=${LITE_WITH_XPU} - -DXPU_SDK_URL=${XPU_SDK_URL} + -DXPU_SDK_URL=${XPU_BASE_URL} -DXPU_SDK_ENV=${XPU_SDK_ENV} -DLITE_WITH_CODE_META_INFO=OFF -DLITE_WITH_ARM=OFF) diff --git a/cmake/inference_lib.cmake b/cmake/inference_lib.cmake index 8a18fa4a5512b39aa1bcd10bbd7589bdde600ab5..e859ef40ed47fb9c79c8065452d3621f57520d8f 100644 --- a/cmake/inference_lib.cmake +++ b/cmake/inference_lib.cmake @@ -154,6 +154,13 @@ IF(WITH_GPU) DSTS ${dst_dir}) ENDIF() +IF(WITH_XPU) + set(dst_dir "${PADDLE_INFERENCE_INSTALL_DIR}/third_party/install/xpu") + copy(inference_lib_dist + SRCS ${XPU_INC_DIR} ${XPU_LIB_DIR} + DSTS ${dst_dir} ${dst_dir}) +ENDIF() + # CMakeCache Info copy(inference_lib_dist SRCS ${CMAKE_CURRENT_BINARY_DIR}/CMakeCache.txt