<?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 link with mkl ilp 64 intel c++ compiler in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-mkl-ilp-64-intel-c-compiler/m-p/1095067#M23499</link>
    <description>&lt;P&gt;I am trying to compile my code with mkl. I was using intel c++ on linux compiler using -mkl=parallel option.&lt;/P&gt;

&lt;P&gt;From the documentation, I understand this does not link with the ilp64 libraries but only with the lp64 library. I have to specify manually the libraries. Am I correct? I was thinking that using the parameter ilp64 when setting up the environnments variables using intel mkl batch file would tell the compiler to use the ilp64 version of the library. It looks it is not the case. In this case, I do not understand why there is a ilp64 parameter for the batch file. Am I missing something? This is very confusing and I lost several days to figure it out.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Marc&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2016 17:40:45 GMT</pubDate>
    <dc:creator>marcsolal</dc:creator>
    <dc:date>2016-11-22T17:40:45Z</dc:date>
    <item>
      <title>link with mkl ilp 64 intel c++ compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-mkl-ilp-64-intel-c-compiler/m-p/1095067#M23499</link>
      <description>&lt;P&gt;I am trying to compile my code with mkl. I was using intel c++ on linux compiler using -mkl=parallel option.&lt;/P&gt;

&lt;P&gt;From the documentation, I understand this does not link with the ilp64 libraries but only with the lp64 library. I have to specify manually the libraries. Am I correct? I was thinking that using the parameter ilp64 when setting up the environnments variables using intel mkl batch file would tell the compiler to use the ilp64 version of the library. It looks it is not the case. In this case, I do not understand why there is a ilp64 parameter for the batch file. Am I missing something? This is very confusing and I lost several days to figure it out.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 17:40:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-mkl-ilp-64-intel-c-compiler/m-p/1095067#M23499</guid>
      <dc:creator>marcsolal</dc:creator>
      <dc:date>2016-11-22T17:40:45Z</dc:date>
    </item>
    <item>
      <title>Hi there - Have you try to</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-mkl-ilp-64-intel-c-compiler/m-p/1095068#M23500</link>
      <description>&lt;P&gt;Have you tried using the&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor"&gt;Intel® Math Kernel Library Link Line Advisor&lt;/A&gt;? You can input your desired parameters and it will return the recommended link line for the specified compiler.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 00:17:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-mkl-ilp-64-intel-c-compiler/m-p/1095068#M23500</guid>
      <dc:creator>Arthur_A_Intel</dc:creator>
      <dc:date>2016-11-23T00:17:38Z</dc:date>
    </item>
    <item>
      <title>Dear customer,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-mkl-ilp-64-intel-c-compiler/m-p/1095069#M23501</link>
      <description>&lt;P&gt;Dear customer,&lt;/P&gt;

&lt;P&gt;You could use 64bit integer for interface layer while you are using parallel threading. If you are using -mkl=parallel, you have at least select one method, openMP/ TBB. Compile with option -DMKL_ILP64, and&amp;nbsp;link with library for&amp;nbsp;libmkl_intel_ilp64 whatever you are using icc/gcc. Arthura provide a good solution using &lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor"&gt;MKL advisor&lt;/A&gt; to help you generate compiling &amp;amp; linking line quickly. Hope it would be useful to you.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 02:07:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-mkl-ilp-64-intel-c-compiler/m-p/1095069#M23501</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2016-11-23T02:07:10Z</dc:date>
    </item>
    <item>
      <title>Fiona,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-mkl-ilp-64-intel-c-compiler/m-p/1095070#M23502</link>
      <description>&lt;P&gt;Fiona,&lt;/P&gt;

&lt;P&gt;Actually, in my experience, using -mkl=parallel, selecting OPENMP, using DMKL_ILP64 results automatically in linking with the 32 bits integer library even if the library libmk_intel_ilp64 is specified. I finally used the link advisor and it works perfectly now. But, it took me one week to understand what was my problem. Maybe somebody else will get into the same issue. It is why I wrote this post. Also, one question. When running the script mklvars.sh to define the environment variables, one option is ilp64. The documentation is station this is the "Programming interface (LP64 or ILP64)". I was confused and assumed falsly that this was enough to specify to link with the ilp64 library since I used the ilp64 parameter. Why is this parameter &amp;nbsp;present if it is not used to chose the library to link with.&lt;/P&gt;

&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 15:09:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-mkl-ilp-64-intel-c-compiler/m-p/1095070#M23502</guid>
      <dc:creator>marcsolal</dc:creator>
      <dc:date>2016-11-23T15:09:56Z</dc:date>
    </item>
  </channel>
</rss>

