Quantcast
Channel: Intel® Software - Intel® Many Integrated Core Architecture (Intel MIC Architecture)
Viewing all articles
Browse latest Browse all 1789

offload debugging in eclipse

$
0
0

I'm trying to debug offloaded code and followed
https://software.intel.com/en-us/articles/debugging-intel-xeon-phi-appli...

The general setup seems to work. But there are some error messages and when the program runs into a segfault (on one of the mics) I do not get a useful backtrace. The output of the debugger gives some hints.
1) at the very beginning there is a
warning: Architecture rejected target-supplied description

2) At the begin of the first offload I get for every mic such a message:

No symbol table is loaded. Use the warning: Could not load shared library symbols for /tmp/coi_procs/1/129002/libnormaliz.so.2.12MIC.1.
Do you need "set solib-search-path" or "set sysroot"?
warning: File "/opt/mpss/3.4.1/sysroots/k1om-mpss-linux/usr/lib64/libstdc++.so.6.0.16-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".

This seems to be the problem. In the link above I also found
"If libraries have different paths on host & target, help the debugger to find them:
(gdb) set solib-search-path <lib_paths>
<lib_paths> is a colon separated list of paths to look for libraries on the host"

But it is for direct gdb use. I do not know how to do it in eclipse. I thought it will all be handled by the plugins you provide.

I'm using mpss 3.4.1, icc 15.0.0 20140723, and eclipse Luna 4.4.1. The full debugger output is below.

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff4b60700 (LWP 15388)]
[Thread 0x7ffff4b60700 (LWP 15388) exited]
[New Thread 0x7ffff4b60700 (LWP 15390)]
[Thread 0x7ffff4b60700 (LWP 15390) exited]
[New Thread 0x7ffff4b60700 (LWP 15392)]
[Thread 0x7ffff4b60700 (LWP 15392) exited]
[New Thread 0x7ffff4b60700 (LWP 15394)]
[Thread 0x7ffff4b60700 (LWP 15394) exited]
[New Thread 0x7ffff3b25700 (LWP 16463)]
[New Thread 0x7ffff4b60700 (LWP 16464)]
[New Thread 0x7ffff3ac1700 (LWP 16465)]
[New Thread 0x7ffff36c0700 (LWP 16466)]
[New Thread 0x7ffff32bf700 (LWP 16467)]
[New Thread 0x7ffff2ebe700 (LWP 16468)]
[New Thread 0x7ffff2abd700 (LWP 16469)]
[New Thread 0x7ffff26bc700 (LWP 16470)]
[New Thread 0x7ffff22bb700 (LWP 16471)]
[New Thread 0x7ffff1eba700 (LWP 16472)]
[New Thread 0x7ffff1ab9700 (LWP 16473)]
[New Thread 0x7ffff16b8700 (LWP 16474)]
[New Thread 0x7ffff12b7700 (LWP 16475)]
[New Thread 0x7ffff0eb6700 (LWP 16476)]
[New Thread 0x7ffff0ab5700 (LWP 16477)]
[New Thread 0x7ffff06b4700 (LWP 16478)]
[New Thread 0x7fffb3fff700 (LWP 16479)]
[New Thread 0x7fffb3bfe700 (LWP 16480)]
[New Thread 0x7fffb37fd700 (LWP 16481)]
[New Thread 0x7fffb31fc700 (LWP 16482)]
[New Thread 0x7fffb2dfb700 (LWP 16483)]
[New Thread 0x7fffb23fa700 (LWP 16484)]
[Thread 0x7fffb23fa700 (LWP 16484) exited]
[New Thread 0x7fffb23fa700 (LWP 16485)]
[Thread 0x7fffb23fa700 (LWP 16485) exited]
[New Thread 0x7fffb23fa700 (LWP 16486)]
[New Thread 0x7fffb19f9700 (LWP 16487)]
[Thread 0x7fffb19f9700 (LWP 16487) exited]
[New Thread 0x7fffb19f9700 (LWP 16488)]
Attaching MIC process...
MIC card number is 0.
MIC Pid is 129002.
MIC local file is "/tmp/coi_procs/1/129002/normaliz?icpcoutqUPyvt".
MIC card address is "131.173.40.12".


Viewing all articles
Browse latest Browse all 1789

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>