Skip to content

Instantly share code, notes, and snippets.

Avatar

Erik Schnetter eschnett

View GitHub Profile
View Dockerfile
# Build on the regular Caliban image
FROM gcr.io/blueshift-playground/blueshift:cpu
# Install system packages
# Note: Boost on Ubuntu requires OpenMPI
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get --yes --no-install-recommends install \
build-essential \
ca-certificates \
View config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ /var/folders/gl/zvl8d6415vsbkd50nnll95k40000gs/T/eschnett/spack-stage/spack-stage-gcc-10.1.0-7o2dyx4fldafohhwmlqnmt6yaupnghsl/spack-src/configure --prefix=/Users/eschnett/src/spack-develop/opt/spack/darwin-catalina-x86_64/clang-11.0.3-apple/gcc-10.1.0-7o2dyx4fldafohhwmlqnmt6yaupnghsl --with-pkgversion=Spack GCC --with-bugurl=https://github.com/spack/spack/issues --disable-multilib --enable-languages=c,c++,fortran --disable-nls --with-mpfr=/Users/eschnett/src/spack-develop/opt/spack/darwin-catalina-x86_64/clang-11.0.3-apple/mpfr-4.0.2-66qgcss2bdiyljg4ow4lhogowuypzrol --with-gmp=/Users/eschnett/src/spack-develop/opt/spack/darwin-catalina-x86_64/clang-11.0.3-apple/gmp-6.1.2-bfwgwkc4tat3gjfxvj4pxfjqh354t2ue --with-system-zlib --with-zstd=/Users/eschnett/src/spack-develop/opt/spack/darw
View gist:4ffc00f67d62dba8aff0dc944bd137b5
```Haskell
upload :: Async FilePath -> Async (Either () ())
upload files =
asyncly
$ maxThreads 10
$ S.concatMap S.fromList
|$ serially
$ S.mapM finalizeUploads
|$ asyncly
$ S.chunksOf 1000 FL.toList
View gist:f64d4683ebcdf12552d24b961fb05653
In [1]:
pwd()
Out[1]:
'/Users/eschnett/Camrex'
In [2]:
import yt
In [3]:
View Poisson.hs
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-type-defaults #-}
module Poisson (main) where
import Prelude hiding (id, (.))
import qualified Prelude
import Data.Kind
import Math.Polynomial hiding (x)
@eschnett
eschnett / headers-10.14.4-fix.patch
Created Mar 28, 2019
Make gcc 8.3.0 build on MacOS 10.14.4
View headers-10.14.4-fix.patch
diff -ruN gcc-8.3.0-old/fixincludes/fixincl.x gcc-8.3.0/fixincludes/fixincl.x
--- gcc-8.3.0-old/fixincludes/fixincl.x 2018-02-22 11:12:26.000000000 -0500
+++ gcc-8.3.0/fixincludes/fixincl.x 2019-03-28 15:59:33.000000000 -0400
@@ -2,11 +2,11 @@
*
* DO NOT EDIT THIS FILE (fixincl.x)
*
- * It has been AutoGen-ed February 22, 2018 at 03:46:51 PM by AutoGen 5.18
+ * It has been AutoGen-ed March 28, 2019 at 03:59:33 PM by AutoGen 5.18.16
* From the definitions inclhack.def
@eschnett
eschnett / MAKE.OUT
Created Nov 16, 2018
amuse-11.2 on MacOS
View MAKE.OUT
/Users/eschnett/anaconda3/bin/python setup.py build
running build
running build_py
copying src/amuse/config.py -> build/lib/amuse
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running configure_codes
Already configured, not running configure
@eschnett
eschnett / CONFIGURE.OUT
Created Nov 16, 2018
amuse-11.2 on MacOS
View CONFIGURE.OUT
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
View CONFIGURE.OUT
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
View CONFIGURE.OUT
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
You can’t perform that action at this time.