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

Add generator scripts for cutlass #50364

Merged
merged 10 commits into from
Feb 20, 2023
Merged

Conversation

umiswing
Copy link
Member

@umiswing umiswing commented Feb 9, 2023

PR types

Others

PR changes

Others

Describe

由于cutlass可选的kernel配置较多,手写kernel定义会导致代码行数变得很多,很难维护,容易出错。
增加cutlass kernel生成脚本。复用cutlass repo提供的规则在编译期生成gather-gemm-scatter的候选kernel。
计划支持SM70、SM75、SM80、SM90。
本pr先支持SM70。
本pr会与后续增加的cutlass auto tune接口联合使用。在线从候选kernel中遍历选择最好的kernel。

生成的代码如下:
https://github.com/umiswing/Paddle/tree/tmp/paddle/phi/kernels/sparse/gpu/cutlass/build/generated/gemm
后续会配合auto tune进一步筛选。

@paddle-bot
Copy link

paddle-bot bot commented Feb 9, 2023

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

@umiswing umiswing changed the title [WIP] add generator scripts for cutlass Add generator scripts for cutlass Feb 18, 2023
Copy link
Contributor

@zyfncg zyfncg left a comment

Choose a reason for hiding this comment

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

可以在PR描述里展示下生成的代码示例吗?

@umiswing
Copy link
Member Author

可以在PR描述里展示下生成的代码示例吗?

已增加示例链接。

@zkh2016 zkh2016 merged commit 507af1c into PaddlePaddle:develop Feb 20, 2023
@umiswing umiswing mentioned this pull request Feb 23, 2023
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.

3 participants