Description: Log_TF_MKL_ROOT_environment_variable
 Otherwise it's barely impossible to understand why MKL DNN build fails.
 .
 python-tensorflow-cuda (1.4.0-1) unstable; urgency=medium
 .
   * New upstream release:
     - Refresh patches,
     - Drop Dont_use_locate_to_find_libdl.so.2 patch, not relevant anymore,
     - Now requires bazel 0.6.1 to build (minimum required is 0.5.4),
     - Modify configure-expect script to enable Amazon S3 (new), GDR (new),
       and XLA just-in-time compiler (not experimental anymore),
     - Add librdmacm-dev build dependency for GDR,
     - Re-order completely configure-expect script because TF upstream changed
       all options order AGAIN,
     - Export Intel MKL DNN folder as environment variable, it's not part
       of configure script anymore and create symlink for license.txt,
     - Make $HOME into a /tmp/temp.stg folder so bazel stops whining,
     - Disable MPI and VERBS on non-CUDA build, it seems to be unsupported.
   * Refactor debian/rules and debian/control to handle nocuda and nomkldnn
     build profiles.
Author: Adam Cecile <acecile@le-vert.net>

---

Index: python-tensorflow-cuda-1.12.0/third_party/mkl/build_defs.bzl
===================================================================
--- python-tensorflow-cuda-1.12.0.orig/third_party/mkl/build_defs.bzl
+++ python-tensorflow-cuda-1.12.0/third_party/mkl/build_defs.bzl
@@ -116,7 +116,9 @@ def mkl_deps():
     })
 
 def _enable_local_mkl(repository_ctx):
-    return _TF_MKL_ROOT in repository_ctx.os.environ
+    mkl_root = _TF_MKL_ROOT in repository_ctx.os.environ
+    print('Environment variable TF_MKL_ROOT set to %s' % mkl_root)
+    return mkl_root
 
 def _mkl_autoconf_impl(repository_ctx):
     """Implementation of the local_mkl_autoconf repository rule."""
