<?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 This bat script will set the in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-environment-variables-and-using-code-examples/m-p/1149019#M26940</link>
    <description>&lt;P&gt;This bat script will set the MKL environments into the local working session. If you manually add these environments to the system properties -&amp;gt; environment variables then you will resolve this issues.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;In the case of Visual Studio – please refer to &lt;A href="https://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc"&gt;this article&amp;nbsp;&lt;/A&gt;to set MKL environments in VS.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jul 2018 05:33:52 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2018-07-04T05:33:52Z</dc:date>
    <item>
      <title>Problems with environment variables and using code examples</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-environment-variables-and-using-code-examples/m-p/1149018#M26939</link>
      <description>&lt;P&gt;I was following installation guide up to environmental variable step:&amp;nbsp;&amp;nbsp;https://software.intel.com/en-us/mkl-windows-developer-guide-setting-environment-variables.&amp;nbsp;&lt;BR /&gt;
	&lt;BR /&gt;
	I entered&lt;BR /&gt;
	&lt;SPAN style="color: rgb(85, 85, 85); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 15px;"&gt;mklvars intel64&lt;/SPAN&gt;&lt;BR /&gt;
	in the command shell. The script got executed fine and when&amp;nbsp;I checked PATH variable in the command shell, I could see the added path. But if I check&amp;nbsp;&lt;STRONG&gt;System properties -&amp;gt; environment variables,&amp;nbsp;&lt;/STRONG&gt;the Path variable remained unchanged. Also, when I restarted the command shell Path variable was the same as before running the script.&lt;/P&gt;

&lt;P&gt;Also if I try to run a sample code in VS2017, the line&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 1em;"&gt;#include "mkl.h"&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;gets underscored with a message "cannot open source file mkl.h"&lt;BR /&gt;
	&lt;BR /&gt;
	Installation of mkl went without errors and all files that are mentioned in&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;&lt;A href="https://software.intel.com/en-us/mkl-windows-developer-guide-checking-your-installation" target="_blank"&gt;https://software.intel.com/en-us/mkl-windows-developer-guide-checking-your-installation&lt;/A&gt; are on their place.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;If I understand correctly, this error is due to the absence of mkl.h in the path.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Am I missing something? How can I correct it?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jun 2018 09:05:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-environment-variables-and-using-code-examples/m-p/1149018#M26939</guid>
      <dc:creator>Bulanchuk__Pavlo</dc:creator>
      <dc:date>2018-06-30T09:05:56Z</dc:date>
    </item>
    <item>
      <title>This bat script will set the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-environment-variables-and-using-code-examples/m-p/1149019#M26940</link>
      <description>&lt;P&gt;This bat script will set the MKL environments into the local working session. If you manually add these environments to the system properties -&amp;gt; environment variables then you will resolve this issues.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;In the case of Visual Studio – please refer to &lt;A href="https://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc"&gt;this article&amp;nbsp;&lt;/A&gt;to set MKL environments in VS.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 05:33:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-environment-variables-and-using-code-examples/m-p/1149019#M26940</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-07-04T05:33:52Z</dc:date>
    </item>
    <item>
      <title>For others who run into this</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-environment-variables-and-using-code-examples/m-p/1149020#M26941</link>
      <description>&lt;P&gt;For others who run into this problem, the solution is to source the script rather than execute it.&lt;/P&gt;&lt;P&gt;Do:&lt;/P&gt;&lt;P&gt;source /opt/intel/bin/compilervars.sh &amp;lt;arch&amp;gt;&lt;/P&gt;&lt;P&gt;Don't:&lt;/P&gt;&lt;P&gt;./opt/intel/bin/compilervars.sh &amp;lt;arch&amp;gt;&lt;/P&gt;&lt;P&gt;Executing a shell script executes it in a new shell process. The environment settings are lost when that process terminates. Sourcing it executes it in the current process.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 15:37:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-environment-variables-and-using-code-examples/m-p/1149020#M26941</guid>
      <dc:creator>JHoff18</dc:creator>
      <dc:date>2020-03-25T15:37:54Z</dc:date>
    </item>
  </channel>
</rss>

