Skip to content

Instantly share code, notes, and snippets.

View tkphd's full-sized avatar
🏳️‍🌈

Trevor Keller tkphd

🏳️‍🌈
View GitHub Profile
@tkphd
tkphd / energy_6a_dx10.csv
Created August 1, 2017 20:04
CHiMaD Phase-Field Workshop V, problem 6 (electrochemistry)
time free_energy
0 76.4421
0.05 179.5
0.1 179.467
0.15 179.436
0.2 179.401
0.25 179.369
0.3 179.333
0.35 179.3
0.4 179.264
@tkphd
tkphd / sandbox.rst
Last active January 5, 2018 22:05
reStructuredText Sandbox

Overview

latex

FiPy is an object oriented, partial differential equation (PDE) solver, written in Python, based on a standard finite volume (FV) approach. The framework has been developed in the Materials Science and Engineering Division (MSED) and Center for Theoretical and

@tkphd
tkphd / sandbox.md
Last active May 30, 2018 18:23
markdown sandbox

Test 2: Shuffled Sum

Ideally, the sequence

    1  	     1      1
10× /   + 9× / + 9× / + 9×1 + 9×10 + 9×100 + 9×1000 = 10000.
   1000     100     10

However, due to the same floating point representation problem, variations arise

Similarly, the sequence

@tkphd
tkphd / .gitignore
Last active October 3, 2017 14:29
Beamer advert for CHiMaD Phase Field community
*.aux
*.log
*.nav
*.out
*.pdf
*.snm
*.toc
@tkphd
tkphd / hiperc-cuda-spinodal.csv
Created December 18, 2017 22:05
HiPerC spinodal CUDA results
time free_energy
0 326.432
1000 72.723657
2000 59.844391
3000 52.347518
4000 49.113197
5000.000001 45.705408
6000.000001 44.129659
7000.000001 41.328397
8000.000001 40.494658
@tkphd
tkphd / Problem7-sympy.py
Last active January 11, 2018 18:23
SymPy script for PFHub Problem 7
#!/usr/bin/python
# -*- coding: utf-8 -*-
## Sympy code to generate expressions for PFHub Problem 7 (MMS)
from sympy import Symbol, symbols, simplify
from sympy import Eq, sin, cos, cosh, sinh, tanh, sqrt
from sympy.physics.vector import divergence, gradient, ReferenceFrame, time_derivative
from sympy.printing import ccode, pprint
from sympy.abc import kappa, S, t
@tkphd
tkphd / EPYC-vs-Xeon.md
Last active May 24, 2018 21:39
AMD EPYC vs. Intel Xeon Compute Nodes

Compute Node Comparison

Trevor Keller, Ph.D.NIST MML MSED • May 15, 2018

Description

This document summarizes the side-by-side comparison of dual-socket servers:

2× [AMD EPYC 7601][_epyc] vs. 2× [Intel Xeon E5-2697Av4][_xeon].

The AMD system is a testbed, access to which was provided by [KOI Computers][_koic].

@tkphd
tkphd / bite-size.tex
Created March 8, 2019 01:16
Modifications for @B0rk's excellent Bite Size Networking to get a proper 2-sided booklet
% Modifications for @b0rk's excellent Bite Size Networking
% to get a proper 2-sided booklet
\documentclass[12pt]{article}
\usepackage{graphicx,pdfpages}
\usepackage[paperheight=11in,paperwidth=8.5in,margin=0in]{geometry}
\pagestyle{empty}
\begin{document}
\begin{figure}\centering
\vskip-1cm
\includegraphics[page=24,width=8.25in,angle=180]{bite-size-networking.pdf}

Bottom line: use du --apparent-size to compare information content (independent of filesystems), rather than disk utilization (block-size dependent).

                *Distributed Disk Utilization*
BeeGFS Items Apparent Size per Item On Disk per Item
hsf_0/ 176893 162.0 MB 0.94 KB 100.2 MB 0.58 KB
hsf_1/ 165189 152.5 MB 0.94 KB 93.9 MB 0.58 KB
@tkphd
tkphd / vector_addition.cu
Last active May 15, 2019 19:59
CUDA vector addition
/* vector_addition.cu
* Available as a Gist at https://tinyurl.com/y34nfxgc
*/
#include <stdio.h>
#include <cuda.h>
#define N 16
__global__ void vector_addition(int* d_u, int* d_v, int* d_w)