Skip to content

Instantly share code, notes, and snippets.

View torbjoernk's full-sized avatar

Torbjörn Klatt torbjoernk

View GitHub Profile
@torbjoernk
torbjoernk / config.log
Last active September 28, 2015 17:28
EB GNU-5.1.0-2.25 failure
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ ../configure --enable-languages=c,c++,fortran --enable-lto --enable-checking=release --disable-multilib --enable-shared=yes --enable-static=yes --enable-threads=posix --enable-gold=default --enable-plugins --enable-ld --with-plugin-ld=ld.gold --prefix=/opt/eb/software/GCC/5.1.0-binutils-2.25 --with-local-prefix=/opt/eb/software/GCC/5.1.0-binutils-2.25 --enable-bootstrap --with-isl=/data/opt/eb/build/GCC/5.1.0/dummy--binutils-2.25/gcc-5.1.0/stage2_stuff
## --------- ##
## Platform. ##
@torbjoernk
torbjoernk / Serial MLSDC
Created May 13, 2015 07:25
log comparison for test_mpi_advection_diffusion setup (T=0.04, dt=0.01, dofs_fine=128, nodes_fine=5, abs_res_tol=1e-8)
./examples/advection_diffusion/serial_mlsdc --spatial_dofs 128 --dt 0.01 --tend 0.04 --num_iter 12 --num_nodes 5 --abs_res_tol 1e-8
09:17:13,8071 [DEFAULT , INFO , MPI 0] PFASST++ version v0.4.0-56-gbafc77f-dirty
09:17:13,8077 [DEFAULT , INFO , MPI 0] expected quadrature error: 3.33067e-15 (5)
09:17:13,8078 [DEFAULT , INFO , MPI 0] expected quadrature error: 0 (3)
09:17:13,8096 [ADVEC , INFO , MPI 0] step: 1 iter: 0 n1: 5 n2: 128 residual: 6.9776e-04 err: 6.9289e-04
09:17:13,8113 [ADVEC , INFO , MPI 0] step: 1 iter: 0 n1: 3 n2: 64 residual: 1.2343e-05 err: 1.2274e-05
09:17:13,8128 [ADVEC , INFO , MPI 0] step: 1 iter: 1 n1: 5 n2: 128 residual: 7.3181e-07 err: 5.4030e-07
09:17:13,8144 [ADVEC , INFO , MPI 0] step: 1 iter: 1 n1: 3 n2: 64 residual: 1.1648e-08 err: 1.5428e-08
09:17:13,8158 [ADVEC , INFO , MPI 0] step: 1 iter: 2 n1:
@torbjoernk
torbjoernk / OUT: minimal_example
Created September 18, 2014 08:41
Eigen3: Incorrect Matrix-Matrix Multiplication
Block:
0.208333 0.333333 -0.0416667
0.166667 0.666667 0.166667
Matrix:
0 0 0
0.208333 0.333333 -0.0416667
0.166667 0.666667 0.166667
Matrix * Matrix:
0 0 0
0.0624998 0.0833331 -0.0208334
@torbjoernk
torbjoernk / type_traits_tests.cpp
Created June 24, 2014 13:42
a little minimal example of custom type_traits
/*
* compile this with G++ or Clang++ with C++11 enabled
*
* g++ -std=c++11 -o type_traits_test type_traits_test.cpp
*
* clang++ -std=c++11 -o type_traits_test type_traits_test.cpp
*
* and pipe the output through `c++filt -t`
*
* ./type_traits_test | c++filt -t
@torbjoernk
torbjoernk / ugconvert.sh
Last active December 15, 2015 21:19
Bash script for converting an existing SVN repository to Mercurial and splitting it up into a hierarchy of subrepositories. See http://blog.torbjoern-klatt.de/article/2013/04/03/struggling-with-git-submodules-and-mercurial-subrepositories/ for the story around it.
#!/bin/bash
#******************************************************************************#
# ugconvert.sh #
# Script to convert and split ug4's SVN repo to hg repos #
# by Torbjörn Klatt #
# 2013-03-30 #
# Inspired by #
# https://blogs.atlassian.com/2011/03/goodbye_subversion_hello_mercurial/ #
# #
@torbjoernk
torbjoernk / gist:3113509
Created July 14, 2012 21:34
This raises SystemStackError: stack level too deep
require "rspec"
require "rspec/expectations"
require "rspec/mocks"
RSpec.configure do |config|
end
describe "SystemStackError: stack level too deep" do
it "is raised by this" do
file = "test_file"
@torbjoernk
torbjoernk / gist:2944042
Created June 17, 2012 09:49
S.M.A.R.T. values for my HDD. Its perfectly fine and no failure can be expected.
smartctl -A /dev/sda
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.1.10-1.9-desktop] (SUSE RPM)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 200 200 051 Pre-fail Always - 50
3 Spin_Up_Time 0x0003 187 184 021 Pre-fail Always - 1625
@torbjoernk
torbjoernk / gist:2944022
Created June 17, 2012 09:39
Kernel warning of IPv6 bug (https://bugzilla.kernel.org/show_bug.cgi?id=42780) on Lenovo Thinkpad R61 with kernel 3.1.9
Jun 16 16:46:23 sattelite kernel: [ 3646.935094] INFO: rcu_preempt_state detected stalls on CPUs/tasks: {} (detected by 0, t=2040354 jiffies)
Jun 16 16:46:23 sattelite kernel: [ 3646.935110] sending NMI to all CPUs:
Jun 16 16:46:23 sattelite kernel: [ 3646.935120] NMI backtrace for cpu 0
Jun 16 16:46:23 sattelite kernel: [ 3646.935124] CPU 0
Jun 16 16:46:23 sattelite kernel: [ 3646.935127] Modules linked in: nls_iso8859_1 nls_cp437 vfat fat fuse ip6t_LOG xt_tcpudp xt_pkttype ipt_LOG xt_limit af_packet rfcomm bnep ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw xt_NOTRACK ipt_REJECT iptable_raw iptable_filter ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables vboxpci vboxnetadp vboxnetflt vboxdrv microcode cpufreq_conservative cpufreq_userspace cpufreq_powersave acpi_cpufreq mperf binfmt_misc snd_hda_codec_analog arc4 iwl3945 iwl_legacy mac80211 ecb btusb bluetooth cfg80211 snd_hda_in