Skip to content

Instantly share code, notes, and snippets.

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<hpx::exception> >'
what(): global applier object is not accessible: HPX(invalid_status)
Aborted (core dumped)
jeremy@T420:~/code/research/hpxMP$ make par-test
LD_PRELOAD=./libopenmp.so.1 ./omp-tests/omp-par
./omp-tests/omp-par: ./libopenmp.so.1: no version information available (required by ./omp-tests/omp-par)
Starting HPX OpenMP runtime
{stack-trace}: 10 frames:
0x2b61b92b0f45 : hpx::util::backtrace::backtrace(unsigned long) + 0x81 in /home/jeremy/hpxd/lib/hpx/libhpxd.so.0
0x2b61b92c1e86 : hpx::util::trace_on_new_stack() + 0x1e in /home/jeremy/hpxd/lib/hpx/libhpxd.so.0
0x2b61b92be6b5 : hpx::detail::backtrace() + 0x18 in /home/jeremy/hpxd/lib/hpx/libhpxd.so.0
0x2b61b92c232f : boost::exception_ptr hpx::detail::get_exception<hpx::exception>(hpx::exception const&, std::string const&, std::string const&, long) + 0x92 in /home/jeremy/hpxd/lib/hpx/libhpxd.so.0
#0 add (ec=..., stacksize=hpx::threads::thread_stacksize_small, run_now=false, initial_state=hpx::threads::pending, desc=0x7ffff78b2b21 "<unknown>",
f=..., this=0x7ffff7fe3e70) at /home/jeremy/hpx/include/hpx/runtime/threads/thread_executor.hpp:166
#1 hpx::lcos::detail::task_base<void>::apply (this=0xec0c00, priority=priority@entry=hpx::threads::thread_priority_default,
stacksize=stacksize@entry=hpx::threads::thread_stacksize_small, ec=...) at /home/jeremy/hpx/include/hpx/lcos/detail/future_data.hpp:596
#2 0x0000000000453b41 in apply (ec=..., stacksize=hpx::threads::thread_stacksize_small, priority=hpx::threads::thread_priority_default,
this=0x7ffff7fe3d70) at /home/jeremy/hpx/include/hpx/lcos/local/packaged_task.hpp:212
#3 async<void (&)(int, int), int&, int&> (f=@0x4534a0: {void (int, int)} 0x4534a0 <print_ints(int, int)>, a1=<synthetic pointer>,
a0=<synthetic pointer>, sched=...) at /home/jeremy/hpx/include/hpx/preprocessed/async_5.hpp:227
#4 thread_setup (i=0, exec=...) at exec_te
@kempj
kempj / dataflow_exec.cpp
Created November 18, 2017 01:19
dataflow with executor example
#include <hpx/hpx.hpp>
#include <hpx/dataflow.hpp>
#include <hpx/parallel/executors/thread_pool_executors.hpp>
#include <iostream>
using hpx::threads::executors::local_priority_queue_executor;
using hpx::shared_future;
using hpx::dataflow;
using hpx::async;