https://hgpu.org/?p=6319
Design and Implementation of a PTX Emulation Library