no CUDA-capable device is detected

I installed CUDA 9.1 as the instructions here http://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html for mac. But I’m getting this when I run deviceQuery. I switched to the Nvidia graphics too. I tried all the previous posts regarding this issue. But no luck. Can anyone to help me?

cudaGetDeviceCount returned 38
-> no CUDA-capable device is detected
Result = FAIL

nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Tue_Dec_19_21:36:29_CST_2017
Cuda compilation tools, release 9.1, V9.1.128

kextstat | grep -i cuda

106    0 0xffffff7f83ca8000 0x2000     0x2000     com.nvidia.CUDA (1.1.0) 4329B052-6C8A-3900-8E83-744487AEDEF1 <4 1>

========
macOS: High Sierra 10.13.3
CUDA: 9.1
CUDNN: 7.1
GPU: NVIDIA GeForce GT 650M 1 GB , Intel HD Graphics 4000 1536 MB
CUDA Driver Version: 387.128
GPU Driver Version: 355.11.10.10.20.111

Fixed after reinstall CUDA Driver and CUDA Toolkit. [ Followed this https://devtalk.nvidia.com/default/topic/1025945/cuda-setup-and-installation/mac-cuda-driver-fully-compatible-with-macos-high-sierra-10-13-error-quot-update-required-quot-solved-/post/5217880/#5217880 ]