From 4a374c60d7cac708907005915cd6719e050e340d Mon Sep 17 00:00:00 2001 From: jjyaoao <88936287+jjyaoao@users.noreply.github.com> Date: Thu, 13 Apr 2023 21:12:59 +0800 Subject: [PATCH] delete WITH_ASCEND_CL (#52825) * delete WITH_ASCEND_CL * delete NPU/ and WITH_MLU --- paddle/fluid/operators/controlflow/while_op_helper.cc | 6 +++--- paddle/phi/backends/context_pool.cc | 2 +- tools/coverage/paddle_coverage_new.sh | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/paddle/fluid/operators/controlflow/while_op_helper.cc b/paddle/fluid/operators/controlflow/while_op_helper.cc index bab4395803f..38865a1c53e 100644 --- a/paddle/fluid/operators/controlflow/while_op_helper.cc +++ b/paddle/fluid/operators/controlflow/while_op_helper.cc @@ -233,9 +233,9 @@ bool GetCondData(const phi::DenseTensor &cond) { framework::TensorCopySync(cond, platform::CPUPlace(), cpu_cond.get()); #else PADDLE_THROW(platform::errors::PreconditionNotMet( - "This version of PaddlePaddle does NOT support GPU/NPU/XPU but got " - "GPU/NPU/XPU tensor Cond in WhileOp. Please compile WITH_GPU or " - "WITH_ASCEND_CL or WITH_XPU option.")); + "This version of PaddlePaddle does NOT support GPU/XPU but got " + "GPU/XPU tensor Cond in WhileOp. Please compile WITH_GPU or " + "WITH_XPU option.")); #endif return cpu_cond->data()[0]; } diff --git a/paddle/phi/backends/context_pool.cc b/paddle/phi/backends/context_pool.cc index b05aa51205a..e295ac388d8 100644 --- a/paddle/phi/backends/context_pool.cc +++ b/paddle/phi/backends/context_pool.cc @@ -72,7 +72,7 @@ phi::DeviceContext* DeviceContextPool::Get(const phi::Place& place) { if (it == ptr->end()) { PADDLE_THROW(phi::errors::Unimplemented( "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 " "that your train process set the correct device id if you use " "Executor.", diff --git a/tools/coverage/paddle_coverage_new.sh b/tools/coverage/paddle_coverage_new.sh index 8cf43664a45..656b3588ac6 100644 --- a/tools/coverage/paddle_coverage_new.sh +++ b/tools/coverage/paddle_coverage_new.sh @@ -116,8 +116,6 @@ function gen_full_html_report_npu() { # if [ ${WITH_XPU:-OFF} == "ON" ]; then # gen_full_html_report_xpu || true -# elif [ ${WITH_ASCEND_CL:-OFF} == "ON" ]; then -# gen_full_html_report_npu || true # else # gen_full_html_report || true # fi -- GitLab