Skip to content

Instantly share code, notes, and snippets.

View dchansen's full-sized avatar

David Christoffer Hansen dchansen

  • Gradient Software
  • Denmark
View GitHub Profile
@dchansen
dchansen / gist:6c616b73e65a68c027efa29082e777a1
Created September 5, 2017 12:41
GDB from pytorch segfault
Starting program: /usr/bin/python3 torchtest.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fa242d67700 (LWP 12575)]
[New Thread 0x7fa242566700 (LWP 12576)]
[New Thread 0x7fa23dd65700 (LWP 12577)]
[New Thread 0x7fa23d564700 (LWP 12578)]
[New Thread 0x7fa23ad63700 (LWP 12579)]
[New Thread 0x7fa236562700 (LWP 12580)]
[New Thread 0x7fa233d61700 (LWP 12581)]
@dchansen
dchansen / Ranshi.c
Last active December 18, 2021 06:12
Ranshi64 speed test
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include <stdbool.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <math.h>
#include <limits.h>
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{