CUDA code splitted