<?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 There may be more to in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/MIC-linking-issues/m-p/996801#M28468</link>
    <description>&lt;P&gt;There may be more to resolving this since it appears you are using MPI, maybe in native mode, so I may not have all the answers here.&lt;BR /&gt;
	The error you received indicates libMisc.a was not compiled with &lt;STRONG&gt;-mmic&lt;/STRONG&gt; but rather it was compiled for the host (x86-64). For the snippet of code you showed, if that is the extent of the libMisc.a, then you could build it for native as follows:&lt;/P&gt;

&lt;P&gt;$ icc -V&lt;BR /&gt;
	Intel(R) C Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0.2.144 Build 20140120&lt;BR /&gt;
	Copyright (C) 1985-2014 Intel Corporation.&amp;nbsp; All rights reserved.&lt;/P&gt;

&lt;P&gt;$ icc -c -mmic clock_time.c&lt;BR /&gt;
	$ /usr/linux-k1om-4.7/bin/x86_64-k1om-linux-ar crv libMisc.a clock_time.o&lt;BR /&gt;
	a - clock_time.o&lt;/P&gt;

&lt;P&gt;If your interest in using MPI on Xeon Phi™, then you might refer &lt;A href="https://software.intel.com/en-us/articles/how-to-run-intel-mpi-on-xeon-phi" target="_blank"&gt;&lt;STRONG&gt;How to run Intel MPI on Xeon Phi&lt;/STRONG&gt;&lt;/A&gt;. There is a specific the section on &lt;STRONG&gt;Running natively on the Xeon Phi coprocessor&lt;/STRONG&gt; that may be of interest.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 19 Apr 2014 12:35:00 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2014-04-19T12:35:00Z</dc:date>
    <item>
      <title>MIC linking issues</title>
      <link>https://community.intel.com/t5/Software-Archive/MIC-linking-issues/m-p/996800#M28467</link>
      <description>&lt;P&gt;I am getting the incompatibility error while linking a library using -mmic flag. I dont know how to make the piece of code compatible with native mic compilation.&lt;/P&gt;

&lt;P&gt;x86_64-k1om-linux-ld: i386:x86-64 architecture of input file `libMisc.a(clock_time.o)' is incompatible with k1om output&lt;/P&gt;

&lt;P&gt;//clock_time.c code&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;#include &amp;lt;time.h&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;double MPI_Wtime(void);&lt;/P&gt;

&lt;P&gt;double clock_time_()&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp; return MPI_Wtime();&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2014 08:12:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/MIC-linking-issues/m-p/996800#M28467</guid>
      <dc:creator>PRASHANTH_T_</dc:creator>
      <dc:date>2014-04-19T08:12:29Z</dc:date>
    </item>
    <item>
      <title>There may be more to</title>
      <link>https://community.intel.com/t5/Software-Archive/MIC-linking-issues/m-p/996801#M28468</link>
      <description>&lt;P&gt;There may be more to resolving this since it appears you are using MPI, maybe in native mode, so I may not have all the answers here.&lt;BR /&gt;
	The error you received indicates libMisc.a was not compiled with &lt;STRONG&gt;-mmic&lt;/STRONG&gt; but rather it was compiled for the host (x86-64). For the snippet of code you showed, if that is the extent of the libMisc.a, then you could build it for native as follows:&lt;/P&gt;

&lt;P&gt;$ icc -V&lt;BR /&gt;
	Intel(R) C Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0.2.144 Build 20140120&lt;BR /&gt;
	Copyright (C) 1985-2014 Intel Corporation.&amp;nbsp; All rights reserved.&lt;/P&gt;

&lt;P&gt;$ icc -c -mmic clock_time.c&lt;BR /&gt;
	$ /usr/linux-k1om-4.7/bin/x86_64-k1om-linux-ar crv libMisc.a clock_time.o&lt;BR /&gt;
	a - clock_time.o&lt;/P&gt;

&lt;P&gt;If your interest in using MPI on Xeon Phi™, then you might refer &lt;A href="https://software.intel.com/en-us/articles/how-to-run-intel-mpi-on-xeon-phi" target="_blank"&gt;&lt;STRONG&gt;How to run Intel MPI on Xeon Phi&lt;/STRONG&gt;&lt;/A&gt;. There is a specific the section on &lt;STRONG&gt;Running natively on the Xeon Phi coprocessor&lt;/STRONG&gt; that may be of interest.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2014 12:35:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/MIC-linking-issues/m-p/996801#M28468</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-04-19T12:35:00Z</dc:date>
    </item>
    <item>
      <title>Thank you sir. That was very</title>
      <link>https://community.intel.com/t5/Software-Archive/MIC-linking-issues/m-p/996802#M28469</link>
      <description>&lt;P&gt;Thank you sir. That was very helpful. I am able to run my application natively on MIC.&lt;/P&gt;

&lt;P&gt;I am always amazed about the fact on how fast Intel experts replies to forum queries. Kudos to your whole team of experts !&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2014 18:09:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/MIC-linking-issues/m-p/996802#M28469</guid>
      <dc:creator>PRASHANTH_T_</dc:creator>
      <dc:date>2014-04-19T18:09:25Z</dc:date>
    </item>
    <item>
      <title>I am glad to hear that helped</title>
      <link>https://community.intel.com/t5/Software-Archive/MIC-linking-issues/m-p/996803#M28470</link>
      <description>&lt;P&gt;I am glad to hear that helped.&lt;BR /&gt;
	Thank you for those kind words. We appreciate hearing that!&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Apr 2014 09:44:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/MIC-linking-issues/m-p/996803#M28470</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-04-20T09:44:11Z</dc:date>
    </item>
  </channel>
</rss>

