diff --git a/paddle/fluid/operators/math/blas_impl.h b/paddle/fluid/operators/math/blas_impl.h index 4934afd8bb1039c5dede4c1e5af1dd2b395b4577..f6d6669765865386116532c5c65c689aa170eaa6 100644 --- a/paddle/fluid/operators/math/blas_impl.h +++ b/paddle/fluid/operators/math/blas_impl.h @@ -24,17 +24,23 @@ struct CBlas; template <> struct CBlas { - static constexpr auto GEMM = cblas_sgemm; + template + static void GEMM(ARGS... args) { + cblas_sgemm(args...); + } }; template <> struct CBlas { - static constexpr auto GEMM = cblas_dgemm; + template + static void GEMM(ARGS... args) { + cblas_dgemm(args...); + } }; template <> struct CBlas { - void GEMM(...) { PADDLE_THROW("float16 GEMM not supported on CPU"); } + static void GEMM(...) { PADDLE_THROW("float16 GEMM not supported on CPU"); } }; template <>