Skip to content

Instantly share code, notes, and snippets.

(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 10.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
function init(u)
n = length(u)
dx = 1.0 / (n-1)
@fastmath @inbounds @simd for i in 1:n
u[i] = sin(2pi*dx*i)
end
end
function deriv(u, du)
n = length(u)
@eschnett
eschnett / config.log
Created March 16, 2015 16:32
OpenMPI and hwloc
This file has been truncated, but you can view the full file.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Open MPI configure 1.8.4, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ /Users/eschnett/src/cc/FunHPC.cxx/external/openmpi-1.8.4/configure --prefix=/Users/eschnett/src/cc/FunHPC.cxx/openmpi-1.8.4 --with-hwloc=/Users/eschnett/src/cc/FunHPC.cxx/hwloc-1.10.1 --disable-shared CC=clang CXX=clang++ CFLAGS=-march=native -Wall -g -O3 CXXFLAGS=-march=native -Wall -g -O3
## --------- ##
## Platform. ##
This file has been truncated, but you can view the full file.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Open MPI configure 1.8.4, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ /Users/eschnett/src/cc/FunHPC.cxx/external/openmpi-1.8.4/configure --prefix=/Users/eschnett/src/cc/FunHPC.cxx/openmpi-1.8.4 --with-hwloc=/Users/eschnett/src/cc/FunHPC.cxx/hwloc-1.10.1 CC=clang CXX=clang++ CFLAGS=-march=native -Wall -g -O3 CXXFLAGS=-march=native -Wall -g -O3
## --------- ##
## Platform. ##
This file has been truncated, but you can view the full file.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Open MPI configure 1.8.4, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ /project/eschnett/shelob/src/cc/FunHPC.cxx/external/openmpi-1.8.4/configure --prefix=/project/eschnett/shelob/src/cc/FunHPC.cxx/openmpi-1.8.4 --with-hwloc=/project/eschnett/shelob/src/cc/FunHPC.cxx/hwloc-1.10.1 CC=gcc CXX=g++ CFLAGS=-m128bit-long-double -march=native -Wall -g -O3 CXXFLAGS=-m128bit-long-double -march=native -Wall -g -O3
## --------- ##
## Platform. ##
This file has been truncated, but you can view the full file.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Open MPI configure 1.8.4, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ /project/eschnett/shelob/src/cc/FunHPC.cxx/external/openmpi-1.8.4/configure --prefix=/project/eschnett/shelob/src/cc/FunHPC.cxx/openmpi-1.8.4 --with-hwloc=/project/eschnett/shelob/src/cc/FunHPC.cxx/hwloc-1.10.1 CC=/project/eschnett/shelob/gcc-4.9.2/bin/gcc CXX=/project/eschnett/shelob/gcc-4.9.2/bin/g++ CFLAGS=-m128bit-long-double -march=native -Wall -g -O3 CXXFLAGS=-m128bit-long-double -march=native -Wall -g -O3
## --------- ##
## Platform. ##
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libevent configure 2.0.21-stable, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ /project/eschnett/shelob/src/cc/FunHPC.cxx/external/openmpi-1.8.4/opal/mca/event/libevent2021/libevent/configure --disable-dns --disable-http --disable-rpc --disable-openssl --enable-thread-support --disable-evport --prefix=/project/eschnett/shelob/src/cc/FunHPC.cxx/openmpi-1.8.4 --with-hwloc=/project/eschnett/shelob/src/cc/FunHPC.cxx/hwloc-1.10.1 CC=/project/eschnett/shelob/gcc-4.9.2/bin/gcc CXX=/project/eschnett/shelob/gcc-4.9.2/bin/g++ CFLAGS=-m128bit-long-double -march=native -Wall -g -O3 CXXFLAGS=-m128bit-long-double -march=native -Wall -g -O3 --cache-file=/dev/null --srcdir=/project/eschnett/shelob/src/cc/FunHPC.cxx/external/openmpi-1.8.4/opal/mca/event/libevent2021/libevent --disable-option-checking
## --------- ##
## Platform. ##
-- The CXX compiler identification is Clang 3.6.0
-- The C compiler identification is Clang 3.6.0
-- Check for working CXX compiler: /home/eschnett/software/llvm-3.6.0/bin/wrap-clang++
-- Check for working CXX compiler: /home/eschnett/software/llvm-3.6.0/bin/wrap-clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /home/eschnett/software/llvm-3.6.0/bin/wrap-clang
-- Check for working C compiler: /home/eschnett/software/llvm-3.6.0/bin/wrap-clang -- works
@eschnett
eschnett / wavetoy.cc
Created July 4, 2015 23:22
wavetoy.cc
#include "dgops.hh"
#include <cctk.h>
#include <cctk_Arguments.h>
#include <cctk_Parameters.h>
#include <cassert>
namespace DGOps {
#! /bin/sh
# Generated by configure.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.
debug=false
ac_cs_recheck=false
ac_cs_silent=false