<?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 Default value for mkl_set_threading_layer() in SDL? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Default-value-for-mkl-set-threading-layer-in-SDL/m-p/1134554#M25877</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am using MKL with SDL (mkl_rt.lib). I know I need to use&amp;nbsp;mkl_set_threading_layer() to set the threading layer in my code.&lt;/P&gt;

&lt;P&gt;My question is, if I don't call mkl_set_threading_layer(), is there a default value for this function? In other words, is there a default library that MKL will pick at run time?&lt;/P&gt;

&lt;P&gt;Through my testing (on a Windows machine), it seems that MKL will use the MKL_THREADING_INTEL as default value if I don't set &lt;SPAN style="font-size: 13.008px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;mkl_set_threading_layer()&lt;/SPAN&gt;. I hope someone from Intel can confirm.&lt;/P&gt;

&lt;P&gt;The reason I am experimenting this is that, we have in our programs different components that load and use MKL independently. We wish to use different libraries (sequential/tbb/intel) for different components. We hope we can come up with a way that, within a component, if the&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;mkl_set_threading_layer() is not called, MKL will use the openMP threaded library (MKL_THREADING_INTEL) by default, while in other components,&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;mkl_set_threading_layer() will be called if a specific library is to be used.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Hope someone can help to confirm or provide some suggestions. Thank you.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Ling&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jun 2018 21:29:48 GMT</pubDate>
    <dc:creator>Li__Ling</dc:creator>
    <dc:date>2018-06-04T21:29:48Z</dc:date>
    <item>
      <title>Default value for mkl_set_threading_layer() in SDL?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Default-value-for-mkl-set-threading-layer-in-SDL/m-p/1134554#M25877</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am using MKL with SDL (mkl_rt.lib). I know I need to use&amp;nbsp;mkl_set_threading_layer() to set the threading layer in my code.&lt;/P&gt;

&lt;P&gt;My question is, if I don't call mkl_set_threading_layer(), is there a default value for this function? In other words, is there a default library that MKL will pick at run time?&lt;/P&gt;

&lt;P&gt;Through my testing (on a Windows machine), it seems that MKL will use the MKL_THREADING_INTEL as default value if I don't set &lt;SPAN style="font-size: 13.008px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;mkl_set_threading_layer()&lt;/SPAN&gt;. I hope someone from Intel can confirm.&lt;/P&gt;

&lt;P&gt;The reason I am experimenting this is that, we have in our programs different components that load and use MKL independently. We wish to use different libraries (sequential/tbb/intel) for different components. We hope we can come up with a way that, within a component, if the&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;mkl_set_threading_layer() is not called, MKL will use the openMP threaded library (MKL_THREADING_INTEL) by default, while in other components,&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;mkl_set_threading_layer() will be called if a specific library is to be used.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Hope someone can help to confirm or provide some suggestions. Thank you.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Ling&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 21:29:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Default-value-for-mkl-set-threading-layer-in-SDL/m-p/1134554#M25877</guid>
      <dc:creator>Li__Ling</dc:creator>
      <dc:date>2018-06-04T21:29:48Z</dc:date>
    </item>
    <item>
      <title>yes, your assumption is</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Default-value-for-mkl-set-threading-layer-in-SDL/m-p/1134555#M25878</link>
      <description>&lt;P&gt;yes, your assumption is correct&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 03:17:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Default-value-for-mkl-set-threading-layer-in-SDL/m-p/1134555#M25878</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-06-05T03:17:50Z</dc:date>
    </item>
  </channel>
</rss>

