https://hgpu.org/?p=6947
A Template Metaprogramming Approach to Support Parallel Programs for Multicores