Updating CUDA code generator with fixes to get shsgc running under CUDA