<?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 &amp;gt;&amp;gt;...Does anybody know in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Linking-against-both-the-sequential-and-threaded-mkl/m-p/1051094#M6804</link>
    <description>&amp;gt;&amp;gt;...Does anybody know whether this is safe to do please?..

It has to be safe if processing of some data set is Not done at the same time by both DLLs.</description>
    <pubDate>Thu, 25 Sep 2014 12:19:39 GMT</pubDate>
    <dc:creator>SergeyKostrov</dc:creator>
    <dc:date>2014-09-25T12:19:39Z</dc:date>
    <item>
      <title>Linking against both the sequential and threaded mkl</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Linking-against-both-the-sequential-and-threaded-mkl/m-p/1051092#M6802</link>
      <description>&lt;P&gt;I have two dlls that link against the static mkl libraries. &amp;nbsp;One of the dlls links against the sequential version and the other against the multi-threaded version. &amp;nbsp;Those two dlls are then loaded in to the same process. &amp;nbsp;Does anybody know whether this is safe to do please?&lt;/P&gt;

&lt;P&gt;Kind regards&lt;/P&gt;

&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2014 13:56:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Linking-against-both-the-sequential-and-threaded-mkl/m-p/1051092#M6802</guid>
      <dc:creator>Mark_Thomas</dc:creator>
      <dc:date>2014-09-16T13:56:07Z</dc:date>
    </item>
    <item>
      <title>This question would be more</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Linking-against-both-the-sequential-and-threaded-mkl/m-p/1051093#M6803</link>
      <description>&lt;P&gt;This question would be more likely to get a useful answer on the MKL forum.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2014 11:23:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Linking-against-both-the-sequential-and-threaded-mkl/m-p/1051093#M6803</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-09-22T11:23:42Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;...Does anybody know</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Linking-against-both-the-sequential-and-threaded-mkl/m-p/1051094#M6804</link>
      <description>&amp;gt;&amp;gt;...Does anybody know whether this is safe to do please?..

It has to be safe if processing of some data set is Not done at the same time by both DLLs.</description>
      <pubDate>Thu, 25 Sep 2014 12:19:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Linking-against-both-the-sequential-and-threaded-mkl/m-p/1051094#M6804</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2014-09-25T12:19:39Z</dc:date>
    </item>
    <item>
      <title>Thank you for your responses.</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Linking-against-both-the-sequential-and-threaded-mkl/m-p/1051095#M6805</link>
      <description>&lt;P&gt;Thank you for your responses. &amp;nbsp;I've now opened this in the relevant forum -&amp;nbsp;https://software.intel.com/en-us/forums/topic/531977.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 08:19:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Linking-against-both-the-sequential-and-threaded-mkl/m-p/1051095#M6805</guid>
      <dc:creator>Mark_Thomas</dc:creator>
      <dc:date>2014-09-26T08:19:32Z</dc:date>
    </item>
    <item>
      <title>I'd like to add some</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Linking-against-both-the-sequential-and-threaded-mkl/m-p/1051096#M6806</link>
      <description>I'd like to add some clarifications...

&amp;gt;&amp;gt;&amp;gt;&amp;gt;...Does anybody know whether this is safe to do please?..
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;It has to be safe if processing of some data set is Not done at the same time by both DLLs.

Let's say your data set is very big, for example, 128 Mega Elements. Then, even if some processing is done by both DLLs at the same time, then everything will be safe if modules work on different &lt;STRONG&gt;non-overlapping partitions&lt;/STRONG&gt; of the data set.

&lt;STRONG&gt;PS&lt;/STRONG&gt;: To be honest, I do not understand why threaded and non-threaded versions of MKL are used at the same time. It looks like some legacy issue in your project.</description>
      <pubDate>Fri, 26 Sep 2014 10:52:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Linking-against-both-the-sequential-and-threaded-mkl/m-p/1051096#M6806</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2014-09-26T10:52:46Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;To be honest, I do not</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Linking-against-both-the-sequential-and-threaded-mkl/m-p/1051097#M6807</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;To be honest, I do not understand why threaded and non-threaded versions of MKL are used at the same time. It looks like some legacy issue in your project.&lt;/P&gt;

&lt;P&gt;There are perfectly good reasons to use both at the same time.&lt;/P&gt;

&lt;P&gt;When an application has, at any point in time, large matrix(s) that can be processed by MKL and when there is no other threaded activity going on in the application, then you would want to use the multi-threaded version of MKL.&lt;/P&gt;

&lt;P&gt;Conversely, when an application is multi-threaded and performing parallel activities in different sections of the code (iow not on same large matrix(s)), then the preferred route would be to have MKL use only the calling thread context as opposed to creating a new thread pool and oversubscribing.&lt;/P&gt;

&lt;P&gt;You can also consider using mkl_set_dynamic(0) to inhibit nested parallelism, and/or use mkl_set_num_threads(n) with dynamic&amp;nbsp;to control the degree of parallization (though I've read posts indicating issues with mkl_set_num_threads(n)).&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 14:19:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Linking-against-both-the-sequential-and-threaded-mkl/m-p/1051097#M6807</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2014-09-30T14:19:14Z</dc:date>
    </item>
  </channel>
</rss>

