Clean up CUDA kernel generation.