Skip to content

[CINN] PostProcess supports x86 composite reduce #72370

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

Merged
merged 4 commits into from
Apr 23, 2025

Conversation

Enigmatisms
Copy link
Contributor

@Enigmatisms Enigmatisms commented Apr 19, 2025

PR Category

CINN

PR Types

Improvements

Description

The following PRs forms the support for x86 end composite reduce (Welford variance & argmin/argmax):

This PR extends the post process module, including the RealizeCompositeReducePass and the Optimize function (minor):

  • Instead of creating arithmetic CINN IR nodes (like ir::Max, ir::Add), as in the GPU pass, we replace the node with x86 intrinsic function calls.
  • Buffers are correctly re-routed, since x86 passes won't go through scheduling.
  • Recompute for LoweredFunc to have updated buffers and their corresponding types.

Pcard-89620

Copy link

paddle-bot bot commented Apr 19, 2025

你的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.

@Enigmatisms Enigmatisms requested a review from lshpku April 23, 2025 07:46
@lshpku lshpku merged commit e0c63fe into PaddlePaddle:develop Apr 23, 2025
36 of 37 checks passed
YqGe585 pushed a commit to YqGe585/Paddle that referenced this pull request May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants