<?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 problem on defining MPI_INT as long int in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-on-defining-MPI-INT-as-long-int/m-p/1144474#M26581</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new to Intel and I face a strange problem on defining MPI_INT as long int.&lt;/P&gt;&lt;P&gt;Problem: I add&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark; wrap-lines:false;"&gt;#define MKL_INT long int&lt;/PRE&gt;

&lt;P&gt;at the very beginning of the provided example &amp;lt;mklroot&amp;gt;/examples/examples_core_c.tgz/spblasc/source/sparse_trsv.c, and the output data for mkl_sparse_d_trsv is [1.0, 5.0, 3.0, 4.0, -13.0], which is incorrect, while no issue is raised when compling.&lt;/P&gt;
&lt;P&gt;If I don't add that #define sentence, everything is fine and the output data is the correct answer [1.0, 7.0, 1.0, 6.0, -55.0].&lt;/P&gt;
&lt;P&gt;The working environment:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Ubuntu 18.04.1 with x86_64 GNU/Linux kenel 4.18.0-25-generic&lt;/LI&gt;&lt;LI&gt;Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications with Processor optimization: Intel(R) AVX2 enabled processors&lt;/LI&gt;&lt;LI&gt;gcc-4.9.3&amp;nbsp;(Ubuntu 4.9.3-13ubuntu2)&lt;/LI&gt;&lt;LI&gt;compiling command: gcc &amp;nbsp;&amp;nbsp; sparse_trsv.c&amp;nbsp;&amp;nbsp;&amp;nbsp; -lmkl_rt &amp;nbsp; &amp;nbsp; -I&amp;lt;mklroot&amp;gt;/include &amp;nbsp; &amp;nbsp; -L&amp;lt;mklroot&amp;gt;/lib/intel64 &amp;nbsp; &amp;nbsp; -Wall&lt;/LI&gt;&lt;LI&gt;CPU if helpful:&amp;nbsp; Intel® Core™ i7-8700&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Any advice or solution is welcome.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2020 07:39:41 GMT</pubDate>
    <dc:creator>liang__xin</dc:creator>
    <dc:date>2020-03-20T07:39:41Z</dc:date>
    <item>
      <title>problem on defining MPI_INT as long int</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-on-defining-MPI-INT-as-long-int/m-p/1144474#M26581</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new to Intel and I face a strange problem on defining MPI_INT as long int.&lt;/P&gt;&lt;P&gt;Problem: I add&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark; wrap-lines:false;"&gt;#define MKL_INT long int&lt;/PRE&gt;

&lt;P&gt;at the very beginning of the provided example &amp;lt;mklroot&amp;gt;/examples/examples_core_c.tgz/spblasc/source/sparse_trsv.c, and the output data for mkl_sparse_d_trsv is [1.0, 5.0, 3.0, 4.0, -13.0], which is incorrect, while no issue is raised when compling.&lt;/P&gt;
&lt;P&gt;If I don't add that #define sentence, everything is fine and the output data is the correct answer [1.0, 7.0, 1.0, 6.0, -55.0].&lt;/P&gt;
&lt;P&gt;The working environment:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Ubuntu 18.04.1 with x86_64 GNU/Linux kenel 4.18.0-25-generic&lt;/LI&gt;&lt;LI&gt;Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications with Processor optimization: Intel(R) AVX2 enabled processors&lt;/LI&gt;&lt;LI&gt;gcc-4.9.3&amp;nbsp;(Ubuntu 4.9.3-13ubuntu2)&lt;/LI&gt;&lt;LI&gt;compiling command: gcc &amp;nbsp;&amp;nbsp; sparse_trsv.c&amp;nbsp;&amp;nbsp;&amp;nbsp; -lmkl_rt &amp;nbsp; &amp;nbsp; -I&amp;lt;mklroot&amp;gt;/include &amp;nbsp; &amp;nbsp; -L&amp;lt;mklroot&amp;gt;/lib/intel64 &amp;nbsp; &amp;nbsp; -Wall&lt;/LI&gt;&lt;LI&gt;CPU if helpful:&amp;nbsp; Intel® Core™ i7-8700&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Any advice or solution is welcome.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 07:39:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/problem-on-defining-MPI-INT-as-long-int/m-p/1144474#M26581</guid>
      <dc:creator>liang__xin</dc:creator>
      <dc:date>2020-03-20T07:39:41Z</dc:date>
    </item>
  </channel>
</rss>

