Skip to content

Instantly share code, notes, and snippets.

@cwsmith
cwsmith / first.sh
Last active September 1, 2015 18:59 — forked from ibaned/first.sh
two-script solution to getting a 1B element case going
#!/bin/sh
#SBATCH --job-name=make1B
#SBATCH -t 02:00:00
## are we in fact able to do this with 16 ranks per node ?
#SBATCH -N 64
#SBATCH -n 1024
#SBATCH --partition small
#SBATCH -D /gpfs/u/scratch/PGES/PGESzhnl/Test/10x10/mesh
set -xe
EXE_DIR=/gpfs/u/home/PGES/PGESgnzw/scratch/core/build/test
@cwsmith
cwsmith / deadlock.c
Last active December 30, 2015 04:19 — forked from ibaned/deadlock.c
/* This program should be run on a single Blue Gene/Q node
* using 5 or more parallel processes and 8 threads per process.
* Run the program with:
* mpirun -np 5 ./deadlock 8
* where 8 specifies number of threads per process.
* It has a high probability of going into a deadlocked state
* (or at least timing out at 5~10 minutes).
* The probability increases as LOOPS is increased. */
#include <mpi.h>
@cwsmith
cwsmith / scorec_functions.sh
Last active October 12, 2015 06:07
Bash functions for installing SCOREC software
#!/bin/bash
#This is a build script for the SCOREC software stack.
#users should first modify the CC, CXX, and FC variables below:
#set the C and C++ compilers to point at MPI compiler wrappers
export CC="not set"
export CXX="not set"
export FC="not set"
PREFIX="not set"
DEBUG='-g '
BUILD_DIR="not set"