未验证 提交 4588892a 编写于 作者: X XiaociZhang 提交者: GitHub

[XPU] fix compile issue for XPTI (#54800)

* [XPU] fix compile issue for XPTI

* bugfix

* bugfix
上级 b7fbd339
......@@ -429,6 +429,14 @@ if(NOT WITH_XPU AND WITH_XPU_XFT)
CACHE STRING "Enable WITH_XPU when compiling with WITH_XPU_XFT" FORCE)
endif()
if(NOT WITH_XPU AND WITH_XPTI)
message(
WARNING "Disable XPTI when compiling without XPU. Force WITH_XPTI=OFF.")
set(WITH_XPTI
OFF
CACHE STRING "Disable XPTI when compiling without XPU" FORCE)
endif()
if(NOT WITH_XPU AND WITH_XPU_BKCL)
message(
WARNING "Disable BKCL when compiling without XPU. Force WITH_XPU_BKCL=OFF.")
......
......@@ -137,7 +137,7 @@ ExternalProject_Add(
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_XFT_GET_DEPENCE_URL} && bash get_xft_dependence.sh ${XPU_XFT_URL}
${XPU_XFT_DIR_NAME} [ -n "$WITH_XPTI" ] && bash
${XPU_XFT_DIR_NAME} && bash
${CMAKE_SOURCE_DIR}/tools/xpu/get_xpti_dependence.sh ${XPU_XPTI_URL}
${XPU_XPTI_DIR_NAME}
DOWNLOAD_NO_PROGRESS 1
......
......@@ -19,6 +19,10 @@ set -ex
XPTI_URL=$1
XPTI_DIR_NAME=$2
if ! [ -n "$WITH_XPTI" ]; then
exit 0
fi
wget --no-check-certificate ${XPTI_URL} -c -q -O xpti.tar.gz
if [[ $? -ne 0 ]]; then
echo "downloading failed: ${XPTI_URL}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册