Skip to content

Instantly share code, notes, and snippets.

View ltroska's full-sized avatar

Lukas Troska ltroska

  • Universität Bonn
View GitHub Profile
/home/lukas/libs/hpx/src/runtime/threads/threadmanager.cpp: In member function ‘hpx::naming::gid_type hpx::threads::threadmanager_impl<SchedulingPolicy>::thread_wait_time_counter_creator(const hpx::performance_counters::counter_info&, hpx::error_code&)’:
/home/lukas/libs/hpx/src/runtime/threads/threadmanager.cpp:299:49: error: ‘threads_’ was not declared in this scope
std::size_t(paths.instanceindex_) < threads_.size())
^
/home/lukas/libs/hpx/src/runtime/threads/threadmanager.cpp: In member function ‘hpx::naming::gid_type hpx::threads::threadmanager_impl<SchedulingPolicy>::task_wait_time_counter_creator(const hpx::performance_counters::counter_info&, hpx::error_code&)’:
/home/lukas/libs/hpx/src/runtime/threads/threadmanager.cpp:352:49: error: ‘threads_’ was not declared in this scope
std::size_t(paths.instanceindex_) < threads_.size())
^
/home/lukas/libs/hpx/src/runtime/threads/threadman
#include <hpx/hpx_init.hpp>
#include <hpx/hpx.hpp>
int hpx_main(int argc, char* argv[])
{
uint const num_partitions_x = 16;
uint const num_partitions_y = 16;
uint const num_cells_x = 1024;
uint const num_cells_y = 1024;
#include <hpx/hpx_init.hpp>
#include <hpx/hpx.hpp>
#include <hpx/parallel/algorithm.hpp>
int hpx_main(int argc, char* argv[])
{
int size_x = 4096;
int size_y = 4096;
@ltroska
ltroska / command
Created March 15, 2016 12:26
error
cd hpx
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/hpx_release \
-DTCMALLOC_INCLUDE_DIR=/opt/gperftools-2.4/include/ \
-DTCMALLOC_LIBRARY=/opt/gperftools-2.4/lib/libtcmalloc_minimal_debug.so \
-DHWLOC_LIBRARY=/opt/hwloc-1.11.1/lib/libhwloc.so \
-DHWLOC_INCLUDE_DIR=/opt/hwloc-1.11.1/include/ \
-DHPX_WITH_EXAMPLES=OFF \
-DHPX_WITH_THREAD_IDLE_RATES=ON \
@ltroska
ltroska / gist:e51adaf6d9002c764fd7
Created March 1, 2016 15:05
corresponding error message
In file included from /home/troska/opt/hpx_release/include/hpx/dataflow.hpp:9:0,
from /home/troska/opt/hpx_release/include/hpx/runtime/components/default_distribution_policy.hpp:24,
from /home/troska/opt/hpx_release/include/hpx/runtime/components/new.hpp:17,
from /home/troska/opt/hpx_release/include/hpx/include/components.hpp:45,
from /home/troska/opt/hpx_release/include/hpx/include/runtime.hpp:10,
from /home/troska/opt/hpx_release/include/hpx/hpx.hpp:10,
from /home/troska/Work/nast_hpx/src/main.cpp:2:
/home/troska/opt/hpx_release/include/hpx/lcos/dataflow.hpp: In instantiation of ‘void hpx::lcos::detail::dataflow_frame<Policy, Func, Futures>::execute(mpl_::false_) [with Policy = hpx::launch; Func = foo_action; Futures = hpx::util::tuple<hpx::naming::id_type>; mpl_::false_ = mpl_::bool_<false>]’:
/home/troska/opt/hpx_release/include/hpx/lcos/dataflow.hpp:204:34: required from ‘void hpx::lcos::detail::datafl
@ltroska
ltroska / main.cpp
Last active March 1, 2016 15:11
compilation error
// Copyright (c) 2016 Lukas Troska
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// This demonstrated the compilation error when using an action that returns a
// future inside dataflow (issue #2008)
#include <hpx/hpx_init.hpp>
#include <hpx/hpx.hpp>
@ltroska
ltroska / gist:661dd4940cf650c6dc82
Last active March 1, 2016 14:56
does not compile
#include <hpx/hpx_init.hpp>
#include <hpx/hpx.hpp>
hpx::future<double> bla()
{
return hpx::make_ready_future(0.);
}
HPX_DEFINE_PLAIN_ACTION(bla);
@ltroska
ltroska / gist:080e7a41572c454a1a65
Created February 24, 2016 14:44
gather segfault
#include <hpx/hpx_init.hpp>
#include <hpx/hpx.hpp>
#include <hpx/lcos/gather.hpp>
char const* gather_basename = "/test/gather/";
HPX_REGISTER_GATHER(double, test_gather);
int hpx_main(int argc, char* argv[])
{