Cuda kernel changes