https://hgpu.org/?p=6819
Building Source-to-Source Compilers for Heterogeneous Targets