diff --git a/paddle/fluid/framework/op_kernel_type.h b/paddle/fluid/framework/op_kernel_type.h index 78b38eed080b71abc6546033a546c9ff11fb6924..a609313e84800543f39904e5bc2f293bd3db32db 100644 --- a/paddle/fluid/framework/op_kernel_type.h +++ b/paddle/fluid/framework/op_kernel_type.h @@ -19,8 +19,8 @@ limitations under the License. */ #include "paddle/fluid/framework/data_layout.h" #include "paddle/fluid/framework/data_type.h" #include "paddle/fluid/framework/library_type.h" -#include "paddle/fluid/platform/device_context.h" #include "paddle/fluid/platform/place.h" +#include "paddle/phi/core/device_context.h" namespace paddle { namespace framework { @@ -50,7 +50,7 @@ class OpKernelType { customized_type_value_(customized_type_value) {} OpKernelType(proto::VarType::Type data_type, - const platform::DeviceContext& dev_ctx, + const phi::DeviceContext& dev_ctx, DataLayout data_layout = DataLayout::kAnyLayout, LibraryType library_type = LibraryType::kPlain, int customized_type_value = kDefaultCustomizedTypeValue) diff --git a/paddle/fluid/platform/device/xpu/xpu_op_list.h b/paddle/fluid/platform/device/xpu/xpu_op_list.h index e008e9d111c53f4690afc31c8a935a9b69180a32..d701294865d6defcf016e8820a42d308be180555 100644 --- a/paddle/fluid/platform/device/xpu/xpu_op_list.h +++ b/paddle/fluid/platform/device/xpu/xpu_op_list.h @@ -15,6 +15,7 @@ limitations under the License. */ #include #include "paddle/fluid/framework/op_kernel_type.h" +#include "paddle/fluid/platform/device/xpu/xpu_info.h" #include "paddle/phi/backends/xpu/xpu_op_list.h" namespace paddle {