Skip to content

Instantly share code, notes, and snippets.

View dmarce1's full-sized avatar

Dominic Marcello dmarce1

View GitHub Profile
#0 _int_malloc (av=av@entry=0x7ffff5366c40 <main_arena>, bytes=bytes@entry=176) at malloc.c:3646
#1 0x00007ffff5014135 in _int_memalign (bytes=64, alignment=64, av=0x7ffff5366c40 <main_arena>) at malloc.c:4694
#2 _mid_memalign (address=<optimized out>, bytes=64, alignment=64) at malloc.c:3305
#3 __GI___libc_memalign (alignment=alignment@entry=64, bytes=bytes@entry=64) at malloc.c:3256
#4 0x00007ffff57b00a8 in operator new (sz=sz@entry=64, al=al@entry=(unknown: 64)) at ../../.././libstdc++-v3/libsupc++/new_opa.cc:103
#5 0x00007ffff63c478f in __gnu_cxx::new_allocator<boost::lockfree::queue<hpx::util::unique_function<void (), false>*>::node>::allocate(unsigned long, void const*) (this=0x62e5f0, __n=1)
at /home/dmarce1/local/gcc/include/c++/8.2.0/ext/new_allocator.h:99
#6 boost::lockfree::detail::freelist_stack<boost::lockfree::queue<hpx::util::unique_function<void (), false>*>::node, std::allocator<boost::lockfree::queue<hpx::util::unique_function<void (), false>*>::node> >::freelist_stack<std::alloca
@dmarce1
dmarce1 / gist:e33b0f374f29007a5744e255f3fe3167
Created September 7, 2018 19:32
Code to reproduce bug in hpx::lcos::promise
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <valarray>
#define MAX_BUFFER (64*1024)
int main( int argc, char* argv[] ) {
if( argc != 3) {
[ 4%] Building CXX object src/CMakeFiles/hpx.dir/runtime/agas/addressing_service.cpp.o
In file included from /home/dmarce1/local/boost/include/boost/icl/type_traits/identity_element.hpp:11:0,
from /home/dmarce1/local/boost/include/boost/icl/type_traits/unit_element.hpp:12,
from /home/dmarce1/local/boost/include/boost/icl/concept/interval.hpp:17,
from /home/dmarce1/local/boost/include/boost/icl/closed_interval.hpp:12,
from /work/dmarce1/build/hpx/src/runtime/agas/addressing_service.cpp:48:
/home/dmarce1/local/boost/include/boost/icl/type_traits/type_to_string.hpp:56:12: error: partial specialization of ‘struct boost::icl::type_to_string<Unary<Type> >’ after instantiation of ‘struct boost::icl::type_to_string<std::__cxx11::basic_string<char> >’ [-fpermissive]
struct type_to_string<Unary<Type> >
In file included from /work/dmarce1/build/hpx/src/runtime_impl.cpp:894:0:
/work/dmarce1/build/hpx/hpx/runtime/threads/policies/throttling_scheduler.hpp: In instantiation of ‘class hpx::threads::policies::throttling_scheduler<>’:
/work/dmarce1/build/hpx/hpx/runtime_impl.hpp:67:13: required from ‘class hpx::runtime_impl<hpx::threads::policies::throttling_scheduler<> >’
/work/dmarce1/build/hpx/src/runtime_impl.cpp:895:32: required from here
/work/dmarce1/build/hpx/hpx/runtime/threads/policies/throttling_scheduler.hpp:69:71: error: no members matching ‘hpx::threads::policies::local_queue_scheduler<>::cond_’ in ‘class hpx::threads::policies::local_queue_scheduler<>’
Mutex, PendingQueuing, StagedQueuing, TerminatedQueuing>::cond_;
^~~~~
[ 36%] Building CXX object src/CMakeFiles/hpx.dir/runtime/threads/executors/current_executor.cpp.o
[ 37%] Building CXX object src/CMakeFiles/hpx.dir/runtime/threads/executors/thread_pool_attached
[ 42%] Building CXX object src/CMakeFiles/hpx.dir/runtime/threads/thread_helpers.cpp.o
/work/dmarce1/build/hpx/hpx/runtime/threads/policies/throttling_scheduler.hpp: In instantiation of ‘bool hpx::threads::policies::throttling_scheduler<Mutex, PendingQueuing, StagedQueuing, TerminatedQueuing>::get_next_thread(std::size_t, bool, int64_t&, hpx::threads::thread_data*&) [with Mutex = std::mutex; PendingQueuing = hpx::threads::policies::lockfree_fifo; StagedQueuing = hpx::threads::policies::lockfree_fifo; TerminatedQueuing = hpx::threads::policies::lockfree_lifo; std::size_t = long unsigned int; int64_t = long int]’:
/work/dmarce1/build/hpx/src/runtime_impl.cpp:896:53: required from here
/work/dmarce1/build/hpx/hpx/runtime/threads/policies/throttling_scheduler.hpp:111:23: error: ‘cond_’ was not declared in this scope
cond_.wait(l);
~~~~~~^~~~
[ 43%] Building CXX object src/CMakeFiles/hpx.dir/runtime/threads/scheduler_specific_ptr.cpp.o
make[2]: *** [src/CMakeFiles/hpx.dir/runtim
@dmarce1
dmarce1 / gist:9d90ac92bc03050048ac5e60032843bc
Created March 23, 2017 15:38
Issue with 6e921495ff6c26f125d62629cbaad0525f14f7ab
+ cd /work/dmarce1/test
+ cp /work/dmarce1/octotiger/octotiger .
+ cat /var/spool/torque/aux//337399.qb3
+ awk 'NR % 20 == 0'
+ export HPX_NODEFILE=node.list
+ HPX_NODEFILE=node.list
+ unset PBS_NODEFILE
+ export I_MPI_FABRICS=shm:ofa
+ I_MPI_FABRICS=shm:ofa
+ export I_MPI_DAPL_PROVIDER=ofa-v2-mlx4_0-1u
#0 0x000000000087de17 in hpx::lcos::local::spinlock::acquire_lock (this=0x10) at /usr/local/packages/hpx/include/hpx/lcos/local/spinlock.hpp:188
#1 hpx::lcos::local::spinlock::lock (this=0x10) at /usr/local/packages/hpx/include/hpx/lcos/local/spinlock.hpp:145
#2 0x00000000008b62e9 in std::unique_lock<hpx::lcos::local::spinlock>::lock (this=<synthetic pointer>) at /usr/include/c++/5/mutex:485
#3 std::unique_lock<hpx::lcos::local::spinlock>::unique_lock (__m=..., this=<synthetic pointer>) at /usr/include/c++/5/mutex:415
#4 hpx::lcos::detail::future_data<void>::is_ready (this=<optimized out>) at /usr/local/packages/hpx/include/hpx/lcos/detail/future_data.hpp:646
#5 hpx::lcos::detail::wait_all_frame<hpx::util::tuple<std::vector<hpx::lcos::future<void>, std::allocator<hpx::lcos::future<void> > > const&> >::await_range<0ul, __gnu_cxx::__normal_iterator<hpx::lcos::future<void> const*, std::vector<hpx::lcos::future<void>, std::allocator<hpx::lcos::future<void> > > > > (this=0x7fffb47d2f80, next=..., end=...)
Running
# direct = 743
-----------------------------------------------
checking for refinement
regridding
rebalancing 9 nodes
forming tree connections
regrid done
-----------------------------------------------
---------------Created Level 1---------------
void grid::compute_boundary_interactions_multipole_multipole(gsolve_type type, const std::vector<boundary_interaction_type>& ilist_n_bnd,
const gravity_boundary_type& mpoles) {
PROF_BEGIN;
std::vector<space_vector> const& com0 = com[0];
// for (integer si = 0; si != ilist_n_bnd.size(); ++si) {
hpx::parallel::for_loop(
hpx::parallel::par, 0, ilist_n_bnd.size(),
[&mpoles, &com0, &ilist_n_bnd, type, this](std::size_t si) {
{stack-trace}: 4 frames:
0x2b4eec7463c6 : hpx::detail::backtrace(unsigned long) + 0x116 in /work/dmarce1/release/lib/libhpx.so.0
0x2b4eec74e6d2 : void hpx::detail::throw_exception<hpx::exception>(hpx::exception const&, std::string const&, std::string const&, long) + 0x2a2 in /work/dmarce1/release/lib/libhpx.so.0
0x2b4eec6b6c18 : hpx::detail::throw_exception(hpx::error, std::string const&, std::string const&, std::string const&, long) + 0xb8 in /work/dmarce1/release/lib/libhpx.so.0
0x2b4eec6b66d9 : hpx::detail::throws_if(hpx::error_code&, hpx::error, std::string const&, std::string const&, std::string const&, long) + 0x139 in /work/dmarce1/release/lib/libhpx.so.0
{env}: 137 entries:
ACLOCAL_PATH=/usr/local/packages/cmake/2.8.12/INTEL-14.0.2/share/aclocal
BASH_FUNC_module()=() { eval `/usr/local/packages/Modules/$MODULE_VERSION/bin/modulecmd bash $*`
}