<?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 hi Taylor thanks for the in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979749#M25810</link>
    <description>&lt;P&gt;hi &lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Taylor thanks for the debug option, I tried it but i get some library issues, &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;hi Gregg i did put -gdb and heres what i got:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;mpirun -gdb -host mic0 -n 1 ~/hello.mic : -host localhost -n 1 ./hello.xeon&lt;BR /&gt;
	mpigdb: np = 2&lt;BR /&gt;
	mpigdb: attaching to 4397 /root/hello.mic mic0&lt;BR /&gt;
	mpigdb: hangup detected: while read from [0]&lt;BR /&gt;
	mpigdb: attaching to 10995 ./hello.xeon localhost&lt;BR /&gt;
	[0,1] (mpigdb)&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;now i tried running it like how i debug in gdb by putting break point&lt;/P&gt;

&lt;P&gt;"(mpigdb) break main" but the program just stood there does nothing&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2014 22:07:30 GMT</pubDate>
    <dc:creator>VIKRANT_G_</dc:creator>
    <dc:date>2014-02-14T22:07:30Z</dc:date>
    <item>
      <title>debugging remotely on MIC</title>
      <link>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979743#M25804</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I am trying to run gdb on the mic and i get the following error:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;HYDU_create_process (./utils/launch/launch.c:111): execvp error on file /tmp/gdb (No such file or directory)&lt;/P&gt;

&lt;P&gt;but i did copy the gdb on mic using--&amp;gt;&amp;nbsp;scp &amp;nbsp;/usr/linux-k1om-4.7/linux-k1om/usr/bin/gdb mic0:/tmp"&lt;/P&gt;

&lt;P&gt;also i followed the steps on&amp;nbsp;http://software.intel.com/en-us/articles/debugging-intel-xeon-phi-applications-on-linux-host, in one section it mentions about debugging remotely and uses&amp;nbsp;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; line-height: 14.30880069732666px;"&gt;$ scp &amp;lt;composer_xe_root&amp;gt;/debugger/gdb/target/mic/bin/gdbserver mic0:/tmp&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;but i tried to find a directory /debugger/gdb/,..in my computer but it seems there is no such directory,&lt;/P&gt;

&lt;P&gt;(I can successfully run gdb on xeon processor,)&lt;/P&gt;

&lt;P&gt;thank you for the help in advance&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 00:26:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979743#M25804</guid>
      <dc:creator>VIKRANT_G_</dc:creator>
      <dc:date>2014-02-10T00:26:09Z</dc:date>
    </item>
    <item>
      <title>That's a MIC native debugger.</title>
      <link>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979744#M25805</link>
      <description>&lt;P&gt;That's a MIC native debugger. &amp;nbsp;If you copy it over to mic0:/bin it will run a native application in a shell on mic.&lt;/P&gt;

&lt;P&gt;The gdbserver would come in the (optional) debugger installation with the Intel Fortran or C++ compiler&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 02:35:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979744#M25805</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-02-10T02:35:00Z</dc:date>
    </item>
    <item>
      <title>hello Tim,</title>
      <link>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979745#M25806</link>
      <description>&lt;P&gt;hello Tim,&lt;/P&gt;

&lt;P&gt;i do have a gdbserver but the directory is different from what is mentioned in the link(for MIC debugging). So when i provide the gdb server directory i still cannot use gdb remotely on MIC.&lt;/P&gt;

&lt;P&gt;Yeah you are right, i can debug native application on MIC, the problem i get is when i try to use gdb remotely&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 16:24:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979745#M25806</guid>
      <dc:creator>VIKRANT_G_</dc:creator>
      <dc:date>2014-02-10T16:24:49Z</dc:date>
    </item>
    <item>
      <title>hello , i changed my approach</title>
      <link>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979746#M25807</link>
      <description>&lt;P&gt;hello , i changed my approach and switched to idb_debugger which is running fine through remote debugging,&lt;/P&gt;

&lt;P&gt;but i have another issue: I am trying to run two programs simultaneously one on MIC and one on Xeon, it involves handshake between the two.&lt;/P&gt;

&lt;P&gt;the issue i face is : I need to run both the exes simultaneously for program to work. I need to debug the MIC program while the program is running.&lt;/P&gt;

