<?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 The include path -I in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compilation-error/m-p/1016629#M19525</link>
    <description>&lt;P&gt;The include path -I$MKLINCLUDE is responsible for finding the .h files associated with MKL.&amp;nbsp; If MKL is installed with your icc, sourceing the compilervars.&lt;C&gt;sh should have set the environment variables, so you should be able to check whether they point to an appropriate directory.&lt;/C&gt;&lt;/P&gt;

&lt;P&gt;You should also use a sane order of options in your compile command.&amp;nbsp; As mecej4 said, the link advisor would give you important hints.&lt;/P&gt;</description>
    <pubDate>Sat, 21 Feb 2015 13:03:07 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2015-02-21T13:03:07Z</dc:date>
    <item>
      <title>Compilation error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compilation-error/m-p/1016627#M19523</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I am trying to compile the C programme which uses the MKL subroutine.&lt;/P&gt;

&lt;P&gt;For example, &lt;CODE class="plain"&gt;mkl_scsrdia &lt;/CODE&gt;and &lt;CODE class="plain"&gt;mkl_scsrcoo,&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE class="plain"&gt;but when I am trying to compile it, &lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE class="plain"&gt;I am getting error like this.&lt;/CODE&gt;&lt;CODE&gt; It seems that I am not linking some path &lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;or flags during the compilation.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;icc one.c -L$MKLPATH -I$MKLINCLUDE -lmkl -liomp5 -lpthread&lt;/P&gt;

&lt;P&gt;one.c -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lsplas -lm -lmkl -lguide&lt;/P&gt;

&lt;P&gt;nothing wordks, got error like this&lt;/P&gt;

&lt;P&gt;one.c(9): catastrophic error: cannot open source file "mkl_spblas.h"&lt;BR /&gt;
	&amp;nbsp; #include &amp;lt;mkl_spblas.h&amp;gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;

&lt;P&gt;compilation aborted for one.c (code 4)&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	Could some one pelase tell me how to fix this problem.&lt;/P&gt;

&lt;P&gt;Kind regards,&lt;/P&gt;

&lt;P&gt;Mathias&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2015 23:31:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compilation-error/m-p/1016627#M19523</guid>
      <dc:creator>Erik_Mathias</dc:creator>
      <dc:date>2015-02-20T23:31:21Z</dc:date>
    </item>
    <item>
      <title>Is your environment correctly</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compilation-error/m-p/1016628#M19524</link>
      <description>&lt;P&gt;Is your environment correctly set up to use Intel C and MKL? Assuming that you are running in Linux, first try the simple command &lt;STRONG&gt;icc -mkl one.c&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;If that works, but you wish to use other options for multi-threading, 8-bytet integers, etc., you will need to change to more elaborate options. Please consult the helpful MKL Link Line Advisor tool at&amp;nbsp;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor .&lt;/P&gt;</description>
      <pubDate>Sat, 21 Feb 2015 12:41:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compilation-error/m-p/1016628#M19524</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-02-21T12:41:26Z</dc:date>
    </item>
    <item>
      <title>The include path -I</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compilation-error/m-p/1016629#M19525</link>
      <description>&lt;P&gt;The include path -I$MKLINCLUDE is responsible for finding the .h files associated with MKL.&amp;nbsp; If MKL is installed with your icc, sourceing the compilervars.&lt;C&gt;sh should have set the environment variables, so you should be able to check whether they point to an appropriate directory.&lt;/C&gt;&lt;/P&gt;

&lt;P&gt;You should also use a sane order of options in your compile command.&amp;nbsp; As mecej4 said, the link advisor would give you important hints.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Feb 2015 13:03:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compilation-error/m-p/1016629#M19525</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-02-21T13:03:07Z</dc:date>
    </item>
  </channel>
</rss>

