Make some of CUDA work (from Siu's work)