Adding debugging to cuda_util.cu