From c2c1cfc78f31e1d58fee573be9f9c6160b7e2287 Mon Sep 17 00:00:00 2001 From: zhangyikun02 <48021248+zhangyk0314@users.noreply.github.com> Date: Tue, 7 Mar 2023 11:37:59 +0800 Subject: [PATCH] remove enforce.h in paddle/phi/backends/xpu/xpu_header.h (#51218) --- paddle/phi/backends/xpu/xpu_context.h | 2 +- paddle/phi/backends/xpu/xpu_header.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/paddle/phi/backends/xpu/xpu_context.h b/paddle/phi/backends/xpu/xpu_context.h index 2c963bcdec2..79b8dc2f04b 100644 --- a/paddle/phi/backends/xpu/xpu_context.h +++ b/paddle/phi/backends/xpu/xpu_context.h @@ -19,10 +19,10 @@ limitations under the License. */ #include #include "paddle/phi/backends/xpu/forwards.h" +#include "paddle/phi/backends/xpu/xpu_header.h" #include "paddle/phi/backends/xpu/xpu_info.h" #include "paddle/phi/common/place.h" #include "paddle/phi/core/device_context.h" -#include "xpu/runtime.h" namespace Eigen { struct DefaultDevice; diff --git a/paddle/phi/backends/xpu/xpu_header.h b/paddle/phi/backends/xpu/xpu_header.h index ca4ea6145ca..5b6c06ac36a 100644 --- a/paddle/phi/backends/xpu/xpu_header.h +++ b/paddle/phi/backends/xpu/xpu_header.h @@ -21,7 +21,6 @@ limitations under the License. */ #include "paddle/phi/common/bfloat16.h" #include "paddle/phi/common/float16.h" -#include "paddle/phi/core/enforce.h" #include "xpu/runtime.h" #include "xpu/runtime_ex.h" #include "xpu/xdnn.h" -- GitLab