Send hpx-devel mailing list submissions to
        hpx-devel@stellar-group.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://mail.cct.lsu.edu/mailman/listinfo/hpx-devel
or, via email, send a message with subject or body 'help' to
        hpx-devel-requ...@stellar-group.org

You can reach the person managing the list at
        hpx-devel-ow...@stellar-group.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of hpx-devel digest..."


Today's Topics:

   1. Score-P wrapping of HPX - missing Symbols (Leon Seifert)


----------------------------------------------------------------------

Message: 1
Date: Fri, 6 Nov 2020 19:52:15 +0100
From: Leon Seifert <leon_friedrich.seif...@tu-dresden.de>
Subject: [hpx-devel] Score-P wrapping of HPX - missing Symbols
To: <hpx-devel@stellar-group.org>
Message-ID: <77dac98d-8e6c-c8a9-cc69-f11872cf8...@tu-dresden.de>
Content-Type: text/plain; charset="utf-8"

Dear HPX Developers,

for my Master Thesis I want to wrap the HPX Library with Score-P, in 
order to enable Score-P to trace Applications, which are using HPX. 
While doing this I encountered the Problem, that Score-P cannot find any 
of the Symbols of HPX. And my Question is, if you have any experience 
using Score-P and HPX or any Idea, why I might not be able to find these 
Symbols.

A list of the existing Symbols is given by: "nm -D --defined 
/opt/hpx/lib/libhpx.so". One of these is: "_ZN3hpx7runtime8finalizeEd". 
The problem is that the "make check" of "scorep-libwrap-init" cannot 
find any of the 1688 Symbols which should be in my example Code. The 
Output for one missing Symbol is below this email. When wrapping other 
Libraries, like OpenBLAS, all Symbols are found.

In case you need more information about my HPX build or other factors, I 
am happy to send more.

Thank you very much for your work!
Greetings,
Leon Seifert


In the following example all Symbols except "_ZN3hpx7runtime8finalizeEd" 
were filtered out:

leon@DESKTOP-0GMJBKS:/ ... /cse_ma_scorep_hpx/hpx_libwrap$ make check V=1
g++ -o symbol_check symbol_check.cc -DHPX_APPLICATION_EXPORTS 
-DHPX_DISABLE_ASSERTS -DBOOST_DISABLE_ASSERTS -DHPX_DISABLE_ASSERTS 
-DBOOST_DISABLE_ASSERTS -std=c++14 -I/opt/hpx/include -L/opt/hpx/lib 
/opt/hpx/lib/libhpx.so.1.6.0 /opt/hpx/lib/libhpx_core.so -lboost_system 
-ltcmalloc_minimal -lhwloc -lboost_filesystem 
/opt/hpx/lib/libhpx_parallelism.so -lboost_program_options 
/opt/hpx/lib/libhpx_wrap.a -Wl,-wrap=main /opt/hpx/lib/libhpx_init.a 
-lpthread -latomic -ldl -lrt
/usr/bin/ld: /opt/hpx/lib/libhpx.so.1.6.0: undefined reference to symbol 
'_ZN5boost15program_options19options_description21m_default_line_lengthE'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libboost_program_options.so:
 
error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
 ? MISSING?? _ZN3hpx7runtime8finalizeEd
[Score-P] Error: Symbols that are not present in the target library have 
been
[Score-P]??????? wrapped. The filter file 'missing.filter' containing these
[Score-P]??????? symbols has been created. Reconsider your wrapper 
settings, or
[Score-P]??????? add these symbols to hpx_wrapper.filter if they should 
not be
[Score-P]??????? wrapped. Then repeat 'make' and 'make check'.
Makefile:277: recipe for target 'check' failed
make: *** [check] Error 1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://mail.cct.lsu.edu/pipermail/hpx-devel/attachments/20201106/1e9a0fbf/attachment-0001.html
 

------------------------------

_______________________________________________
hpx-devel mailing list
hpx-devel@stellar-group.org
https://mail.cct.lsu.edu/mailman/listinfo/hpx-devel


End of hpx-devel Digest, Vol 66, Issue 1
****************************************

Reply via email to