diff --git a/cmake/external/xpu.cmake b/cmake/external/xpu.cmake index a616387c0905e5c0557850ad9ffa26d66b619465..3b09f92081e4e9d57f7da81572ec7242764e62fb 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}