https://hgpu.org/?p=6660
Porting and optimizing MAGFLOW on CUDA