Skip to content

Instantly share code, notes, and snippets.

View benkirk's full-sized avatar

Benjamin S. Kirk benkirk

View GitHub Profile
@benkirk
benkirk / hello_world_mpi_ssend_recv.C
Created November 30, 2022 20:42
test various MPI Send modes with 0-length messages between two ranks.
#include <iostream>
#include <iomanip>
#include <cassert>
#include <unistd.h>
#include "mpi.h"
int main (int argc, char **argv)
{
@benkirk
benkirk / test_xdr.C
Last active December 28, 2015 06:09
tests xdr & native C binary I/O performance for vector and element-wise access.
// g++ -O2 -o test_xdr test_xdr.C ; time ./test_xdr
#include <iostream>
#include <vector>
#include <rpc/rpc.h>
#include <ctime>
#include <sys/time.h>
@benkirk
benkirk / config.log
Created February 14, 2013 19:44
XCode gcc configuration debugging
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libmesh configure 0.9.1pre, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ../configure --prefix=/Users/benkirk/codes/libmesh/xcode/_inst
## --------- ##
## Platform. ##