-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Add gemm with stride arguments #4238
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 gemm with stride arguments #4238
Conversation
cblas_sgemm(CblasRowMajor, transA == false ? CblasNoTrans : CblasTrans, | ||
transB == false ? CblasNoTrans : CblasTrans, M, N, K, alpha, A, | ||
lda, B, ldb, beta, C, ldc); | ||
} |
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.
我觉得可以删掉line 22的gemm,没有必要保留两个接口
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.
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.
那保留两个接口吧~
cblas_dgemm(CblasRowMajor, transA == false ? CblasNoTrans : CblasTrans, | ||
transB == false ? CblasNoTrans : CblasTrans, M, N, K, alpha, A, | ||
lda, B, ldb, beta, C, ldc); | ||
} |
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.
同理,可以删掉line 37的gemm
reinterpret_cast<const platform::CUDADeviceContext&>(context) | ||
.cublas_handle(), | ||
cuTransB, cuTransA, N, M, K, &alpha, B, ldb, A, lda, &beta, C, ldc)); | ||
} |
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.
同上~
Resolves #4159