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

【Hackathon4 No.40】为 Paddle 优化 kthvalue op 在 GPU 上的计算性能 #452

Merged
merged 10 commits into from
Mar 16, 2023

Conversation

thunder95
Copy link
Contributor

为 Paddle 优化 kthvalue op 在 GPU 上的计算性能

@paddle-bot
Copy link

paddle-bot bot commented Mar 12, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请检查PR提交格式和内容是否完备,具体请参考示例模版
Your PR has been submitted. Thanks for your contribution!
Please check its format and content. For this, you can refer to Template and Demo.

| Case No. | device | input_shape | input_type | k | Paddle Perf(ms) |
|---|---|---|---|---|---|
| 1 | RTX 2070s | [16L, 10000L] | float32 | 5 | 0.29134 |
| 2 | RTX 2070s | [16L, 3000L] | float32 | 1 | 0.13398 |
Copy link
Contributor

Choose a reason for hiding this comment

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

请补充 FP16状态下的性能数据

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@JamesLim-sy 目前该算子还不支持float16, 所以运行float16的benchamark会报错。

RuntimeError: (NotFound) The kernel with key (GPU, Undefined(AnyLayout), float16) of kernel kthvalue is not registered and fail to fallback to CPU one. Selected wrong DataType float16. Paddle support following DataTypes: float32, int64, float64, int32.
[Hint: Expected kernel_iter != iter->second.end(), but received kernel_iter == iter->second.end().] (at /paddle/paddle/phi/core/kernel_factory.cc:219)

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@JamesLim-sy 已添加fp16性能测试

Copy link
Contributor

@JamesLim-sy JamesLim-sy left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

None yet

4 participants