<?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 MIC offload support in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Couple-of-Intel-MKL-automatic-parallelisation-Phi-coprocessor/m-p/965528#M16188</link>
    <description>&lt;P style="line-height: 19.5120010375977px;"&gt;MIC offload support&lt;/P&gt;

&lt;P style="line-height: 19.5120010375977px;"&gt;dpotrf and dpotri are now supported for MIC offload (as of MKL 11.2 update 1).&lt;/P&gt;

&lt;P style="line-height: 19.5120010375977px;"&gt;A quick-and-dirty trick to find out if a function is offload enabled is the following:&lt;/P&gt;

&lt;P style="line-height: 19.5120010375977px;"&gt;1) Create a (very short) stub program such as the following three lines:&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;main (){&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; dpotrf();&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Be sure not to include the MKL header file so that you can have a dummy call to the function without having to match the calling interface.&lt;/SPAN&gt;&lt;/P&gt;

&lt;DIV style="line-height: 19.5120010375977px;"&gt;2) Compile statically against the Intel MKL library&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;icc -mkl -static-intel x.c&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV style="line-height: 19.5120010375977px;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="line-height: 19.5120010375977px;"&gt;
	&lt;P&gt;3) Look for any appearance of the MKL offload environment variables in the generated binary&lt;BR /&gt;
		&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; line-height: 19.5120010375977px; font-size: 1em;"&gt;strings -a a.out &amp;nbsp;| grep MKL_MIC_&lt;/SPAN&gt;&lt;BR /&gt;
		&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; line-height: 19.5120010375977px;"&gt;MKL_MIC_THRESHOLDS_DGEMM&lt;BR /&gt;
		MKL_MIC_ENABLE&lt;/SPAN&gt;&lt;BR /&gt;
		&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; line-height: 19.5120010375977px;"&gt;MKL_MIC_DISABLE_HOST_FALLBACK&lt;/SPAN&gt;&lt;BR /&gt;
		&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; line-height: 19.5120010375977px;"&gt;MKL_MIC_RESOURCE_LIMIT&lt;/SPAN&gt;&lt;BR /&gt;
		&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; line-height: 19.5120010375977px;"&gt;MKL_MIC_REGISTER_MEMORY&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;

&lt;P style="line-height: 19.5120010375977px;"&gt;The above strings seems not to appear if you call a function that is not offload enabled.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Dec 2014 12:44:45 GMT</pubDate>
    <dc:creator>nsmeds</dc:creator>
    <dc:date>2014-12-03T12:44:45Z</dc:date>
    <item>
      <title>Couple of Intel MKL automatic parallelisation/Phi coprocessor questions</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Couple-of-Intel-MKL-automatic-parallelisation-Phi-coprocessor/m-p/965524#M16184</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm doing an evaluation of the MKL library with a Phi coprocessor for possible use in production at a bioinformatics institute. The production datasets are very large but I'm starting with some test data of about 6GB to fit in the 8GB Phi coprocessor memory. I've used the Automatic Offload MKL capability (very appealing in terms of rolling this hardware out while minimising code changes) to do a Cholesky factorisation with LAPACKE_dpotrf. Comparing runtimes for one thread on the Xeon not using the Phi coprocessor to a single Xeon thread Automatic Offloading to the Phi coprocessor gives about a 65% reduction in wallclock time. The runtime includes the data download to the Phi coprocessor. The speedup would probably improve if I could also do the inverse on the Phi coprocessor using the LAPACKE_dpotri MKL call on the result from the Cholesky call. But I don't think the dpotri call is supported for Automatic Offload as yet. To my queries:&lt;/P&gt;

&lt;P&gt;a/ Perhaps someone from&amp;nbsp; Intel could give some guidance on when the dpotri call might be supported for Automatic Offload? I could have a crack at implementing the function but would prefer to use an optimised Intel version.&lt;/P&gt;

