-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Feature/clean blas #10327
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
Feature/clean blas #10327
Conversation
| const half *h_B = reinterpret_cast<const half *>(B); | ||
| half *h_C = reinterpret_cast<half *>(C); | ||
|
|
||
| CUBlas<platform::float16>(context_.cublas_handle(), cuTransB, cuTransA, N, M, |
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.
CUBlas<platform::float16> ==>CUBlas<platform::float16>::GEMM
chengduoZH
left a comment
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.
Excellent!
| context, false, false, m, n, k, paddle::platform::float16(1), a, 3, b + 1, | ||
| 4, paddle::platform::float16(1), c + 1, 4); | ||
| GetBlas<float16>(context).GEMM(false, false, m, n, k, float16(1), a, 3, b + 1, | ||
| 4, float16(1), c + 1, 4); |
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.
float16 => paddle::platform::float16
chengduoZH
left a comment
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.
Excellent
Clean blas GEMM implementation. Reduce all
copy & pastecode in GEMM.