Skip to content

Instantly share code, notes, and snippets.

View ax3l's full-sized avatar
🍼
parental leave

Axel Huebl ax3l

🍼
parental leave
View GitHub Profile
@ax3l
ax3l / fodo_channel.png
Last active September 25, 2024 02:20
FODO Channel
fodo_channel.png
@ax3l
ax3l / dashboard.png
Last active August 8, 2024 02:07
ImpactX Dashboard Screenshot
dashboard.png
@ax3l
ax3l / README.md
Last active March 28, 2024 00:29
Triplet Optimization
@ax3l
ax3l / compound_complex_fortran2003.f90
Created February 4, 2021 00:25
HDF5: Complex Types (Fortran 2003)
! This is the F2003 version of the h5_compound.c example source code.
! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
! Copyright by the Board of Trustees of the University of Illinois. *
! All rights reserved. *
! *
! This file is part of HDF5. The full HDF5 copyright notice, including *
! terms governing use, modification, and redistribution, is contained in *
! the files COPYING and Copyright.html. COPYING can be found at the root *
! of the source code distribution tree; Copyright.html can be found at the *
! root level of an installed copy of the electronic HDF5 document set and *
@ax3l
ax3l / bashrc
Last active June 30, 2020 04:25
multiple_pkg_managers
# snippet for file: $HOME/.bashrc
#
# License: CC0
#
# register a bash function that calls the script above
activate-env () {
. $HOME/bin/impl-activate-env $@
}
@ax3l
ax3l / CMakeLists.txt
Last active May 14, 2021 16:22
openPMD-api usage example: CMake
cmake_minimum_required(VERSION 3.11)
project(openPMD_test)
add_executable(mytest main.cpp)
target_compile_features(mytest PRIVATE cxx_std_14)
find_package(openPMD REQUIRED CONFIG)
target_link_libraries(mytest PRIVATE openPMD::openPMD)
@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))
@ax3l
ax3l / awesome_standalone.md
Last active February 4, 2019 13:57
Awesome, Stand-Alone C++11 Projects

Awesome, Stand-Alone C++11 Projects

Projects with wide adoption, broad compiler support, proper testing and great documentation.

Most of them are header-only (which is not necessarily a good thing for all tasks!), some of them even provide an amalgated (single-file) header.

CLI

(replace Boost.ProgramOptions)

@ax3l
ax3l / xeus_cling_openmp.ipynb
Last active May 15, 2018 11:28
Xeus-Cling with OpenMP
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ax3l
ax3l / symbols_cpp.md
Last active April 23, 2024 08:57
Symbol Visibility 101 by Boris Staletic @bstaletic

Visible Symbols in C++ Projects

Intro

This is a spontaneous and verbatime log of a conversion with Boris Staletic @bstaletic from March, 24th 2018 on the pybind11 gitter. Thank you so much, Boris!

To confuse future readers, we decided to write down the discussion and I added typos and unnecessarily long sentences.

The issue came up with linking a CMake (library) target into a pybind11 module (in openPMD-api).