Skip to content

Instantly share code, notes, and snippets.

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'
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'
[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
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,
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:111:52: error: invalid initialization of non-const reference of type ‘std::basic_string<char>&’ from an rvalue of type ‘std::string {aka std::basic_string<char>}’
boost::algorithm::token_compress_on);
^
In file included from /home/jeremy/hpx/include/hpx/runtime/components/component_registry.hpp:24:0,
from /home/jeremy/hpx/include/hpx/include/components.hpp:11,
from /home/jeremy/hpx/include/hpx/include/runtime.hpp:11,
from /home/jeremy/hpx/include/hpx/hpx.hpp:11,
hpxMP.cpp: In constructor ‘initialize_hpx::initialize_hpx(int, omp_micro, frame_pointer_t)’:
hpxMP.cpp:115:56: error: invalid initialization of non-const reference of type ‘std::basic_string<char>&’ from an rvalue of type ‘std::string {aka std::basic_string<char>}’
boost::algorithm::token_compress_on);
^
In file included from /home/jeremy/hpx/include/hpx/runtime/components/component_registry.hpp:24:0,
from /home/jeremy/hpx/include/hpx/include/components.hpp:11,
from /home/jeremy/hpx/include/hpx/include/runtime.hpp:11,
from /home/jeremy/hpx/include/hpx/hpx.hpp:11,
from hpxMP.cpp:7:
/home/jeremy/boost/include/boost/algorithm/string/split.hpp:140:35: error: in passing argument 1 of ‘SequenceSequenceT& boost::algorithm::split(SequenceSequenceT&, RangeT&, PredicateT, boost::algorithm::token_compress_mode_type) [with SequenceSequenceT = std::basic_string<char>; RangeT = st
make
g++ -fPIC -c hpxMP.cpp -o hpxMP.o `pkg-config --cflags --libs hpx_application`
hpxMP.cpp: In constructor ‘initialize_hpx::initialize_hpx(int, omp_micro, frame_pointer_t)’:
hpxMP.cpp:115:56: error: invalid initialization of non-const reference of type ‘std::basic_string<char>&’ from an rvalue of type ‘std::string {aka std::basic_string<char>}’
boost::algorithm::token_compress_on);
^
In file included from /home/jeremy/hpx/include/hpx/runtime/components/component_registry.hpp:24:0,
from /home/jeremy/hpx/include/hpx/include/components.hpp:11,
from /home/jeremy/hpx/include/hpx/include/runtime.hpp:11,
from /home/jeremy/hpx/include/hpx/hpx.hpp:11,
#include "hpxMP.h"
#include <iostream>
#include <cstdlib>
#include <vector>
#include <string>
#include <hpx/hpx.hpp>
#include <hpx/hpx_fwd.hpp>
#include <hpx/hpx_init.hpp>
#include <hpx/runtime/threads/topology.hpp>
{what}: Segmentation fault
{config}:
HPX_HAVE_NATIVE_TLS=ON
HPX_HAVE_STACKTRACES=ON
HPX_HAVE_COMPRESSION_BZIP2=OFF
HPX_HAVE_COMPRESSION_SNAPPY=OFF
HPX_HAVE_COMPRESSION_ZLIB=OFF
HPX_HAVE_PARCEL_COALESCING=ON
HPX_HAVE_PARCELPORT_SHMEM=OFF
HPX_HAVE_PARCELPORT_IBVERBS=OFF
LD_PRELOAD=./libopenmp.so ./omp-tests/bots/bin/strassen.openuh.omp-tasks -n 8192 -c
Computing sequential Strassen algorithm (n=8192) completed!
Computing parallel Strassen algorithm (n=8192) Starting HPX OpenMP runtime
HPX OpenMP runtime has started
completed!
Program = Strassen
Parameters = N=8192:Y=64
Model = OpenMP (using tasks)
Embedded cut-off = none