From c3b796a0c8ffe5aee51041feb883ca20552ca5f5 Mon Sep 17 00:00:00 2001
From: fwaters <fwaters@anaconda.com>
Date: Mon, 23 Sep 2019 18:33:10 +0000
Subject: [PATCH 06/22] intel_init_mkl

---
 numpy/_distributor_init.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/numpy/_distributor_init.py b/numpy/_distributor_init.py
index d893ba377..ec23c4616 100644
--- a/numpy/_distributor_init.py
+++ b/numpy/_distributor_init.py
@@ -8,3 +8,14 @@ For example, this is a good place to put any checks for hardware requirements.
 The numpy standard source distribution will not put code in this file, so you
 can safely replace this file with your own version.
 """
+
+try:
+    import mkl
+except ImportError:
+    import warnings
+    warnings.warn(
+        "mkl-service package failed to import, therefore Intel(R) MKL "
+        "initialization ensuring its correct out-of-the box operation under "
+        "condition when Gnu OpenMP had already been loaded by Python process "
+        "is not assured. Please install mkl-service package, see "
+        "http://github.com/IntelPython/mkl-service", stacklevel=2)
-- 
2.20.1

