-
Notifications
You must be signed in to change notification settings - Fork 275
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
Conversation
| 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 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请补充 FP16状态下的性能数据
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
中加入phi::dtype::float16
的类型注册,再测试 FP16性能
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JamesLim-sy 已添加fp16性能测试
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
为 Paddle 优化 kthvalue op 在 GPU 上的计算性能