Skip to content

Instantly share code, notes, and snippets.

Avatar

Erik Schnetter eschnett

View GitHub Profile
View CMakeCache.txt
# This is the CMakeCache file.
# For build in directory: /Users/eschnett/SIMFACTORY/hpx-master/build
# It was generated by CMake: /opt/local/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
View configure.log
This file has been truncated, but you can view the full file.
patching file hpx/lcos/future.hpp
-- The CXX compiler identification is Clang 3.4.2
-- The C compiler identification is Clang 3.4.2
-- Check for working CXX compiler: /Users/eschnett/SIMFACTORY/hpx-master/install/bin/hpx_c++
-- Check for working CXX compiler: /Users/eschnett/SIMFACTORY/hpx-master/install/bin/hpx_c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /Users/eschnett/SIMFACTORY/hpx-master/install/bin/hpx_cc
-- Check for working C compiler: /Users/eschnett/SIMFACTORY/hpx-master/install/bin/hpx_cc -- works
@eschnett
eschnett / shelob.submit
Created Jun 23, 2014
Submitting on Shelob with HPX
View shelob.submit
#! /bin/bash
# qsub wave.shelob.hpx.2.submit
#PBS -A hpc_numrel05
#PBS -q checkpt
#PBS -r n
#PBS -l walltime=1:00:00
#PBS -l nodes=2:ppn=16
#PBS -V
View runtime_impl-96610f.cpp
This file has been truncated, but you can view the full file.
# 1 "<built-in>" 1
# 1 "/home/eschnett/SIMFACTORY/hpx-master/src/hpx-master/src/runtime_impl.cpp" 1
// Copyright (c) 2007-2013 Hartmut Kaiser
// Copyright (c) 2011 Bryce Lelbach
//
// 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)
#if 0 /* expanded by -frewrite-includes */
@eschnett
eschnett / hpx_wave.cc
Created Jul 5, 2014
Failing source code
View hpx_wave.cc
#include <hpx/hpx.hpp>
#include <hpx/hpx_main.hpp>
#include <boost/serialization/access.hpp>
template <typename T>
class HPX_COMPONENT_EXPORT component
: public hpx::components::managed_component_base<component<T> > {
boost::shared_ptr<T> ptr;
public:
component() {}
@eschnett
eschnett / gist:440665ebd5c55c79a807
Created Jul 8, 2014
HPX program hangs in shutdown
View gist:440665ebd5c55c79a807
^C
Program received signal SIGINT, Interrupt.
0x0000003d0740b43c in pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.5-7.el6_0.x86_64 cyrus-sasl-lib-2.1.23-13.el6.x86_64 glibc-2.12-1.80.el6_3.6.x86_64 libidn-1.18-2.el6.x86_64 libxml2-2.7.6-4.el6.x86_64 ncurses-libs-5.7-3.20090208.el6.x86_64 nspr-4.8.8-3.el6.x86_64 nss-3.12.10-16.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64 nss-util-3.12.10-2.el6.x86_64 openldap-2.4.23-20.el6.x86_64
(gdb) bt
#0 0x0000003d0740b43c in pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
#1 0x00002aaaaef0e51b in boost::asio::detail::task_io_service::do_run_one(boost::asio::detail::scoped_lock<boost::asio::detail::posix_mutex>&, boost::asio::detail::task_io_service_thread_info&, boost::system::error_code const&) ()
from /home/eschnett/SIMFACTORY/hpx-master/install/lib/hpx/libhpx.so.0
@eschnett
eschnett / hpx_wave.cc
Created Jul 8, 2014
Complete source code
View hpx_wave.cc
#include <hpx/hpx.hpp>
#include <boost/serialization/access.hpp>
#include <boost/serialization/vector.hpp>
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cmath>
#include <cstdlib>
View gist:b9d9c79ee5277578f18d
template<typename R, typename A, template<typename> class C>
R reduce(function<R(R,A)> f, R z, C<A> c)
{
R r(z);
for (e: c) r = f(r, e);
return r;
}
template<typename R, typename A1, typename A2, template<typename> class C>
R reduce(function<R(R,A,B)> f, R z, C<A1> c1, C<A2> c2)
@eschnett
eschnett / tree-2dac1a.cpp
Created Jul 26, 2014
preprocessed source
View tree-2dac1a.cpp
This file has been truncated, but you can view the full file.
# 1 "<built-in>" 1
# 1 "tree.i" 1
# 1 "tree.cc"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 194 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "tree.cc" 2
@eschnett
eschnett / plot.jl
Created Nov 11, 2014
Sample code for plotting vertices and edges of a mesh
View plot.jl
function mkplot(elt::Element)
maxcolor = 100
rank_colormaps = (colormap("Reds", maxcolor+1),
colormap("Greens", maxcolor+1),
colormap("Blues", maxcolor+1),
colormap("Purples", maxcolor+1),
colormap("Oranges", maxcolor+1))
elts = boundaries(elt, elt.rank)
ctr = meanpos(elts)
contract(pos) = pos - 0.1 * (pos-ctr)