<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic @Daniel, could you list your in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unable-to-compile-TF-1-3-from-source-using-full-MKL/m-p/1180011#M29261</link>
    <description>&lt;P&gt;@Daniel, could you list your BUILD file again? You said you made a change in the cc_library section but I'm seeing the before and after in your post as identical. Thanks!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Edit: I see, it should be changed to:&lt;/P&gt;

&lt;PRE class="brush:;"&gt;cc_library(
    name = "intel_binary_blob",
    srcs = if_mkl([
        "libdl.so.2",
        "libmkl_rt.so",
        "libiomp5.so",
    ]),
    includes = ["."],
    visibility = ["//visibility:public"],
)&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2017 18:50:00 GMT</pubDate>
    <dc:creator>David_M_25</dc:creator>
    <dc:date>2017-09-13T18:50:00Z</dc:date>
    <item>
      <title>Unable to compile TF 1.3 from source using full MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unable-to-compile-TF-1-3-from-source-using-full-MKL/m-p/1180008#M29258</link>
      <description>&lt;P&gt;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:&amp;nbsp;https://github.com/tensorflow/tensorflow/issues/12849&lt;/P&gt;

&lt;P&gt;Steps to reproduce:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;git clone &lt;A href="https://github.com/tensorflow/tensorflow.git" target="_blank"&gt;https://github.com/tensorflow/tensorflow.git&lt;/A&gt; test&lt;BR /&gt;
		cd test&lt;BR /&gt;
		git checkout r1.3&lt;BR /&gt;
		yes "" | TF_NEED_CUDA=0 TF_NEED_MKL=1 TF_DOWNLOAD_MKL=0 MKL_INSTALL_PATH=&amp;lt;path&amp;gt;/l_mkl_2017.3.196/inst/mkl ./configure&lt;BR /&gt;
		bazel build --config=mkl -c opt --verbose_failures //tensorflow/tools/pip_package:build_pip_package&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;OS version: Ubuntu Linux 14.04&lt;BR /&gt;
	Bazel version: 0.5.3&lt;/P&gt;

&lt;P&gt;Error message:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;ERROR: missing input file '//third_party/mkl:libmklml_intel.so'&lt;BR /&gt;
		ERROR: &amp;lt;path&amp;gt;/tensorflow/test/third_party/mkl/BUILD:16:1: //third_party/mkl:intel_binary_blob: missing input file '//third_party/mkl:libmklml_intel.so'&lt;BR /&gt;
		Target //tensorflow/tools/pip_package:build_pip_package failed to build&lt;BR /&gt;
		ERROR: &amp;lt;path&amp;gt;/tensorflow/test/third_party/mkl/BUILD:16:1 1 input file(s) do not exist&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;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?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 07:41:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unable-to-compile-TF-1-3-from-source-using-full-MKL/m-p/1180008#M29258</guid>
      <dc:creator>Renshaw__Daniel</dc:creator>
      <dc:date>2017-09-08T07:41:08Z</dc:date>
    </item>
    <item>
      <title>In file third_party/mkl/BUILD</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unable-to-compile-TF-1-3-from-source-using-full-MKL/m-p/1180009#M29259</link>
      <description>&lt;P&gt;In file&amp;nbsp;&lt;SPAN style="font-size: 12px; font-style: italic;"&gt;third_party/mkl/BUILD,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; font-style: italic;"&gt;Could you&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;replace&amp;nbsp;&lt;/SPAN&gt;&lt;A class="external-link" href="http://libmklml.so/" rel="nofollow" style="color: rgb(53, 114, 176); font-family: Arial, sans-serif; font-size: 14px;"&gt;libmklml.so&lt;/A&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;to&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="external-link" href="http://libmkl_rt.so/" rel="nofollow" style="color: rgb(53, 114, 176); font-family: Arial, sans-serif; font-size: 14px;"&gt;libmkl_rt.so&lt;/A&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;&amp;nbsp;as follows:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;cc_library(&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; name = "intel_binary_blob",&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; srcs = if_mkl([&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "@mkl//:libmklml_intel.so",&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "@mkl//:libiomp5.so",&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; ]),&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; visibility = ["//visibility:public"],&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; deps = ["@mkl//:mkl_headers"],&lt;BR /&gt;
	)&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;Let us know if it helps,&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;Oleg&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 10:24:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unable-to-compile-TF-1-3-from-source-using-full-MKL/m-p/1180009#M29259</guid>
      <dc:creator>Oleg_K_Intel1</dc:creator>
      <dc:date>2017-09-08T10:24:00Z</dc:date>
    </item>
    <item>
      <title>That fixed it, thanks!</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unable-to-compile-TF-1-3-from-source-using-full-MKL/m-p/1180010#M29260</link>
      <description>&lt;P&gt;That fixed it, thanks!&lt;/P&gt;

&lt;P&gt;For clarity,&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;I changed&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;cc_library(&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; name = "intel_binary_blob",&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; srcs = if_mkl([&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "libdl.so.2",&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "&lt;STRONG&gt;libmklml_intel.so&lt;/STRONG&gt;",&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "libiomp5.so",&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; ]),&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; includes = ["."],&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; visibility = ["//visibility:public"],&lt;BR /&gt;
	)&lt;/P&gt;

&lt;P&gt;to&lt;/P&gt;

&lt;P&gt;cc_library(&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; name = "intel_binary_blob",&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; srcs = if_mkl([&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "libdl.so.2",&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "&lt;STRONG&gt;libmkl_rt.so&lt;/STRONG&gt;",&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "libiomp5.so",&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; ]),&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; includes = ["."],&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; visibility = ["//visibility:public"],&lt;BR /&gt;
	)&lt;/P&gt;

&lt;P&gt;in the file&amp;nbsp;third_party/mkl/BUILD.&lt;/P&gt;

&lt;P&gt;I guess there needs to be some logic added to the configure process that alters that BUILD, or otherwise chooses between the two cc_library variants,&lt;SPAN style="font-size: 13.008px;"&gt;&amp;nbsp;automatically. However, with TensorFlow changing the way it does its build configuring, and possibly changing the way MKL is integrated, in the next version it's probably best to wait and see what TF r1.4 is like. I can manually alter the BUILD file for now.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 11:06:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unable-to-compile-TF-1-3-from-source-using-full-MKL/m-p/1180010#M29260</guid>
      <dc:creator>Renshaw__Daniel</dc:creator>
      <dc:date>2017-09-08T11:06:00Z</dc:date>
    </item>
    <item>
      <title>@Daniel, could you list your</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unable-to-compile-TF-1-3-from-source-using-full-MKL/m-p/1180011#M29261</link>
      <description>&lt;P&gt;@Daniel, could you list your BUILD file again? You said you made a change in the cc_library section but I'm seeing the before and after in your post as identical. Thanks!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Edit: I see, it should be changed to:&lt;/P&gt;

&lt;PRE class="brush:;"&gt;cc_library(
    name = "intel_binary_blob",
    srcs = if_mkl([
        "libdl.so.2",
        "libmkl_rt.so",
        "libiomp5.so",
    ]),
    includes = ["."],
    visibility = ["//visibility:public"],
)&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 18:50:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unable-to-compile-TF-1-3-from-source-using-full-MKL/m-p/1180011#M29261</guid>
      <dc:creator>David_M_25</dc:creator>
      <dc:date>2017-09-13T18:50:00Z</dc:date>
    </item>
  </channel>
</rss>

