<?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: how to set mkl's system variables in program? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-set-mkl-s-system-variables-in-program/m-p/895229#M10841</link>
    <description>&lt;P&gt;Hi Tim,&lt;/P&gt;
&lt;P&gt;Thank you very much for your help! Do you mean I should set it in the code? Could you tell me how to set it?&lt;/P&gt;
&lt;P&gt;I have set the envrionment variable NUMBER_OF_PROCESSORS, should I set another envrionment variable OMP_NUM_THREADS?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Zhanghong Tang&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2006 11:39:38 GMT</pubDate>
    <dc:creator>Zhanghong_T_</dc:creator>
    <dc:date>2006-12-05T11:39:38Z</dc:date>
    <item>
      <title>how to set mkl's system variables in program?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-set-mkl-s-system-variables-in-program/m-p/895227#M10839</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I am trying to use MKL's libraries which support 'openmp' technology. Now I can let the program make use of all cpus if I set the 'mkl_serial=no' from 'my computer-&amp;gt;properities-&amp;gt;advanced-&amp;gt;environment variables-&amp;gt;system variables-&amp;gt;new-&amp;gt;...'.&lt;/P&gt;
&lt;P&gt;However, I wish this system variables can be changed/controlled by my program, so I use the following code:&lt;/P&gt;
&lt;P&gt; err=system('set MKL_SERIAL=NO')&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I found the return value err=0, but after the program runs, the actual cpu usage is not appears as what I expected, but act as what the variables set as the first method. &lt;/P&gt;
&lt;P&gt;So, could any one tell me how should I do to achive what I expected?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Zhanghong Tang&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2006 11:28:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-set-mkl-s-system-variables-in-program/m-p/895227#M10839</guid>
      <dc:creator>Zhanghong_T_</dc:creator>
      <dc:date>2006-12-04T11:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to set mkl's system variables in program?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-set-mkl-s-system-variables-in-program/m-p/895228#M10840</link>
      <description>You would need to set OMP_NUM_THREADS, if you haven't done so.&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Dec 2006 20:54:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-set-mkl-s-system-variables-in-program/m-p/895228#M10840</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2006-12-04T20:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to set mkl's system variables in program?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-set-mkl-s-system-variables-in-program/m-p/895229#M10841</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;
&lt;P&gt;Thank you very much for your help! Do you mean I should set it in the code? Could you tell me how to set it?&lt;/P&gt;
&lt;P&gt;I have set the envrionment variable NUMBER_OF_PROCESSORS, should I set another envrionment variable OMP_NUM_THREADS?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Zhanghong Tang&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2006 11:39:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-set-mkl-s-system-variables-in-program/m-p/895229#M10841</guid>
      <dc:creator>Zhanghong_T_</dc:creator>
      <dc:date>2006-12-05T11:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to set mkl's system variables in program?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-set-mkl-s-system-variables-in-program/m-p/895230#M10842</link>
      <description>Certain versions of MKL did use NUMBER_OF_PROCESSORS, on Windows, in the absence of OMP_NUM_THREADS.&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Dec 2006 13:11:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-set-mkl-s-system-variables-in-program/m-p/895230#M10842</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2006-12-05T13:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to set mkl's system variables in program?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-set-mkl-s-system-variables-in-program/m-p/895231#M10843</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;It seems that PARDISO also calls MKL's math library, it's parallel compution don't need to set mak's system variables, how could it realize this, or does it just call MKL's library in serial mode and then parallel in its code?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Zhanghong Tang&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2006 01:14:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-set-mkl-s-system-variables-in-program/m-p/895231#M10843</guid>
      <dc:creator>Zhanghong_T_</dc:creator>
      <dc:date>2006-12-19T01:14:23Z</dc:date>
    </item>
  </channel>
</rss>

