by running compiled binary directly using bash:
1.------
$ ./Debug/b
./b Starting…
Set-up, based upon target device GMEM size…
getTargetDeviceGlobalMemSize
cudaGetDeviceCount
CUDA error at …/src/FDTD3dGPU.cu:29 code=35(cudaErrorInsufficientDriver) “cudaGetDeviceCount(&deviceCount)”
2.-------
sudo ./Debug/b
Password:
./b Starting…
Set-up, based upon target device GMEM size…
getTargetDeviceGlobalMemSize
cudaGetDeviceCount
CUDA error at …/src/FDTD3dGPU.cu:29 code=35(cudaErrorInsufficientDriver) “cudaGetDeviceCount(&deviceCount)”
cudaGetDeviceCount returned 35
→ CUDA driver version is insufficient for CUDA runtime version
@veraj
++++++++++++++++++++++
Are you install cuda driver and the toolkit from the same package ? yes
++++++++++++++++++++++
Have you rebooted after the installation ? yes
++++++++++++++++++++++
Have you tried other driver ? yes
CUDA Mac Driver
Latest Version: CUDA 9.0.222 driver for MAC
Release Date: 11/02/2017
Previous Releases:
CUDA 9.0.214 driver for MAC
Release Date: 10/18/2017
CUDA 9.0.197 driver for MAC
Release Date: 09/27/2017
++++++++++++++++++++++
execution using bash:
Failed to allocate device vector A (error code CUDA driver version is insufficient for CUDA runtime version)!
execution using nsight:
Error starting process
Cannot create pty
Cannot create pty
Cannot create pty
+++++++++++++++++++++
Can you try on other SDK like 0_Simple/vectorAdd, 1_Utilities/deviceQuery, 0_Simple/matrixMul first to check if they can run successfully ?
tried , failed
1.Now cuda error is fixed → CUDA driver version is insufficient for CUDA runtime version (return code 35 ) by installing CUDA 387.99 driver for MAC ,Release Date: 12/08/2017
2.But Nsight CDT plugin error still exists : “Cannot create pty”, Nsight CDT plugin has no bug fix for this problem for such a long time.
Just don’t understand Why Nvidia provided us with malfunctioned “PRODUCT”!!!
Now you can run cuda sample like 0_Simple/vectorAdd successfully on your Mac without nsight, right ?
Then please launch nsight in a clean env, (you can do this by cleaning the workspace created before)
and click Run->Run Configurations->Right click “C/C++ Application” and choose “new”->Select the built “vectorAdd” as the application->Run
I finally found a fix! The issue arises from two problems: there is a known bug in the Eclipse version that Nsight uses, and a newer and unsupported version of Xcode is installed.
Problem 1 fix:
To fix the issue, we will be installing a newer version of Eclipse, and then installing the Nsight Plugin on top of it.