Skip to content

Conversation

@xkkkkkk23
Copy link
Contributor

@xkkkkkk23 xkkkkkk23 commented Feb 25, 2025

PR Category

CINN

PR Types

Improvements

Description

softmax算子初始编译后只会产生一个kernel,其中分配1024个线程,这对于小规模输入来说,有大量资源闲置浪费,修改后,细化分桶,为不同规模输入分配不同的线程组合及计算策略。其次,kernel中的for循环的判断条件需要每次重复进行计算,严重拉慢运算速度,修改后为其设置定值,提升速度。

Pcard-85711

@paddle-bot
Copy link

paddle-bot bot commented Feb 25, 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.

@paddle-bot paddle-bot bot added the contributor External developers label Feb 25, 2025
@swgu98 swgu98 requested review from liuruyan and removed request for liuruyan February 25, 2025 08:54
@xkkkkkk23 xkkkkkk23 closed this Feb 27, 2025
@xkkkkkk23 xkkkkkk23 reopened this Feb 27, 2025
@lshpku lshpku merged commit 4e50e5c into PaddlePaddle:develop Feb 28, 2025
33 checks passed
Enigmatisms pushed a commit to Enigmatisms/Paddle that referenced this pull request Mar 6, 2025
…Paddle#71263)

* [CINN]Softmax optimization based on bucket splitting strategy
YqGe585 pushed a commit to YqGe585/Paddle that referenced this pull request May 7, 2025
…Paddle#71263)

* [CINN]Softmax optimization based on bucket splitting strategy
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.

2 participants