replace deprecated CUDA functions with the renamed (correct) ones to ensure compatibility with CUDA 10