未验证 提交 4a374c60 编写于 作者: J jjyaoao 提交者: GitHub

delete WITH_ASCEND_CL (#52825)

* delete WITH_ASCEND_CL

* delete NPU/ and WITH_MLU
上级 48ccb785
...@@ -233,9 +233,9 @@ bool GetCondData(const phi::DenseTensor &cond) { ...@@ -233,9 +233,9 @@ bool GetCondData(const phi::DenseTensor &cond) {
framework::TensorCopySync(cond, platform::CPUPlace(), cpu_cond.get()); framework::TensorCopySync(cond, platform::CPUPlace(), cpu_cond.get());
#else #else
PADDLE_THROW(platform::errors::PreconditionNotMet( PADDLE_THROW(platform::errors::PreconditionNotMet(
"This version of PaddlePaddle does NOT support GPU/NPU/XPU but got " "This version of PaddlePaddle does NOT support GPU/XPU but got "
"GPU/NPU/XPU tensor Cond in WhileOp. Please compile WITH_GPU or " "GPU/XPU tensor Cond in WhileOp. Please compile WITH_GPU or "
"WITH_ASCEND_CL or WITH_XPU option.")); "WITH_XPU option."));
#endif #endif
return cpu_cond->data<bool>()[0]; return cpu_cond->data<bool>()[0];
} }
......
...@@ -72,7 +72,7 @@ phi::DeviceContext* DeviceContextPool::Get(const phi::Place& place) { ...@@ -72,7 +72,7 @@ phi::DeviceContext* DeviceContextPool::Get(const phi::Place& place) {
if (it == ptr->end()) { if (it == ptr->end()) {
PADDLE_THROW(phi::errors::Unimplemented( PADDLE_THROW(phi::errors::Unimplemented(
"Place %s is not supported. Please check that your paddle compiles " "Place %s is not supported. Please check that your paddle compiles "
"with WITH_GPU, WITH_XPU, WITH_IPU, WITH_MLU or WITH_ASCEND_CL option " "with WITH_GPU, WITH_XPU or WITH_IPU option "
"or check " "or check "
"that your train process set the correct device id if you use " "that your train process set the correct device id if you use "
"Executor.", "Executor.",
......
...@@ -116,8 +116,6 @@ function gen_full_html_report_npu() { ...@@ -116,8 +116,6 @@ function gen_full_html_report_npu() {
# if [ ${WITH_XPU:-OFF} == "ON" ]; then # if [ ${WITH_XPU:-OFF} == "ON" ]; then
# gen_full_html_report_xpu || true # gen_full_html_report_xpu || true
# elif [ ${WITH_ASCEND_CL:-OFF} == "ON" ]; then
# gen_full_html_report_npu || true
# else # else
# gen_full_html_report || true # gen_full_html_report || true
# fi # fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册