<?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 fatal error : mkl.h : no such file or directory in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1286470#M31425</link>
    <description>&lt;P&gt;I'm a beginner.Recently installed mkl in oneapi basekit on ubuntu server20, trying to compile the c program with gcc.&lt;/P&gt;
&lt;P&gt;I've set up environment variables using files setvars.sh according to the instructions and written them to the module file.The command "Module List" also shows that mkl is loaded.&lt;BR /&gt;But use the command: sudo gcc -o i2fast i2fast .c -lmkl_ rt -lm -mcmodel-large, it will show: fatal error: mkl.h: There is no file or directory.&lt;/P&gt;
&lt;P&gt;How do I fix it?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jun 2021 11:59:39 GMT</pubDate>
    <dc:creator>SZBKDCSM</dc:creator>
    <dc:date>2021-06-02T11:59:39Z</dc:date>
    <item>
      <title>fatal error : mkl.h : no such file or directory</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1286470#M31425</link>
      <description>&lt;P&gt;I'm a beginner.Recently installed mkl in oneapi basekit on ubuntu server20, trying to compile the c program with gcc.&lt;/P&gt;
&lt;P&gt;I've set up environment variables using files setvars.sh according to the instructions and written them to the module file.The command "Module List" also shows that mkl is loaded.&lt;BR /&gt;But use the command: sudo gcc -o i2fast i2fast .c -lmkl_ rt -lm -mcmodel-large, it will show: fatal error: mkl.h: There is no file or directory.&lt;/P&gt;
&lt;P&gt;How do I fix it?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 11:59:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1286470#M31425</guid>
      <dc:creator>SZBKDCSM</dc:creator>
      <dc:date>2021-06-02T11:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: fatal error : mkl.h : no such file or directory</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1286665#M31429</link>
      <description>&lt;P&gt;The problem may be related to your using SUDO. Without the use of a SUDO option to preserve environment variables, any variables that GCC uses, such as&amp;nbsp;C_INCLUDE_PATH&lt;EM&gt;,&amp;nbsp;&lt;/EM&gt; will not be available to the compiler.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you really need to use SUDO?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 22:35:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1286665#M31429</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-06-02T22:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: fatal error : mkl.h : no such file or directory</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1286887#M31437</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 14:26:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1286887#M31437</guid>
      <dc:creator>SZBKDCSM</dc:creator>
      <dc:date>2021-06-03T14:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: fatal error : mkl.h : no such file or directory</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1286889#M31438</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;wow~，thanks a lot!&amp;nbsp;You have successfully solved the problem for me. But I don't understand that sudo should have the highest permissions, but why do it affect environmental variables?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 14:25:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1286889#M31438</guid>
      <dc:creator>SZBKDCSM</dc:creator>
      <dc:date>2021-06-03T14:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: fatal error : mkl.h : no such file or directory</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1286936#M31440</link>
      <description>&lt;P&gt;The issue is not about permissions -- SUDO gives you higher levels of permissions than an ordinary user may have -- but about the child process inheriting the environment of the parent process.&lt;/P&gt;
&lt;P&gt;See, for example, &lt;A href="https://dev.to/pfreitag/passing-environment-variables-with-sudo-1ej6" target="_self"&gt;this article&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 16:13:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1286936#M31440</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-06-03T16:13:33Z</dc:date>
    </item>
    <item>
      <title>Re:fatal error : mkl.h : no such file or directory</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1289995#M31519</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Glad to know that your issue got resolved, thanks to the valuable response from &lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/41971"&gt;@mecej4&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;As your issue is resolved, we will no longer monitor this thread. If you require any additional assistance from Intel, please start a new thread.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jun 2021 12:35:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1289995#M31519</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2021-06-15T12:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: fatal error : mkl.h : no such file or directory</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1361497#M32755</link>
      <description>&lt;P&gt;Hi, I am new to this Environment and I have downloaded the intel oneAPI base toolkit but I don't understand how to&amp;nbsp;&lt;SPAN&gt;set up environment variables using files setvars.sh or generally how to make the command line recognizes the MKL library. can you tel me how you did this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 04:59:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/fatal-error-mkl-h-no-such-file-or-directory/m-p/1361497#M32755</guid>
      <dc:creator>A_P</dc:creator>
      <dc:date>2022-02-18T04:59:43Z</dc:date>
    </item>
  </channel>
</rss>

