From 0d6ea52958ffcb7ed7bda0917aecb872a96ea2ca Mon Sep 17 00:00:00 2001 From: Yihua Xu Date: Fri, 13 Sep 2019 18:56:13 -0700 Subject: [PATCH] Fix the definition issue when used mkl_scsrmm and mkl_dcsrmm functions. (#19774) test=develop --- paddle/fluid/platform/dynload/mklml.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paddle/fluid/platform/dynload/mklml.cc b/paddle/fluid/platform/dynload/mklml.cc index 0f61a5e09b3..020c02d9baa 100644 --- a/paddle/fluid/platform/dynload/mklml.cc +++ b/paddle/fluid/platform/dynload/mklml.cc @@ -25,6 +25,11 @@ void* mklml_dso_handle = nullptr; MKLML_ROUTINE_EACH(DEFINE_WRAP); +#if !defined(_WIN32) +DEFINE_WRAP(mkl_scsrmm); +DEFINE_WRAP(mkl_dcsrmm); +#endif + } // namespace dynload } // namespace platform } // namespace paddle -- GitLab