&lt;P&gt;b/ Is there a list of what MKL calls are currently supported on the Phi environment and which are optimised? The release notes have incremental details so I guess I could put this together but it would be handy to have this already collated.&lt;/P&gt;

&lt;P&gt;c/ As part of this work we noticed using the MKL automatic parallelisation on just the Xeon cores (2 CPU's 10 cores/CPU) with no coprocessor involvement (MKL_MIC_ENABLE=0) that the runtimes dropped off nicely from 1 to 8 cores, runtime for 9 cores was higher than for 8 cores, runtimes dropped nicely again to 12 cores, increased at 13 cores and then dropped for 14 cores after which the runtimes were about the same as the 14 core case. For the Xeon core work we are using&amp;nbsp;&lt;/P&gt;

&lt;P&gt;KMP_AFFINITY=verbose,granularity=fine,compact,1,1&lt;/P&gt;

&lt;P&gt;I'm a bit perplexed about the runtime increases at 9 and 13 cores.&lt;/P&gt;

&lt;P&gt;Thanks in advance for any help&lt;/P&gt;

&lt;P&gt;David&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2014 03:42:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Couple-of-Intel-MKL-automatic-parallelisation-Phi-coprocessor/m-p/965524#M16184</guid>
      <dc:creator>dehvidc1</dc:creator>
      <dc:date>2014-01-23T03:42:20Z</dc:date>
    </item>
    <item>
      <title>For the question about</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Couple-of-Intel-MKL-automatic-parallelisation-Phi-coprocessor/m-p/965525#M16185</link>
      <description>&lt;P&gt;For the question about scaling vs. number of threads on host, can we assume you have hyperthreading enabled but are trying to place each thread on a separate physical core? &amp;nbsp;You may want to try KMP_AFFINITY settings which balance explicitly the work between CPUs for comparison. &amp;nbsp;Unfortunately, such settings must take into account whether hyperthreading is active. &amp;nbsp;If you must use a single AFFINITY setting, scatter, or OMP_PROC_BIND=spread, might make more sense for such a scaling study.&lt;/P&gt;

&lt;P&gt;In my experience, straightforward BLAS implementation with the open source and Intel OpenMP compiler can be effective for relatively small cases which don't need the full capability of the coprocessor. &amp;nbsp;It would take much expert development to optimize for large cases such as yours.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2014 13:05:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Couple-of-Intel-MKL-automatic-parallelisation-Phi-coprocessor/m-p/965525#M16185</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-01-23T13:05:00Z</dc:date>
    </item>
    <item>
      <title>Thanks, Tim. Hyperthreading</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Couple-of-Intel-MKL-automatic-parallelisation-Phi-coprocessor/m-p/965526#M16186</link>
      <description>&lt;P&gt;Thanks, Tim. Hyperthreading isn't enabled for this work. With respect to affinity settings, I think what I've set as listed in the first post will bind the threads to physical cores on alternate CPU's ie inherently balanced. So still perplexed about why we are seeing the anomalous behaviour at 9 and 13 cores.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2014 08:08:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Couple-of-Intel-MKL-automatic-parallelisation-Phi-coprocessor/m-p/965526#M16186</guid>
      <dc:creator>dehvidc1</dc:creator>
      <dc:date>2014-01-30T08:08:46Z</dc:date>
    </item>
    <item>
      <title>If you have hyperthreading</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Couple-of-Intel-MKL-automatic-parallelisation-Phi-coprocessor/m-p/965527#M16187</link>
      <description>&lt;P&gt;If you have hyperthreading off in BIOS and are binding your host threads to odd numbered cores, that's probably an excellent setting for 10 threads split evenly between CPUs; I think you'd need to study the verbose output about what is happening beyond 10 threads. &amp;nbsp;With an odd number of threads, you necessarily unbalance the work load between CPUs so might expect less performance per thread than with neighboring even numbers of threads.&lt;/P&gt;

&lt;P&gt;At 13 threads, on the face of it, you are assigning 2 threads each to cores 1,3,5. &amp;nbsp;Maybe this automatically uses neighboring even numbered cores, but you appear to have 8 threads on one CPU and 5 on the other.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2014 13:33:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Couple-of-Intel-MKL-automatic-parallelisation-Phi-coprocessor/m-p/965527#M16187</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-01-30T13:33:10Z</dc:date>
    </item>
    <item>
      <title>MIC offload support</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Couple-of-Intel-MKL-automatic-parallelisation-Phi-coprocessor/m-p/965528#M16188</link>
      <description>&lt;P style="line-height: 19.5120010375977px;"&gt;MIC offload support&lt;/P&gt;

&lt;P style="line-height: 19.5120010375977px;"&gt;dpotrf and dpotri are now supported for MIC offload (as of MKL 11.2 update 1).&lt;/P&gt;

&lt;P style="line-height: 19.5120010375977px;"&gt;A quick-and-dirty trick to find out if a function is offload enabled is the following:&lt;/P&gt;

&lt;P style="line-height: 19.5120010375977px;"&gt;1) Create a (very short) stub program such as the following three lines:&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;main (){&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; dpotrf();&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Be sure not to include the MKL header file so that you can have a dummy call to the function without having to match the calling interface.&lt;/SPAN&gt;&lt;/P&gt;

&lt;DIV style="line-height: 19.5120010375977px;"&gt;2) Compile statically against the Intel MKL library&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;icc -mkl -static-intel x.c&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV style="line-height: 19.5120010375977px;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV style="line-height: 19.5120010375977px;"&gt;
	&lt;P&gt;3) Look for any appearance of the MKL offload environment variables in the generated binary&lt;BR /&gt;
		&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; line-height: 19.5120010375977px; font-size: 1em;"&gt;strings -a a.out &amp;nbsp;| grep MKL_MIC_&lt;/SPAN&gt;&lt;BR /&gt;
		&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; line-height: 19.5120010375977px;"&gt;MKL_MIC_THRESHOLDS_DGEMM&lt;BR /&gt;
		MKL_MIC_ENABLE&lt;/SPAN&gt;&lt;BR /&gt;
		&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; line-height: 19.5120010375977px;"&gt;MKL_MIC_DISABLE_HOST_FALLBACK&lt;/SPAN&gt;&lt;BR /&gt;
		&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; line-height: 19.5120010375977px;"&gt;MKL_MIC_RESOURCE_LIMIT&lt;/SPAN&gt;&lt;BR /&gt;
		&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; line-height: 19.5120010375977px;"&gt;MKL_MIC_REGISTER_MEMORY&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;

