Skip to content

Instantly share code, notes, and snippets.

jeremy@T420:~/code/research/hpxMP$ make
g++ -fPIC -c hpxMP.cpp -o hpxMP.o `pkg-config --cflags --libs hpx_application`
hpxMP.cpp: In function ‘void __ompc_fork(int, omp_micro, frame_pointer_t)’:
hpxMP.cpp:116:17: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
argv[0] = "hpxMP";
^
hpxMP.cpp:120:45: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
argv[i + 1] = hpx_args[i].c_str();
^
In file included from /home/jeremy/boost/include/boost/algorithm/string/split.hpp:16:0,
[openuh-source]$ mkdir ../openuh-build
[openuh-source]$ cd ../openuh-build
[openuh-build]$ ../openuh-source/configure --prefix=<openuh-install-path>
[openuh-build]$ make all
[openuh-build]$ make install
LD_PRELOAD=~/code/research/hpxMP/libopenmp.so ./omp-lu-orig 1000 10
runtime_support::load_components: command line processing: unrecognised option '--hpx:print-bind'
Configuration after runtime start:
----------------------------------
============================
[application]
[hpx]
'cmd_line' : 'foo --hpx:dump-config --hpx:print-bind'
'component_path' : '$[hpx.location]/lib/hpx:$[system.executable_prefix]/lib/hpx:$[system.executable_prefix]/../lib/hpx' -> '/home/jeremy/hpx/lib/hpx:/home/jeremy/code/research/dataflow/lib/hpx:/home/jeremy/code/research/dataflow/../lib/hpx'
'cores' : '18446744073709551615'
Configuration after runtime start:
----------------------------------
============================
[application]
[hpx]
'cmd_line' : 'foo --hpx:dump-config'
'component_path' : '$[hpx.location]/lib/hpx:$[system.executable_prefix]/lib/hpx:$[system.executable_prefix]/../lib/hpx' -> '/home/jeremy/hpx/lib/hpx:/home/jeremy/code/research/dataflow/lib/hpx:/home/jeremy/code/research/dataflow/../lib/hpx'
'cores' : '18446744073709551615'
'finalize_wait_time' : '-1.0'
'first_pu' : '0'
~/openUH/bin/opencc -g omp-orig.c -fopenmp -o omp-lu-orig ../../hpxMP/libopenmp.so
/home/jeremy/hpx/lib/hpx/libhpx.so.0: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
/home/jeremy/hpx/lib/hpx/libhpx.so.0: undefined reference to `std::__detail::_List_node_base::_M_unhook()@GLIBCXX_3.4.15'
../../hpxMP/libopenmp.so: undefined reference to `std::range_error::~range_error()@GLIBCXX_3.4.15'
../../hpxMP/libopenmp.so: undefined reference to `std::out_of_range::~out_of_range()@GLIBCXX_3.4.15'
../../hpxMP/libopenmp.so: undefined reference to `std::length_error::~length_error()@GLIBCXX_3.4.15'
../../hpxMP/libopenmp.so: undefined reference to `std::invalid_argument::~invalid_argument()@GLIBCXX_3.4.15'
../../hpxMP/libopenmp.so: undefined reference to `std::domain_error::~domain_error()@GLIBCXX_3.4.15'
/home/jeremy/hpx/lib/hpx/libhpx.so.0: undefined reference to `std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(std::basic_string<char, std
ldd --verbose /usr/lib/x86_64-linux-gnu/libstdc++.so.6
linux-vdso.so.1 => (0x00007fffd13fe000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7a04627000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7a0425e000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7a04c56000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7a04048000)
Version information:
/usr/lib/x86_64-linux-gnu/libstdc++.so.6:
ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
ldd --verbose /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libstdc++.so.6
linux-vdso.so.1 => (0x00007fff3f3fe000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7ee8140000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7ee7d77000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7ee7b61000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7ee8676000)
Version information:
/opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libstdc++.so.6:
libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
ldd --verbose /opt/intel/vtune_amplifier_xe_2013/bin64/amplxe-cl
linux-vdso.so.1 => (0x00007fff3cdfe000)
libamplxe_cctrl_climgr_2.30.so => /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libamplxe_cctrl_climgr_2.30.so (0x00007f88d06fa000)
libamplxe_cctrl_core_2.30.so => /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libamplxe_cctrl_core_2.30.so (0x00007f88d0314000)
libamplxe_rdmgr_2.17.so => /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libamplxe_rdmgr_2.17.so (0x00007f88d008f000)
libamplxe_dicerengine_climgr_2.14.so => /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libamplxe_dicerengine_climgr_2.14.so (0x00007f88cfe2c000)
libamplxe_dicerengine_core_2.14.so => /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libamplxe_dicerengine_core_2.14.so (0x00007f88cf98e000)
libamplxe_dataproviderinterface_core_1.12.so => /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libamplxe_dataproviderinterface_core_1.12.so (0x00007f88cf782000)
libamplxe_file_finder_core_2.14.so => /opt/intel/vtune_amplifier
ldd --verbose ./libopenmp.so
linux-vdso.so.1 => (0x00007fffc91fe000)
libhpx.so.0 => /home/jeremy/hpx/lib/hpx/libhpx.so.0 (0x00007f3f02ed7000)
libhpx_serialization.so.0 => /home/jeremy/hpx/lib/hpx/libhpx_serialization.so.0 (0x00007f3f02cc1000)
libboost_program_options.so.1.53.0 => /home/jeremy/boost/lib/libboost_program_options.so.1.53.0 (0x00007f3f02a56000)
libboost_serialization.so.1.53.0 => /home/jeremy/boost/lib/libboost_serialization.so.1.53.0 (0x00007f3f027e1000)
libboost_system.so.1.53.0 => /home/jeremy/boost/lib/libboost_system.so.1.53.0 (0x00007f3f025dc000)
libboost_thread.so.1.53.0 => /home/jeremy/boost/lib/libboost_thread.so.1.53.0 (0x00007f3f023c2000)
libtcmalloc.so.4 => /usr/lib/libtcmalloc.so.4 (0x00007f3f02132000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3f01e2d000)
ldd --verbose $(which /opt/intel/vtune_amplifier_xe_2013/bin64/amplxe-cl)
linux-vdso.so.1 => (0x00007fff903fe000)
libamplxe_cctrl_climgr_2.30.so => /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libamplxe_cctrl_climgr_2.30.so (0x00007face17fc000)
libamplxe_cctrl_core_2.30.so => /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libamplxe_cctrl_core_2.30.so (0x00007face1416000)
libamplxe_rdmgr_2.17.so => /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libamplxe_rdmgr_2.17.so (0x00007face1191000)
libamplxe_dicerengine_climgr_2.14.so => /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libamplxe_dicerengine_climgr_2.14.so (0x00007face0f2e000)
libamplxe_dicerengine_core_2.14.so => /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libamplxe_dicerengine_core_2.14.so (0x00007face0a90000)
libamplxe_dataproviderinterface_core_1.12.so => /opt/intel/vtune_amplifier_xe_2013/bin64/../lib64/libamplxe_dataproviderinterface_core_1.12.so (0x00007face0884000)
libamplxe_file_finder_core_2.14.so => /opt/intel/vtune_