You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kernels/optimized/blas/CPUBlas.cpp
+98Lines changed: 98 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@
17
17
// clang-format off
18
18
extern"C"voiddgemm_(char *transa, char *transb, int *m, int *n, int *k, double *alpha, constdouble *a, int *lda, constdouble *b, int *ldb, double *beta, double *c, int *ldc);
19
19
extern"C"voidsgemm_(char *transa, char *transb, int *m, int *n, int *k, float *alpha, constfloat *a, int *lda, constfloat *b, int *ldb, float *beta, float *c, int *ldc);
20
+
extern"C"voidcgemm_(char *transa, char *transb, int *m, int *n, int *k, void *alpha, constvoid *a, int *lda, constvoid *b, int *ldb, void *beta, void *c, int *ldc);
21
+
extern"C"voidzgemm_(char *transa, char *transb, int *m, int *n, int *k, void *alpha, constvoid *a, int *lda, constvoid *b, int *ldb, void *beta, void *c, int *ldc);
20
22
// clang-format on
21
23
#endif// ET_BUILD_FOR_APPLE
22
24
#endif// ET_BUILD_WITH_BLAS
@@ -26,6 +28,7 @@ namespace cpublas {
26
28
27
29
using executorch::aten::BFloat16;
28
30
using executorch::aten::Half;
31
+
using executorch::aten::complex;
29
32
30
33
#ifdef ET_BUILD_WITH_BLAS
31
34
#ifdef ET_BUILD_FOR_APPLE
@@ -197,5 +200,100 @@ void gemm(
197
200
}
198
201
// clang-format on
199
202
203
+
// clang-format off
204
+
voidgemm(
205
+
TransposeType transa, TransposeType transb,
206
+
int64_t m, int64_t n, int64_t k,
207
+
const complex<double> alpha,
208
+
const complex<double> *a, int64_t lda,
209
+
const complex<double> *b, int64_t ldb,
210
+
const complex<double> beta,
211
+
complex<double> *c, int64_t ldc) {
212
+
normalize_last_dims(transa, transb, m, n, k, &lda, &ldb, &ldc);
0 commit comments