From 80a5930e6e754fbc011fad5203c3695249523f93 Mon Sep 17 00:00:00 2001 From: xulei Date: Tue, 8 Feb 2022 10:25:45 +0800 Subject: [PATCH] onednn on windows --- cmake/external_libs/mkl_dnn.cmake | 4 ++-- mindspore/ccsrc/backend/graph_compiler/transform.cc | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/cmake/external_libs/mkl_dnn.cmake b/cmake/external_libs/mkl_dnn.cmake index 5781d40da7b..1feb38e04f9 100644 --- a/cmake/external_libs/mkl_dnn.cmake +++ b/cmake/external_libs/mkl_dnn.cmake @@ -11,8 +11,8 @@ if(CMAKE_SYSTEM_NAME MATCHES "Windows") LIBS dnnl mkldnn HEAD_ONLY ./include RELEASE on - URL https://github.com/oneapi-src/oneDNN/releases/download/v2.2/dnnl_win_2.2.0_cpu_vcomp.zip - MD5 fa12c693b2ec07700d174e1e99d60a7e) + URL http://tools.mindspore.cn/libs/dnnl/dnnl_win_2.2.0_cpu_vcomp.zip + MD5 139fcdbd601a970fb86dd15b30ba5ae3) else() if(ENABLE_GITEE) set(REQ_URL "https://gitee.com/mirrors/MKL-DNN/repository/archive/v2.2.tar.gz") diff --git a/mindspore/ccsrc/backend/graph_compiler/transform.cc b/mindspore/ccsrc/backend/graph_compiler/transform.cc index 0ac6888d876..c3dad2f3aaf 100644 --- a/mindspore/ccsrc/backend/graph_compiler/transform.cc +++ b/mindspore/ccsrc/backend/graph_compiler/transform.cc @@ -615,11 +615,6 @@ void SetMindRTEnable() { return; } -#if defined(_WIN32) || defined(_WIN64) - context_ptr->set_param(MS_CTX_ENABLE_MINDRT, false); - return; -#endif - MS_LOG(DEBUG) << "Enable mindRT."; context_ptr->set_param(MS_CTX_ENABLE_MINDRT, true); }