Skip to content
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

Merged
merged 5 commits into from
Nov 28, 2022

Conversation

huangjiyi
Copy link
Member

@huangjiyi huangjiyi commented Nov 27, 2022

PR types

Others

PR changes

Others

Describe

移除 phipaddle/fluid/platform/device/xpu 目录下两个头文件 xpu_header.hxpu_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.ccphi 用到的函数移动至 paddle/phi/backends/xpu 目录下,并修改相应的 cmake 文件。

@paddle-bot
Copy link

paddle-bot bot commented Nov 27, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added contributor External developers status: proposed labels Nov 27, 2022
@huangjiyi
Copy link
Member Author

@YuanRisheng ,帮忙 review 一下。

@YuanRisheng
Copy link
Contributor

这个PR暂时不要合入,待我找xpu负责人review后再合入

@huangjiyi
Copy link
Member Author

这个PR暂时不要合入,待我找xpu负责人review后再合入

明白了

Copy link
Contributor

@QingshuChen QingshuChen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YuanRisheng YuanRisheng merged commit 2bae75e into PaddlePaddle:develop Nov 28, 2022
@huangjiyi
Copy link
Member Author

@luotao1 ,这个 PR 相关的两个头文件已经清理完了,帮忙在 tracking issue 里备注一下。

@luotao1
Copy link
Contributor

luotao1 commented Nov 28, 2022

这个 PR 相关的两个头文件已经清理完了,帮忙在 tracking issue 里备注一下。

@huangjiyi 已更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants