I see the following error when trying to run the CUDA samples on my mac -
$ ./matrixMul
[Matrix Multiply Using CUDA] - Starting...
CUDA error at ../../common/inc/helper_cuda.h:1160 code=35(cudaErrorInsufficientDriver) "cudaGetDeviceCount(&device_count)"
Here is the output for the kextstat | grep NVDA and kexstat | grep -i cuda commands
$ kextstat | grep NVDA
135 2 0xffffff7f811e4000 0x2e6000 0x2e6000 com.apple.nvidia.driver.NVDAResman (10.2.8) 39AC3832-2295-3B7B-85F6-F69D66D46EC7 <106 101 100 12 7 5 4 3 1>
136 0 0xffffff7f83308000 0x1b3000 0x1b3000 com.apple.nvidia.driver.NVDAGK100Hal (10.2.8) 7064CB37-CB6D-34F7-974D-DD12944BD354 <135 12 4 3>
$ kextstat | grep -i cuda
154 0 0xffffff7f81074000 0x2000 0x2000 com.nvidia.CUDA (1.1.0) 4329B052-6C8A-3900-8E83-744487AEDEF1 <4 1>
Here is the deviceQuery run which is part of the verification step when installing CUDA and the samples
$ ./deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
Result = FAIL
$ uname -r
17.3.0
Here is the cuda compiler driver version info
$ ./nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:08:57_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85
Also, attached the screenshot of the CUDA System preference.
Please can someone point me on how to resolve this.