<?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 Compile and link against k1om library/RPM in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Compile-and-link-against-k1om-library-RPM/m-p/1093240#M66035</link>
    <description>&lt;P&gt;hi all,&lt;/P&gt;

&lt;P&gt;when answering another thread (https://software.intel.com/en-us/forums/intel-many-integrated-core/topic/674887) I ran into an old problem:&lt;/P&gt;

&lt;P&gt;How does one compile and especially link a library of program natively for the Xeon Phi that makes use of another library that is supplied as a k1om RPM ?&lt;/P&gt;

&lt;P&gt;More specifically: when building UnixODBC natively I need to link it against libltdl ; the k1om RPMs include a libltdl7-2.4.2-r2.0.k1om.rpm which is installed on the Phi. How do I compile and link using this library? do I need to install the k1om RPM on the host system?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2016 13:33:08 GMT</pubDate>
    <dc:creator>JJK</dc:creator>
    <dc:date>2016-08-11T13:33:08Z</dc:date>
    <item>
      <title>Compile and link against k1om library/RPM</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-and-link-against-k1om-library-RPM/m-p/1093240#M66035</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;

&lt;P&gt;when answering another thread (https://software.intel.com/en-us/forums/intel-many-integrated-core/topic/674887) I ran into an old problem:&lt;/P&gt;

&lt;P&gt;How does one compile and especially link a library of program natively for the Xeon Phi that makes use of another library that is supplied as a k1om RPM ?&lt;/P&gt;

&lt;P&gt;More specifically: when building UnixODBC natively I need to link it against libltdl ; the k1om RPMs include a libltdl7-2.4.2-r2.0.k1om.rpm which is installed on the Phi. How do I compile and link using this library? do I need to install the k1om RPM on the host system?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 13:33:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-and-link-against-k1om-library-RPM/m-p/1093240#M66035</guid>
      <dc:creator>JJK</dc:creator>
      <dc:date>2016-08-11T13:33:08Z</dc:date>
    </item>
    <item>
      <title>Copy/unpack the k1om bins tar</title>
      <link>https://community.intel.com/t5/Software-Archive/Compile-and-link-against-k1om-library-RPM/m-p/1093241#M66036</link>
      <description>&lt;P&gt;&lt;BR /&gt;
	Copy/unpack the k1om bins tar-ball&lt;/P&gt;

&lt;P&gt;Hey, I use this process to establish cross-compilation:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;cp mpss-3.7-k1om.tar /home/&lt;/P&gt;

&lt;P&gt;cd /home/&lt;/P&gt;

&lt;P&gt;tar xvf mpss-3.7-k1om.tar&lt;/P&gt;

&lt;P&gt;cd /home/mpss-3.7/k1om/&lt;/P&gt;

&lt;P&gt;for rpm in *.rpm; do rpm2cpio $rpm | cpio -idm; done&lt;/P&gt;

&lt;P&gt;#done&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;For CMAKE builds use this on the command line.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	-DCMAKE_FIND_ROOT_PATH=/home/mpss-3.7/k1om \&lt;BR /&gt;
	-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \&lt;BR /&gt;
	-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \&lt;BR /&gt;
	-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;For other build systems, include the appropriate directories.&lt;/P&gt;

&lt;P&gt;For ex.&lt;/P&gt;

&lt;P&gt;$SRC/configure \&lt;BR /&gt;
	CC=icc \&lt;BR /&gt;
	CXX=icpc \&lt;BR /&gt;
	CFLAGS="-mmic -fPIC -I/home/mpss-3.7/k1om/usr/include/" \&lt;BR /&gt;
	CPPFLAGS="-mmic -fPIC -I/home/mpss-3.7/k1om/usr/include/" \&lt;BR /&gt;
	LDFLAGS="-L/home/mpss-3.7/k1om/usr/lib64/" \&lt;BR /&gt;
	--host=x86_64&lt;BR /&gt;
	make install&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 21:05:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compile-and-link-against-k1om-library-RPM/m-p/1093241#M66036</guid>
      <dc:creator>P__Robert</dc:creator>
      <dc:date>2016-09-02T21:05:44Z</dc:date>
    </item>
  </channel>
</rss>