&lt;P&gt;this is the command i am using currently:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;mpirun -host mic0 -n 1 &amp;nbsp;~/hello.mic: -host localhost -n 1 ./hello.xeon, how do i add a debug option in this command,&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 19:51:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979746#M25807</guid>
      <dc:creator>VIKRANT_G_</dc:creator>
      <dc:date>2014-02-11T19:51:59Z</dc:date>
    </item>
    <item>
      <title>Hi Vikrant,</title>
      <link>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979747#M25808</link>
      <description>&lt;P&gt;Hi Vikrant,&lt;/P&gt;

&lt;P&gt;Consulting with some MPI experts here, they suggest two methods for debugging. The first is to set, using -genv, the I_MPI_DEBUG variable. See section 2.5.1.5, "Environmental Variables", in the Intel(r) MPI Library for Linux* OS Reference Manual. This gives you debug information related to the MPI Library.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mpirun –genv I_MPI_DEBUG 3 -host mic0 -n 1&amp;nbsp; ~/hello.mic: -host localhost -n 1 ./hello.xeon&lt;/P&gt;

&lt;P&gt;Another suggestion is to use the -v option which gives you debug information about the MPI process manager. See section 2.3.1.3 in the same document.&lt;/P&gt;

&lt;P&gt;Regards&lt;BR /&gt;
	--&lt;BR /&gt;
	Taylor&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 21:04:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979747#M25808</guid>
      <dc:creator>TaylorIoTKidd</dc:creator>
      <dc:date>2014-02-14T21:04:53Z</dc:date>
    </item>
    <item>
      <title>Try adding -gdb to your</title>
      <link>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979748#M25809</link>
      <description>&lt;P&gt;Try adding &lt;STRONG&gt;-gdb&lt;/STRONG&gt; to your mpirun command.&lt;/P&gt;

&lt;P&gt;mpirun -gdb&amp;nbsp;-host mic0 -n 1 ./hello.mic: -host localhost -n 1 ./hello.xeon&lt;/P&gt;

&lt;P&gt;mpigdb: np = 2&lt;BR /&gt;
	mpigdb: attaching to 185758&amp;nbsp;./hello.xeon localhost&lt;BR /&gt;
	mpigdb: attaching to 37159&amp;nbsp;./hello.mic mic0&lt;BR /&gt;
	[0,1] (mpigdb)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 21:43:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979748#M25809</guid>
      <dc:creator>Gregg_S_Intel</dc:creator>
      <dc:date>2014-02-14T21:43:16Z</dc:date>
    </item>
    <item>
      <title>hi Taylor thanks for the</title>
      <link>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979749#M25810</link>
      <description>&lt;P&gt;hi &lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Taylor thanks for the debug option, I tried it but i get some library issues, &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;hi Gregg i did put -gdb and heres what i got:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;mpirun -gdb -host mic0 -n 1 ~/hello.mic : -host localhost -n 1 ./hello.xeon&lt;BR /&gt;
	mpigdb: np = 2&lt;BR /&gt;
	mpigdb: attaching to 4397 /root/hello.mic mic0&lt;BR /&gt;
	mpigdb: hangup detected: while read from [0]&lt;BR /&gt;
	mpigdb: attaching to 10995 ./hello.xeon localhost&lt;BR /&gt;
	[0,1] (mpigdb)&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;now i tried running it like how i debug in gdb by putting break point&lt;/P&gt;

&lt;P&gt;"(mpigdb) break main" but the program just stood there does nothing&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 22:07:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979749#M25810</guid>
      <dc:creator>VIKRANT_G_</dc:creator>
      <dc:date>2014-02-14T22:07:30Z</dc:date>
    </item>
    <item>
      <title>Hi Vikrant,</title>
      <link>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979750#M25811</link>
      <description>&lt;P&gt;Hi Vikrant,&lt;/P&gt;

&lt;P&gt;I assume you're running the Intel® MPI Library here?&amp;nbsp; Do you know what version?&lt;/P&gt;

&lt;P&gt;Using the -gdb option should be what enables the GNU debugger with Intel MPI.&amp;nbsp; Can you tell me if your original mpirun job (without -gdb) finishes successfully?&lt;/P&gt;

&lt;P&gt;Alternatively, you can attach to a running process via the "-gdba &amp;lt;pid&amp;gt;" option, like this:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;$ mpirun -gdba &amp;lt;pid&amp;gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Perhaps you can start the job first, then attach to the rank you want to debug this way.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	~Gergana&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2014 22:54:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/debugging-remotely-on-MIC/m-p/979750#M25811</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2014-02-24T22:54:22Z</dc:date>
    </item>
  </channel>
</rss>

