<?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 Quote:Tim P. wrote: in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-part-of-code-is-not-Parallelized/m-p/1153376#M27335</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Tim P. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I don't remember how recently mkl heev was parallelized.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The problem was the size of my matrix. So there is no problem in MKL parallelization.&lt;/P&gt;

&lt;P&gt;Thank you for your time&lt;/P&gt;</description>
    <pubDate>Sun, 08 Jul 2018 21:31:22 GMT</pubDate>
    <dc:creator>farzad_b_</dc:creator>
    <dc:date>2018-07-08T21:31:22Z</dc:date>
    <item>
      <title>MKL part of code is not Parallelized</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-part-of-code-is-not-Parallelized/m-p/1153371#M27330</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I installed VS 2017 community with &lt;SPAN style="font-size: 13.008px;"&gt;parallel_studio_xe_2018_update3_cluster_edition, student.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I use Fortran compiler for my programming. I successfully link MKL with my code and there is no problem in compiling and running. OpenMP part of my code with OpenMP flags is parallelized with no problem. But, my problem is the MKL part of the code which runs in a single thread. I have these options in the "configuration properties" of the project as seen in the attached pictures:&lt;/P&gt;

&lt;P&gt;In Capture 3, I added the MKL library and parent compiler library:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.3.210\windows\mkl\lib\intel64_win and C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.3.210\windows\compiler\lib\intel64_win&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;In Capture 4, I have these additional dependencies:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;libiomp5md.lib mkl_intel_lp64.lib mkl_blas95_lp64.lib mkl_core.lib mkl_intel_lp64.lib mkl_lapack95_lp64.lib mkl_intel_thread.lib mkl_tbb_thread.lib&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I played a lot with these options to see any difference, but it was not successful. I should also mention that I have no problem in MKL&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;parallelization&lt;/SPAN&gt; in my Linux machine.&lt;/P&gt;

&lt;P&gt;Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 08:21:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-part-of-code-is-not-Parallelized/m-p/1153371#M27330</guid>
      <dc:creator>farzad_b_</dc:creator>
      <dc:date>2018-07-08T08:21:50Z</dc:date>
    </item>
    <item>
      <title>If you call MKL in a parallel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-part-of-code-is-not-Parallelized/m-p/1153372#M27331</link>
      <description>&lt;P&gt;If you call MKL in a parallel region, you are subject to the usual rules for nested OpenMP.&amp;nbsp; Then the default for MKL is 1 thread, on the assumption that you mean to run multiple MKL instances in parallel.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 11:12:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-part-of-code-is-not-Parallelized/m-p/1153372#M27331</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2018-07-08T11:12:51Z</dc:date>
    </item>
    <item>
      <title>If you call MKL in a parallel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-part-of-code-is-not-Parallelized/m-p/1153373#M27332</link>
      <description>&lt;P&gt;dup&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 11:13:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-part-of-code-is-not-Parallelized/m-p/1153373#M27332</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2018-07-08T11:13:00Z</dc:date>
    </item>
    <item>
      <title>Quote:Tim P. wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-part-of-code-is-not-Parallelized/m-p/1153374#M27333</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Tim P. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;If you call MKL in a parallel region, you are subject to the usual rules for nested OpenMP.&amp;nbsp; Then the default for MKL is 1 thread, on the assumption that you mean to run multiple MKL instances in parallel.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks for the response. My MKL part is not in the parallel region. for example,:&lt;/P&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;program band&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;&amp;nbsp; use lapack95&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;&amp;nbsp; use blas95&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;...&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;call heev(H,val,jobz='V')&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;I call this heev routine from MKL Lapack. But this part runs in a single thread. I have exact the same code runs in my Linux machine in parallel mode. I have the following makefile that I created for complilation in Linux:&lt;/SPAN&gt;&lt;/P&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;OBJECTS = $(SOURCES:.f90=.o&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;FC = ifort ${FCOPT}&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;CFLAGS = -qopenmp -I$(MKLROOT)/include/intel64/lp64 -I$(MKLROOT)/include -mkl=parallel&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;LDFLAGS = -nowarn $(MKLROOT)/lib/intel64/libmkl_blas95_lp64.a $(MKLROOT)/lib/intel64/libmkl_lapack95_lp64.a&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;exec: $(EXECUTABLE)&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;I assume changing the options in VS for mkl parallel should do the exact function as&amp;nbsp;&lt;/SPAN&gt;-mkl=parallel&amp;nbsp;&amp;nbsp;flag in my makefile in the Linux system.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 11:33:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-part-of-code-is-not-Parallelized/m-p/1153374#M27333</guid>
      <dc:creator>farzad_b_</dc:creator>
      <dc:date>2018-07-08T11:33:30Z</dc:date>
    </item>
    <item>
      <title>I don't remember how recently</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-part-of-code-is-not-Parallelized/m-p/1153375#M27334</link>
      <description>I don't remember how recently mkl heev was parallelized.</description>
      <pubDate>Sun, 08 Jul 2018 15:27:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-part-of-code-is-not-Parallelized/m-p/1153375#M27334</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2018-07-08T15:27:47Z</dc:date>
    </item>
    <item>
      <title>Quote:Tim P. wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-part-of-code-is-not-Parallelized/m-p/1153376#M27335</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Tim P. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I don't remember how recently mkl heev was parallelized.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The problem was the size of my matrix. So there is no problem in MKL parallelization.&lt;/P&gt;

&lt;P&gt;Thank you for your time&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 21:31:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-part-of-code-is-not-Parallelized/m-p/1153376#M27335</guid>
      <dc:creator>farzad_b_</dc:creator>
      <dc:date>2018-07-08T21:31:22Z</dc:date>
    </item>
  </channel>
</rss>

