<?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 Hello Liangxi, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/spBLAS-problem-on-defining-MPI-INT-as-long-int/m-p/1144531#M26588</link>
    <description>&lt;P&gt;Hello Liangxi,&lt;/P&gt;&lt;P&gt;MKL has different interface libraries: lp64 and ilp64 version, which use different definition of MKL_INT (see mkl_types.h). You &lt;STRONG&gt;cannot redefine MKL_INT&lt;/STRONG&gt; in your code to a &lt;STRONG&gt;binary incompatible&lt;/STRONG&gt; type.&lt;/P&gt;&lt;P&gt;Please, refer to&amp;nbsp;https://software.intel.com/en-us/articles/a-new-linking-model-single-dynamic-library-mkl_rt-since-intel-mkl-103if you want use long integers and the single dynamic library (mkl_rt). There you can read how to set the interface library which will be used (either through an environment variable MKL_INTERFACE_LAYER or via mkl_set_interface_layer(MKL_INTERFACE_ILP64).&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Kirill&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 17:58:07 GMT</pubDate>
    <dc:creator>Kirill_V_Intel</dc:creator>
    <dc:date>2020-03-31T17:58:07Z</dc:date>
    <item>
      <title>[spBLAS] problem on defining MPI_INT as long int</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/spBLAS-problem-on-defining-MPI-INT-as-long-int/m-p/1144529#M26586</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 08:05:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/spBLAS-problem-on-defining-MPI-INT-as-long-int/m-p/1144529#M26586</guid>
      <dc:creator>liang__xin</dc:creator>
      <dc:date>2020-03-20T08:05:48Z</dc:date>
    </item>
    <item>
      <title>Hello Liangxi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/spBLAS-problem-on-defining-MPI-INT-as-long-int/m-p/1144530#M26587</link>
      <description>Hello Liangxi,

Have you refer to our linking guide below for your application? For example try use libmkl_intel_ilp64 instead of libmkl_intel_lp64.
&lt;A href="https://software.intel.com/en-us/mkl-linux-developer-guide-linking-on-intel-64-architecture-systems" target="_blank"&gt;https://software.intel.com/en-us/mkl-linux-developer-guide-linking-on-intel-64-architecture-systems&lt;/A&gt;

BRs,
Ruqiu</description>
      <pubDate>Tue, 31 Mar 2020 06:49:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/spBLAS-problem-on-defining-MPI-INT-as-long-int/m-p/1144530#M26587</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2020-03-31T06:49:47Z</dc:date>
    </item>
    <item>
      <title>Hello Liangxi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/spBLAS-problem-on-defining-MPI-INT-as-long-int/m-p/1144531#M26588</link>
      <description>&lt;P&gt;Hello Liangxi,&lt;/P&gt;&lt;P&gt;MKL has different interface libraries: lp64 and ilp64 version, which use different definition of MKL_INT (see mkl_types.h). You &lt;STRONG&gt;cannot redefine MKL_INT&lt;/STRONG&gt; in your code to a &lt;STRONG&gt;binary incompatible&lt;/STRONG&gt; type.&lt;/P&gt;&lt;P&gt;Please, refer to&amp;nbsp;https://software.intel.com/en-us/articles/a-new-linking-model-single-dynamic-library-mkl_rt-since-intel-mkl-103if you want use long integers and the single dynamic library (mkl_rt). There you can read how to set the interface library which will be used (either through an environment variable MKL_INTERFACE_LAYER or via mkl_set_interface_layer(MKL_INTERFACE_ILP64).&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Kirill&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 17:58:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/spBLAS-problem-on-defining-MPI-INT-as-long-int/m-p/1144531#M26588</guid>
      <dc:creator>Kirill_V_Intel</dc:creator>
      <dc:date>2020-03-31T17:58:07Z</dc:date>
    </item>
    <item>
      <title>Hello Kirill,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/spBLAS-problem-on-defining-MPI-INT-as-long-int/m-p/1144532#M26589</link>
      <description>&lt;P&gt;Hello Kirill,&lt;/P&gt;&lt;P&gt;thank you for your answer. At this time everything goes well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Xin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Voronin, Kirill (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Liangxi,&lt;/P&gt;&lt;P&gt;MKL has different interface libraries: lp64 and ilp64 version, which use different definition of MKL_INT (see mkl_types.h). You &lt;STRONG&gt;cannot redefine MKL_INT&lt;/STRONG&gt; in your code to a &lt;STRONG&gt;binary incompatible&lt;/STRONG&gt; type.&lt;/P&gt;&lt;P&gt;Please, refer to&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/a-new-linking-model-single-dynamic-library-mkl_rt-since-intel-mkl-103if"&gt;https://software.intel.com/en-us/articles/a-new-linking-model-single-dyn...&lt;/A&gt; you want use long integers and the single dynamic library (mkl_rt). There you can read how to set the interface library which will be used (either through an environment variable MKL_INTERFACE_LAYER or via mkl_set_interface_layer(MKL_INTERFACE_ILP64).&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Kirill&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 13:21:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/spBLAS-problem-on-defining-MPI-INT-as-long-int/m-p/1144532#M26589</guid>
      <dc:creator>liang__xin</dc:creator>
      <dc:date>2020-04-06T13:21:08Z</dc:date>
    </item>
  </channel>
</rss>

