From 394a7179b5918fe087c2132f35a10c35b7227627 Mon Sep 17 00:00:00 2001 From: houj04 <35131887+houj04@users.noreply.github.com> Date: Mon, 21 Nov 2022 13:54:57 +0800 Subject: [PATCH] add check_xpu_dependence.sh script. (#48154) --- cmake/external/xpu.cmake | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cmake/external/xpu.cmake b/cmake/external/xpu.cmake index a616387c09..3b09f92081 100644 --- a/cmake/external/xpu.cmake +++ b/cmake/external/xpu.cmake @@ -56,6 +56,9 @@ set(XPU_XCCL_URL set(XPU_PACK_DEPENCE_URL "https://baidu-kunlun-public.su.bcebos.com/paddle_depence/pack_paddle_depence.sh" CACHE STRING "" FORCE) +set(XPU_CHECK_DEPENCE_URL + "https://baidu-kunlun-public.su.bcebos.com/paddle_depence/check_xpu_dependence.sh" + CACHE STRING "" FORCE) set(SNAPPY_PREFIX_DIR "${THIRD_PARTY_PATH}/xpu") set(XPU_DOWNLOAD_DIR "${SNAPPY_PREFIX_DIR}/src/${XPU_PROJECT}") @@ -80,9 +83,10 @@ ExternalProject_Add( PREFIX ${SNAPPY_PREFIX_DIR} DOWNLOAD_DIR ${XPU_DOWNLOAD_DIR} DOWNLOAD_COMMAND - wget ${XPU_PACK_DEPENCE_URL} && bash pack_paddle_depence.sh ${XPU_XRE_URL} - ${XPU_XRE_DIR_NAME} ${XPU_XDNN_URL} ${XPU_XDNN_DIR_NAME} ${XPU_XCCL_URL} - ${XPU_XCCL_DIR_NAME} + wget ${XPU_CHECK_DEPENCE_URL} && bash check_xpu_dependence.sh + ${XPU_BASE_URL} ${XPU_XCCL_BASE_URL} && wget ${XPU_PACK_DEPENCE_URL} && bash + pack_paddle_depence.sh ${XPU_XRE_URL} ${XPU_XRE_DIR_NAME} ${XPU_XDNN_URL} + ${XPU_XDNN_DIR_NAME} ${XPU_XCCL_URL} ${XPU_XCCL_DIR_NAME} DOWNLOAD_NO_PROGRESS 1 UPDATE_COMMAND "" CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${XPU_INSTALL_ROOT} -- GitLab