Skip to content

Instantly share code, notes, and snippets.

View ax3l's full-sized avatar

Axel Huebl ax3l

View GitHub Profile
@ax3l
ax3l / adiosCompile.sh
Last active December 7, 2016 14:42
adios_quickcompile
export ZLIB_ROOT=/usr
wget http://users.nccs.gov/~pnorbert/adios-1.10.0.tar.gz
tar -xvzf adios-1.10.0.tar.gz
cd adios-1.10.0
LDFLAGS="-fPIC -pthread" CFLAGS="-fPIC -g -O2" CXXFLAGS="-fPIC -g -O2" \
./configure --prefix=$HOME/lib/adios-1.10.0 \
--with-zlib=$ZLIB_ROOT --with-mpi=$MPI_ROOT \
--enable-static --enable-shared \
--without-dataspaces --disable-fortran
@ax3l
ax3l / DEAL2016_12_05.md
Last active December 7, 2016 15:22
Ad-Hoc Translation of OpenAccess Publ DEAL
@ax3l
ax3l / yt_plot_problem.ipynb
Created January 5, 2017 13:51
Plot Single Particle
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ax3l
ax3l / cppParamSameInt.cpp
Created February 15, 2017 19:21
Same Int Param
#include <iostream>
#include <type_traits>
template<
int A,
int B,
bool isSame = ( A == B ),
typename TSfinae = void>
struct S;
@ax3l
ax3l / mpirun_ubuntu1604_desktop.tpl
Created May 11, 2017 13:51
An mpirun template for PIConGPU and TBG on 1 GPU Ubuntu 16.04
#!/usr/bin/env bash
# Copyright 2017 Axel Huebl
#
# This file is part of PIConGPU 0.2.4
#
# PIConGPU is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@ax3l
ax3l / Dockerfile
Created June 24, 2017 10:47
Z-Checker Dockerfile
FROM ubuntu:16.04
# general environment for docker
ENV HOME /home
ENV DEBIAN_FRONTEND noninteractive
# spack environment
ENV PATH "$HOME/src/spack/bin:$PATH"
ENV LD_LIBRARY_PATH "/home/src/z-checker-install/Z-checker/zc-install/lib:$LD_LIBRARY_PATH"
@ax3l
ax3l / BoostLibs.md
Last active August 14, 2017 13:19
Boost Compile Time Libs and Names

Boost 1.62

List of all libs here. Non header-only libraries (via ./bootstrap.sh --show-libraries):

The Boost libraries requiring separate building and installation are:
    - atomic
    - chrono
    - container
 - context
@ax3l
ax3l / PIConGPU_040-dev_osx.sh
Last active March 5, 2018 03:55
PIConGPU OSX Quick Start
#!/usr/bin/env bash
#
# Author: Axel Huebl
#
# last updated: 2018-03-05
#
# execute:
# curl https://gist.githubusercontent.com/ax3l/9e77c1b688136ea37b05ff00ea0e420f/raw/PIConGPU_040-dev_osx.sh | bash
PIC_BRANCH="dev"
@ax3l
ax3l / PIConGPU_040-dev_Octopus.sh
Last active March 5, 2018 07:01
Octopus (Osaka U): PIConGPU 0.4.0-dev Quick-Start
#!/usr/bin/env bash
#
# Author: Axel Huebl
#
# last updated: 2018-03-05
#
# execute:
# curl https://gist.githubusercontent.com/ax3l/080675215fdaf0c8bf0ad054ee8f7bc0/raw/PIConGPU_040-dev_Octopus.sh | bash
PIC_BRANCH="dev"
@ax3l
ax3l / cuda.h
Created April 26, 2018 11:26 — forked from eliben/cuda.h
Minimal CUDA support header for parsing with Clang
/* Minimal declarations for CUDA support. Testing purposes only. */
#define __constant__ __attribute__((constant))
#define __device__ __attribute__((device))
#define __global__ extern "C" __attribute__((global))
#define __host__ __attribute__((host))
#define __shared__ __attribute__((shared))
#define __launch_bounds__(...) __attribute__((launch_bounds(__VA_ARGS__)))
#define __forceinline__ __attribute__((always_inline))