Skip to content

Instantly share code, notes, and snippets.

View aterrel's full-sized avatar

Andy R. Terrel aterrel

  • NVIDIA
  • Austin, TX
View GitHub Profile
@aterrel
aterrel / advection_rp_step_ispc.ispc
Created March 14, 2012 15:18
Advection Riemann problem using the ispc
#define NUM_GHOST 2
#define NUM_STATES 1
#define NUM_WAVES 1
void advection_rp(uniform double* q_left, uniform double* q_right,
uniform double* amdq, uniform double* apdq, uniform double* wave, uniform double* s)
{
// Wave and speed
wave[0] = q_right[0] - q_left[0];
s[0] = 1.0;
def _rev_top_sort (self, dag):
"""Simple reverse top sorter given dag
dag: a dictionary with node:(neighbors)
returns a list of nodes in reversed topological order.
Used to determine update sequence.
"""
@aterrel
aterrel / pretty_prompt.sh
Created January 19, 2011 02:14
Relevant bash for my prompt
# Set the prompt
export CLICOLOR=1
source $HOME/.git-completion.sh
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
win-divider() {
s="_"
o=""