<?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 catastrophic error: cannot open source file &amp;quot;mkl.h&amp;quot; in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-mkl-h-quot/m-p/1233947#M30418</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really really really have a hard time navigating this site. So sorry if the docs state it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to run the matrix multiplication example found at &lt;A href="https://software.intel.com/content/www/us/en/develop/download/609945.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/download/609945.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then installed Intel MKL and the Intel Parallel Studio XE. The only reason I installed the Studio was the icc compiler. I don't plan to use any IDE currently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I installed&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.archlinux.org/packages/community/x86_64/intel-mkl/" target="_blank"&gt;https://www.archlinux.org/packages/community/x86_64/intel-mkl/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://aur.archlinux.org/pkgbase/intel-parallel-studio-xe/" target="_blank"&gt;https://aur.archlinux.org/pkgbase/intel-parallel-studio-xe/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now if I cd into the directory for the example and use make I get:&lt;/P&gt;
&lt;P&gt;$ make&lt;BR /&gt;icc -c src/dgemm_example.c -o release/dgemm_example.o&lt;BR /&gt;src/dgemm_example.c(27): catastrophic error: cannot open source file "mkl.h"&lt;BR /&gt;#include "mkl.h"&lt;BR /&gt;^&lt;/P&gt;
&lt;P&gt;compilation aborted for src/dgemm_example.c (code 4)&lt;BR /&gt;make: *** [Makefile:26: release/dgemm_example.o] Error 4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess that's because there are no environment variables set. I tried to figure out how but e.g. the getting started guide for 2020 only points me to that "compilation command generator" tool. Which I don't need since i have a makefile.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if I'm right with my assumption that I need to set env vars, which one do I need to set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also is it possible to use icc without all the IDE stuff? Or whatever is included in that Parallel Studio?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 16:14:10 GMT</pubDate>
    <dc:creator>pascalm</dc:creator>
    <dc:date>2020-12-03T16:14:10Z</dc:date>
    <item>
      <title>catastrophic error: cannot open source file "mkl.h"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-mkl-h-quot/m-p/1233947#M30418</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really really really have a hard time navigating this site. So sorry if the docs state it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to run the matrix multiplication example found at &lt;A href="https://software.intel.com/content/www/us/en/develop/download/609945.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/download/609945.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then installed Intel MKL and the Intel Parallel Studio XE. The only reason I installed the Studio was the icc compiler. I don't plan to use any IDE currently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I installed&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.archlinux.org/packages/community/x86_64/intel-mkl/" target="_blank"&gt;https://www.archlinux.org/packages/community/x86_64/intel-mkl/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://aur.archlinux.org/pkgbase/intel-parallel-studio-xe/" target="_blank"&gt;https://aur.archlinux.org/pkgbase/intel-parallel-studio-xe/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now if I cd into the directory for the example and use make I get:&lt;/P&gt;
&lt;P&gt;$ make&lt;BR /&gt;icc -c src/dgemm_example.c -o release/dgemm_example.o&lt;BR /&gt;src/dgemm_example.c(27): catastrophic error: cannot open source file "mkl.h"&lt;BR /&gt;#include "mkl.h"&lt;BR /&gt;^&lt;/P&gt;
&lt;P&gt;compilation aborted for src/dgemm_example.c (code 4)&lt;BR /&gt;make: *** [Makefile:26: release/dgemm_example.o] Error 4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess that's because there are no environment variables set. I tried to figure out how but e.g. the getting started guide for 2020 only points me to that "compilation command generator" tool. Which I don't need since i have a makefile.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if I'm right with my assumption that I need to set env vars, which one do I need to set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also is it possible to use icc without all the IDE stuff? Or whatever is included in that Parallel Studio?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 16:14:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-mkl-h-quot/m-p/1233947#M30418</guid>
      <dc:creator>pascalm</dc:creator>
      <dc:date>2020-12-03T16:14:10Z</dc:date>
    </item>
    <item>
      <title>Re:catastrophic error: cannot open source file &amp;quot;mkl.h&amp;quot;</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-mkl-h-quot/m-p/1234126#M30425</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt; Please set the mkl environments to your session by calling mklvars.sh script.&lt;/P&gt;&lt;P&gt;e.x:&amp;nbsp;source /opt/intel/compilers_and_libraries_2020/linux/mkl/bin/mklvars.sh intel64&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; then dotn’t forget to add the mkl Include file directory when you compile your test:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;icc -c &lt;/SPAN&gt;&lt;B style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;-IMKLROOT/Include&lt;/B&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt; dgemm_example.c -o release/dgemm_example.o&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; You may also try to check how to builf the examples ( mklroot/examples folder) where you may find out makefiles which help to build these examples with many of supported mkl's modes&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt;"&gt;&amp;gt;&amp;gt; and please check MKL Getting Started documentation to see all needed info &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Dec 2020 04:37:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-mkl-h-quot/m-p/1234126#M30425</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-12-04T04:37:22Z</dc:date>
    </item>
    <item>
      <title>Re:catastrophic error: cannot open source file &amp;quot;mkl.h&amp;quot;</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-mkl-h-quot/m-p/1240101#M30570</link>
      <description>&lt;P&gt;This issue has been resolved and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Dec 2020 07:42:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/catastrophic-error-cannot-open-source-file-quot-mkl-h-quot/m-p/1240101#M30570</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-12-23T07:42:06Z</dc:date>
    </item>
  </channel>
</rss>

