Skip to content

[CINN] Explicitly set block launch bound for grid reduce #72191

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 1 commit into from
Apr 11, 2025

Conversation

lshpku
Copy link
Contributor

@lshpku lshpku commented Apr 11, 2025

PR Category

CINN

PR Types

Bug fixes

Description

显式设置grid reduce的min_blocks_per_sm大小,避免编译器分配寄存器过多导致无法launch

注:nvrtc和nvcc的表现还不太一样,nvcc不设置也行,但是nvrtc报错了,所以还是设置一下

TODO:避免直接写1024这样的常数,但是这个要改的话需要从一开始的tile config就开始改,修改内容较多,所以之后再系统改

Pcard-85711

Copy link

paddle-bot bot commented Apr 11, 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.

@lshpku lshpku merged commit 207e34a into PaddlePaddle:develop Apr 11, 2025
33 of 34 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