-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Phi decouple] remove dependece to "paddle/fluid/platform/device/xpu/xxx.h" in phi #48420
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@YuanRisheng ,帮忙 review 一下。 |
这个PR暂时不要合入,待我找xpu负责人review后再合入 |
明白了 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@luotao1 ,这个 PR 相关的两个头文件已经清理完了,帮忙在 tracking issue 里备注一下。 |
@huangjiyi 已更新 |
PR types
Others
PR changes
Others
Describe
移除
phi
对paddle/fluid/platform/device/xpu
目录下两个头文件xpu_header.h
和xpu_op_list.h
的依赖。#include "paddle/fluid/platform/device/xpu/xpu_header.h"
替换为#include "paddle/phi/backends/xpu/xpu_header.h"
.xpu_op_list.h
,xpu_op_list.cc
中phi
用到的函数移动至paddle/phi/backends/xpu
目录下,并修改相应的 cmake 文件。