&lt;P style="line-height: 19.5120010375977px;"&gt;The above strings seems not to appear if you call a function that is not offload enabled.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2014 12:44:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Couple-of-Intel-MKL-automatic-parallelisation-Phi-coprocessor/m-p/965528#M16188</guid>
      <dc:creator>nsmeds</dc:creator>
      <dc:date>2014-12-03T12:44:45Z</dc:date>
    </item>
    <item>
      <title>the quickest way to see if</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Couple-of-Intel-MKL-automatic-parallelisation-Phi-coprocessor/m-p/965529#M16189</link>
      <description>&lt;P&gt;the quickest way to see if computation is offloaded is just to set OFFLOAD_REPORT environment variables. You will see a lot of information about offloading process and You don't need to change the original code in that case at all. See more about OFFLOAD_REPORT into compiler's documentation&lt;/P&gt;

&lt;P style="font-size: 13.6000003814697px; line-height: 15.9999980926514px; margin-bottom: 0px; padding: 5px 5px 5px 1px; color: rgb(51, 51, 51); font-family: Verdana, Arial, sans-serif;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 03:44:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Couple-of-Intel-MKL-automatic-parallelisation-Phi-coprocessor/m-p/965529#M16189</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-12-04T03:44:59Z</dc:date>
    </item>
  </channel>
</rss>

