<?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 I found out that my mkl in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Printing-Constant-from-mkl-library/m-p/1089640#M23138</link>
    <description>&lt;P&gt;I found out that my mkl version was too old. After installing a newer mkl, that program compiled. Thanks for the help.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2016 19:07:18 GMT</pubDate>
    <dc:creator>Roger_X_</dc:creator>
    <dc:date>2016-06-14T19:07:18Z</dc:date>
    <item>
      <title>Printing Constant from mkl library</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Printing-Constant-from-mkl-library/m-p/1089638#M23136</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I am trying to compile the following program (test.c) to find value of a constant in the mkl&amp;nbsp;&lt;/SPAN&gt;10.0.4.023.&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include&amp;lt;stdio.h&amp;gt;
#include "mkl.h"
main()
{
	int a = SPARSE_INDEX_BASE_ZERO;
	printf("%d", a);

}
&lt;/PRE&gt;

&lt;P&gt;with the following commands:&lt;/P&gt;

&lt;P&gt;source compilervars.sh intel64&lt;/P&gt;

&lt;P&gt;icc test.c&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;-DMKL_ILP64 -I${MKLROOT}/include &amp;nbsp;-L${MKLROOT}/lib/mic -lmkl_intel_ilp64 -lmkl_core -l &amp;nbsp; &amp;nbsp;mkl_sequential -lpthread -lm -ldl&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;The message that I get is:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;-bash: MKLROOT: command not found&lt;BR /&gt;
	-bash: MKLROOT: command not found&lt;BR /&gt;
	find_constant.c(7): error: identifier "SPARSE_INDEX_BASE_ZERO" is undefined&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;int a = SPARSE_INDEX_BASE_ZERO;&lt;BR /&gt;
	&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 find_constant.c (code 2)&lt;/P&gt;

&lt;P&gt;Is the program that I write correct?&lt;/P&gt;

&lt;P&gt;If not, how to find out the value of the constants used in mkl?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 19:06:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Printing-Constant-from-mkl-library/m-p/1089638#M23136</guid>
      <dc:creator>Roger_X_</dc:creator>
      <dc:date>2016-06-08T19:06:57Z</dc:date>
    </item>
    <item>
      <title>These constants are defined</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Printing-Constant-from-mkl-library/m-p/1089639#M23137</link>
      <description>&lt;P&gt;These constants are defined into header files. Pls have a look at the&amp;nbsp;mkl_spblas.h as an example. How to check this value? You may find out the example -&amp;nbsp;sparse_spmm.c.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 08:14:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Printing-Constant-from-mkl-library/m-p/1089639#M23137</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2016-06-09T08:14:42Z</dc:date>
    </item>
    <item>
      <title>I found out that my mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Printing-Constant-from-mkl-library/m-p/1089640#M23138</link>
      <description>&lt;P&gt;I found out that my mkl version was too old. After installing a newer mkl, that program compiled. Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:07:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Printing-Constant-from-mkl-library/m-p/1089640#M23138</guid>
      <dc:creator>Roger_X_</dc:creator>
      <dc:date>2016-06-14T19:07:18Z</dc:date>
    </item>
  </channel>
</rss>

