I have tried to compile TensorFlow with the full MKL but this failed. I logged an issue on the TensorFlow GitHub but since the MKL integration is provided by Intel they are unable to help there. Could you please look at the issue: https://github.com/tensorflow/tensorflow/issues/12849
Steps to reproduce:
git clone https://github.com/tensorflow/tensorflow.git test
git checkout r1.3
yes "" | TF_NEED_CUDA=0 TF_NEED_MKL=1 TF_DOWNLOAD_MKL=0 MKL_INSTALL_PATH=<path>/l_mkl_2017.3.196/inst/mkl ./configure
bazel build --config=mkl -c opt --verbose_failures //tensorflow/tools/pip_package:build_pip_package
OS version: Ubuntu Linux 14.04
Bazel version: 0.5.3
ERROR: missing input file '//third_party/mkl:libmklml_intel.so'
ERROR: <path>/tensorflow/test/third_party/mkl/BUILD:16:1: //third_party/mkl:intel_binary_blob: missing input file '//third_party/mkl:libmklml_intel.so'
Target //tensorflow/tools/pip_package:build_pip_package failed to build
ERROR: <path>/tensorflow/test/third_party/mkl/BUILD:16:1 1 input file(s) do not exist
The configure script is creating symlinks in third_party/mkl/ for libmkl_rt.so (see here), which is fine, but not for libmklml_intel.so (see here), which doesn't exist in the full MKL distribution. However third_party/mkl/BUILD references libmklml_intel.so. Is this a bug or is use of the full MKL library not supported in TensorFlow 1.3?