You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ak...@apache.org on 2021/09/08 08:30:28 UTC
[incubator-mxnet] branch master updated: Add check for MKL version
selection (#20562)
This is an automated email from the ASF dual-hosted git repository.
akarbown pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 68dc5a9 Add check for MKL version selection (#20562)
68dc5a9 is described below
commit 68dc5a9d6099aca95b65fdf4d4f59a83baf01e62
Author: bgawrych <ba...@intel.com>
AuthorDate: Wed Sep 8 10:28:01 2021 +0200
Add check for MKL version selection (#20562)
edit msg
edit msg2
---
cmake/ChooseBlas.cmake | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/cmake/ChooseBlas.cmake b/cmake/ChooseBlas.cmake
index 2419225..b4d025e 100644
--- a/cmake/ChooseBlas.cmake
+++ b/cmake/ChooseBlas.cmake
@@ -132,6 +132,12 @@ elseif(BLAS STREQUAL "MKL" OR BLAS STREQUAL "mkl")
cmake_dependent_option(BLA_STATIC "Use static libraries" ON "NOT MKL_USE_SINGLE_DYNAMIC_LIBRARY" OFF)
cmake_dependent_option(MKL_MULTI_THREADED "Use multi-threading" ON "NOT MKL_USE_SINGLE_DYNAMIC_LIBRARY" OFF)
+ if(BLA_VENDOR)
+ message(FATAL_ERROR "Do not set BLA_VENDOR manually. MKL version (BLA_VENDOR) is selected based on MKL_USE_SINGLE_DYNAMIC_LIBRARY, "
+ "MKL_MULTI_THREADED and USE_INT64_TENSOR_SIZE flags. If you want to select specific MKL library version "
+ "please set the above-mentioned flags instead.")
+ endif()
+
if(MKL_USE_SINGLE_DYNAMIC_LIBRARY)
set(BLA_VENDOR Intel10_64_dyn)
add_definitions(-DMKL_USE_SINGLE_DYNAMIC_LIBRARY=1)