<?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 Re: mkl_set_num_threads() or MKL_Set_Num_Threads()? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-or-MKL-Set-Num-Threads/m-p/892229#M10515</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/19672"&gt;Vladimir Lunev (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;Please use #include "mkl.h" in your code. It's obligatory operator if you would like to use mkl_set_num_threads.&lt;/P&gt;
&lt;P&gt;Here are a few lines from MKL documentation:&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;#include mkl.h // Mandatory to make these definitions work!&lt;BR /&gt;mkl_set_num_threads(num); // Equivalent to omp_set_num_threads( int )&lt;BR /&gt;return_code = mkl_domain_set_num_threads( num, MKL_FFT );&lt;BR /&gt;. . . . .&lt;/P&gt;
&lt;P&gt;-Vladimir&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I know it is OK to include "mkl.h", this is because "mkl_service.h" typedefine mk_set_num_threads as MKL_Set_Num_Threads. But both mkl_set_num_threads() and MKL_Set_Num_Threads() are available in MKL dll or so. It is not make sense to me mkl_set_num_threads() function will crash my application.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Dec 2008 09:13:39 GMT</pubDate>
    <dc:creator>sspine</dc:creator>
    <dc:date>2008-12-04T09:13:39Z</dc:date>
    <item>
      <title>mkl_set_num_threads() or MKL_Set_Num_Threads()?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-or-MKL-Set-Num-Threads/m-p/892226#M10512</link>
      <description>&lt;P&gt;I need to set MKL_NUM_THREADS dynamically in my programm. MKL user manual tells me to use mkl_set_num_threads(), but this function always crash my program. I find another function in MKL header file, MKL_Set_Num_Threads(). When I use the latter one instead, it is OK.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2008 02:51:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-or-MKL-Set-Num-Threads/m-p/892226#M10512</guid>
      <dc:creator>sspine</dc:creator>
      <dc:date>2008-12-02T02:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: mkl_set_num_threads() or MKL_Set_Num_Threads()?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-or-MKL-Set-Num-Threads/m-p/892227#M10513</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: small; font-family: Times New Roman;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: small; font-family: Times New Roman;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: small; font-family: Times New Roman;"&gt;You are right. I noticed this issue; there is mismatch between header file and documentation. I will work with MKL development team to correct it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: small; font-family: Times New Roman;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: small; font-family: Times New Roman;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: small; font-family: Times New Roman;"&gt;Naveen Gv&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2008 03:54:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-or-MKL-Set-Num-Threads/m-p/892227#M10513</guid>
      <dc:creator>Naveen_G_Intel</dc:creator>
      <dc:date>2008-12-02T03:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: mkl_set_num_threads() or MKL_Set_Num_Threads()?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-or-MKL-Set-Num-Threads/m-p/892228#M10514</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/325207"&gt;sspine&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;I need to set MKL_NUM_THREADS dynamically in my programm. MKL user manual tells me to use mkl_set_num_threads(), but this function always crash my program. I find another function in MKL header file, MKL_Set_Num_Threads(). When I use the latter one instead, it is OK.&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;Hi!&lt;/P&gt;
&lt;P&gt;Please use #include "mkl.h" in your code. It's obligatory operator if you would like to use mkl_set_num_threads.&lt;/P&gt;
&lt;P&gt;Here are a few lines from MKL documentation:&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;#include mkl.h // Mandatory to make these definitions work!&lt;BR /&gt;mkl_set_num_threads(num); // Equivalent to omp_set_num_threads( int )&lt;BR /&gt;return_code = mkl_domain_set_num_threads( num, MKL_FFT );&lt;BR /&gt;. . . . .&lt;/P&gt;
&lt;P&gt;-Vladimir&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2008 12:31:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-or-MKL-Set-Num-Threads/m-p/892228#M10514</guid>
      <dc:creator>Vladimir_Lunev</dc:creator>
      <dc:date>2008-12-02T12:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: mkl_set_num_threads() or MKL_Set_Num_Threads()?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-or-MKL-Set-Num-Threads/m-p/892229#M10515</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/19672"&gt;Vladimir Lunev (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;Please use #include "mkl.h" in your code. It's obligatory operator if you would like to use mkl_set_num_threads.&lt;/P&gt;
&lt;P&gt;Here are a few lines from MKL documentation:&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;#include mkl.h // Mandatory to make these definitions work!&lt;BR /&gt;mkl_set_num_threads(num); // Equivalent to omp_set_num_threads( int )&lt;BR /&gt;return_code = mkl_domain_set_num_threads( num, MKL_FFT );&lt;BR /&gt;. . . . .&lt;/P&gt;
&lt;P&gt;-Vladimir&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I know it is OK to include "mkl.h", this is because "mkl_service.h" typedefine mk_set_num_threads as MKL_Set_Num_Threads. But both mkl_set_num_threads() and MKL_Set_Num_Threads() are available in MKL dll or so. It is not make sense to me mkl_set_num_threads() function will crash my application.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2008 09:13:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-or-MKL-Set-Num-Threads/m-p/892229#M10515</guid>
      <dc:creator>sspine</dc:creator>
      <dc:date>2008-12-04T09:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: mkl_set_num_threads() or MKL_Set_Num_Threads()?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-or-MKL-Set-Num-Threads/m-p/892230#M10516</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/325207"&gt;sspine&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I know it is OK to include "mkl.h", this is because "mkl_service.h" typedefine mk_set_num_threads as MKL_Set_Num_Threads. But both mkl_set_num_threads() and MKL_Set_Num_Threads() are available in MKL dll or so. It is not make sense to me mkl_set_num_threads() function will crash my application.&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Ok, I see.&lt;/P&gt;
&lt;P&gt;Due to MKL support C and Fortran (which have a different styles for parameters passing), we provide the separate entries for C and Fortran users. So mkl_set_num_threads() is for Fortran users and MKL_Set_Num_Threads() is for C-users.&lt;BR /&gt;You are trying to make a call to the Fortran function from C using C-interface.&lt;/P&gt;
&lt;P&gt;-Vladimir&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2008 09:58:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-set-num-threads-or-MKL-Set-Num-Threads/m-p/892230#M10516</guid>
      <dc:creator>Vladimir_Lunev</dc:creator>
      <dc:date>2008-12-05T09:58:44Z</dc:date>
    </item>
  </channel>
</rss>

