I have installed latest cudatoolkit and driver today however when I try to build and run matrixMul program using visual studio 2019, I get the following error:
[Matrix Multiply Using CUDA] - Starting… CUDA error at C:\ProgramData\NVIDIA Corporation\CUDA Samples\v10.2\common\inc\helper_cuda.h:775 code=35(cudaErrorInsufficientDriver) “cudaGetDeviceCou nt(&device_count)” C:\ProgramData\NVIDIA Corporation\CUDA Samples\v10.2\0_Simple\matrixMul…/…/bin/win64/Debug/matrixMul.exe (process 7140) exited with code 1.
More information about the setup: 1: per Nvidia control panel driver version is 391.35
2: GPU GeForce GT 420M which is cuda 2.1 as per https://developer.nvidia.com/cuda-gpus#compute
3: Visual Studio 2019
4: The program i am trying to build/run is C:\ProgramData\NVIDIA Corporation\CUDA Samples\v10.2\0_Simple\matrixMul\matrixMul_vs2019.sln
5: with a bit of debugging it appears that program is failing at line checkCudaErrors(cudaGetDeviceCount(&device_count)); inside cuda_runtime_api.h @ line 1288. The function is supposed to returns the number of devices with compute capability
greater or equal to 2.0 Apparently it sounds like GeForce GT420M is Cuda 2.1 capable but current runtime is not recognizing it and failing. Could someone please help me to resolve this error?