# deviceQuery fail after CUDA 10.1 installation

**URL:** <https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647>\
**Category:** CUDA Programming and Performance\
**Created:** [December 5, 2019, 7:53pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647 "2019-12-05T19:53:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![chengchen330](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chengchen330](https://forums.developer.nvidia.com/u/chengchen330)\
**Post date:** [December 5, 2019, 7:53pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/1 "2019-12-05T19:53:34Z")

</div>

Hi all,

I have been trying to install CUDA 10.1 on my Windows 10 Dell Workstation which has a Geforce RTX 2080 card. I had the lastest version of driver installed. The installation of CUDA went smoothly with no problem, but when I ran deviceQuery.exe, it could not detect the graphic card. Please see the messages from the Windows Command Prompt:

%%%%%%

C: \ProgramData\NVIDA Corporation\CUDA Samples\v10.1\bin\win64\Release\>deviceQuery  
deviceQuery Starting…  
CUDA Device Query (Runtime API) version (CUDART static linking)  
C: \ProgramData\NVIDA Corporation\CUDA Samples\v10.1\bin\win64\Release\>

%%%%%%

Does anyone has experience with this problem and could give some advices?

Many thanks!

---

<div class="post-metadata">

**Author:** ![chengchen330](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chengchen330](https://forums.developer.nvidia.com/u/chengchen330)\
**Post date:** [December 11, 2019, 10:33am UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/2 "2019-12-11T10:33:46Z")

</div>

I should add that when I ran nvidia-smi.exe, it could detect the driver version 441.28, and CUDA version 10.2, though what I installed was really 10.1!

---

<div class="post-metadata">

**Author:** ![mnicely](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mnicely/32/14047_2.png) [@mnicely](https://forums.developer.nvidia.com/u/mnicely)\
**Post date:** [December 11, 2019, 2:23pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/3 "2019-12-11T14:23:17Z")

</div>

I’m running Windows 10 w/ Quadro M1200 w/ R441.22.  
With CUDA 10.1

```auto
...
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.2, CUDA Runtime Version = 10.1, NumDevs = 1
Result = PASS

```

With CUDA 10.2

```auto
...
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.2, CUDA Runtime Version = 10.2, NumDevs = 1
Result = PASS

```

Notice that _nvidia-smi_ displays the CUDA **Driver** Version. It’s telling you that your CUDA Driver supports CUDA Runtime up to 10.2.

```auto
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 441.22 Driver Version: 441.22 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro M1200 WDDM | 00000000:01:00.0 Off | N/A |
| N/A 38C P8 N/A / N/A | 40MiB / 4096MiB | 0% Default |
+-------------------------------+----------------------+----------------------+

```

---

<div class="post-metadata">

**Author:** ![chengchen330](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chengchen330](https://forums.developer.nvidia.com/u/chengchen330)\
**Post date:** [December 11, 2019, 2:28pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/4 "2019-12-11T14:28:41Z")

</div>

Thanks for the message! It’s good to know that Nvidia-smi displays the the version it support. But do you have any idea that why when I ran deviceQuery, CUDA could not detect my graphic card please?

---

<div class="post-metadata">

**Author:** ![mnicely](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mnicely/32/14047_2.png) [@mnicely](https://forums.developer.nvidia.com/u/mnicely)\
**Post date:** [December 11, 2019, 2:51pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/5 "2019-12-11T14:51:23Z")

</div>

In my experience, if _deviceQuery_ fails, _nvidia-smi_ would also fail. That’s not what you’re experiencing. I suggest removing and reinstalling CUDA and drivers.

---

<div class="post-metadata">

**Author:** ![chengchen330](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chengchen330](https://forums.developer.nvidia.com/u/chengchen330)\
**Post date:** [December 11, 2019, 3:12pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/6 "2019-12-11T15:12:26Z")

</div>

Thanks! I’ve tried to install CUDA 9.0, but has the same problem. Do you think it worth to try older version of drivers?

---

<div class="post-metadata">

**Author:** ![mnicely](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mnicely/32/14047_2.png) [@mnicely](https://forums.developer.nvidia.com/u/mnicely)\
**Post date:** [December 11, 2019, 3:18pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/7 "2019-12-11T15:18:58Z")

</div>

Yes. With issues such as this one, confirm the issue occurs with the driver installed with the CUDA toolkit. Remove your drivers and install 10.2 and let me know if you still have issues.

---

<div class="post-metadata">

**Author:** ![chengchen330](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chengchen330](https://forums.developer.nvidia.com/u/chengchen330)\
**Post date:** [December 11, 2019, 3:27pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/8 "2019-12-11T15:27:14Z")

</div>

Not sure I understand what you mean.I can’t install 10.2 because the whole purpose of setting up CUDA is for my Matlab to do GPU-based computation. And the latest version of Matlab 2019b only supports CUDA up to 10.1 ([GPU Computing Requirements - MATLAB & Simulink - MathWorks United Kingdom](https://uk.mathworks.com/help/parallel-computing/gpu-support-by-release.html;jsessionid=58d25dd27c24491fd534fb31922f)).

And I installed the graphic card driver using GeForceExperience which automatically detected the last version of driver.

---

<div class="post-metadata">

**Author:** ![mnicely](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mnicely/32/14047_2.png) [@mnicely](https://forums.developer.nvidia.com/u/mnicely)\
**Post date:** [December 11, 2019, 4:32pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/9 "2019-12-11T16:32:24Z")

</div>

I only suggested 10.2 because it’s the latest. Any version will do, as long you confirm the issue occurs with the driver in the CUDA toolkit.

As an example, 10.1 comes with R418.96. While the latest Windows driver is R441.66. Make sure _deviceQuery_ works with R418.96, then upgrade to R441.66 and retest.

I have confirmed _deviceQuery_ and _nvidia-smi_ work on my machine with R441.66 as well.

Also, I don’t think MathWorks is saying Matlab 2019b only works with 10.1. More likely, to use all the available features in 2019b you need 10.1 or newer.

---

<div class="post-metadata">

**Author:** ![chengchen330](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chengchen330](https://forums.developer.nvidia.com/u/chengchen330)\
**Post date:** [December 11, 2019, 6:15pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/10 "2019-12-11T18:15:56Z")

</div>

I just received the reply from Matlab Support, saying "MATLAB R2019b will only support CUDA Toolkit 10.1 or a previous version of the CUDA Toolkit. I recommend that that you install CUDA Toolkit 10.1  
" So, I have to install 10.1 or lower.

Since I have done uninstall-reinstall many time, can I confirm how to do a CLEAN Uninstallation of the graphic driver and CUDA? I did it through _Control Panel-Programs-Uninstall or Change a Program_. Is this the right way to uninstall? Do I have to shut down the power of computer and then restart to make sure the uninstall/installation works properly?

Many thanks for your help!

---

<div class="post-metadata">

**Author:** ![mnicely](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mnicely/32/14047_2.png) [@mnicely](https://forums.developer.nvidia.com/u/mnicely)\
**Post date:** [December 12, 2019, 3:03am UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/11 "2019-12-12T03:03:53Z")

</div>

I don’t use Windows often but the CUDA Toolkit documentation says to uninstall everything through the Windows Control Panel. I suggest you do the same thing for the Windows driver and Geforce stuff.

[https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html#uninstall-cuda-software](https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html#uninstall-cuda-software)

Reboot. Confirm no NVIDIA driver is installed. Reinstall CUDA. Rerun _deviceQuery_.

---

<div class="post-metadata">

**Author:** ![chengchen330](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chengchen330](https://forums.developer.nvidia.com/u/chengchen330)\
**Post date:** [December 12, 2019, 11:46am UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/12 "2019-12-12T11:46:25Z")

</div>

I did uninstall all components of CUDA 10.1, including Gefore Experience and the Graphic Card driver 441.41. I also rebooted the computer. When I double check the program list in _Control Panel-Programs-Uninstall or Change a Program_, there is no Graphic Card Driver or CUDA. But, I found I could still open NVIDIA Control Panel, it showed I have a driver which is 441.41. And, I could still run nvidia-smi.exe which also detect the driver 441.41 and CUDA. Please see the screenshot I enclose. I feel there is something wrong here. It seems that GPU driver and CUDA could not be cleanly removed??? Or I didn’t use the right method???

 ![NIVIDA Control Panel_after Driver Remover.PNG](https://global.discourse-cdn.com/nvidia/original/3X/b/0/b05ca9100ca5fdcd5e3dd4078a123e28f69033c4.png)

 ![Nvidia_Smi_after Driver Remover.PNG](https://global.discourse-cdn.com/nvidia/original/3X/d/e/dec0f062ee8a5ffd33634ac9a7391560da8d56dc.png)

---

<div class="post-metadata">

**Author:** ![chengchen330](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chengchen330](https://forums.developer.nvidia.com/u/chengchen330)\
**Post date:** [December 13, 2019, 5:08pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/13 "2019-12-13T17:08:28Z")

</div>

Hi all, here are some updates:

1. I went to Device Manager to uninstall the driver 441.41. And I uninstall NIVIDA control Panel. Restart. This time I can confirm that driver 441.41 is successfully removed. And about 5mins after I restarted, Windows automatically installed for me the driver 432.00.

2. Now I started install CUDA 10.1, it’s cuda\_10.1.105\_418.96\_win10.exe from: [CUDA Toolkit 10.1 original Archive | NVIDIA Developer](https://developer.nvidia.com/cuda-10.1-download-archive-base?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal). I chose the Express install. During the installation, it showed that it wiped out my previous driver(432.00) to install the driver 418.96.

3. Immediately following the installation of CUDA 10.1, I restarted the computer. I checked Device Manager and Nvidia-smi, and found there are actually problem with the driver 418.96. Please see enclosed screenshots.

 ![After Cuda 10.1 Installation1.PNG](https://global.discourse-cdn.com/nvidia/original/3X/3/6/3631950ed67b3292109be4dce32fe0e435e185a9.png)

 ![After Cuda 10.1 Installation2.PNG](https://global.discourse-cdn.com/nvidia/original/3X/4/b/4be1029ada766747ec22e86a2cbde9d890ebc493.png)

 ![After Cuda 10.1 Installation3.PNG](https://global.discourse-cdn.com/nvidia/original/3X/3/c/3c2fd172d0cb1121adae5ac293f6b5abbf451df1.png)

 ![After Cuda 10.1 Installation4.PNG](https://global.discourse-cdn.com/nvidia/original/3X/e/b/ebbecba44eb2f81427619f19a9d1c09f0a139fa4.png)

---

<div class="post-metadata">

**Author:** ![chengchen330](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chengchen330](https://forums.developer.nvidia.com/u/chengchen330)\
**Post date:** [December 13, 2019, 5:10pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/14 "2019-12-13T17:10:55Z")

</div>

So, I can’t follow mnicely’s advice to check whether CUDA 10.1 works with driver 418.96 on my computer. Then I go to GeforceExperience which was just installed with CUDA 10.1, to my surprise, it said, there is no driver in the system! Please see the enclosed screenshot.

 ![After Cuda 10.1 Installation_GeForceExperience.PNG.jpg](https://global.discourse-cdn.com/nvidia/original/3X/9/6/96dd6bd2ec5c5e6413cf87ea7c10da75fd33cfba.jpeg)

---

<div class="post-metadata">

**Author:** ![chengchen330](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chengchen330](https://forums.developer.nvidia.com/u/chengchen330)\
**Post date:** [December 13, 2019, 5:17pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/15 "2019-12-13T17:17:45Z")

</div>

I then have to upgrade my driver using GeforceExperience to the lastest 441.66. Restart. And now there is no problem about the display driver in device manager as I saw after the installation of 418.96 with CUDA 10.1. Run nvidia-smi, I can see the driver 441.66. HOWEVER, after compile deviceQuery.sln using Visual Studio 2013, and ran deviceQuery, I still got the same error as I have when I started this thread…

%%%%%%

C: \ProgramData\NVIDA Corporation\CUDA Samples\v10.1\bin\win64\Release\>deviceQuery  
deviceQuery Starting…  
CUDA Device Query (Runtime API) version (CUDART static linking)  
C: \ProgramData\NVIDA Corporation\CUDA Samples\v10.1\bin\win64\Release\>

%%%%%%

And I opened Matlab2019b, ran gpuDevice, Matlab crashed again…

Anyone have any idea about what might cause the problem. And do you think there is something weird about my Windows 10 system and I should consider reshape my OS to Linux???

---

<div class="post-metadata">

**Author:** ![Robert\_Crovella](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/robert_crovella/32/14043_2.png) [@Robert\_Crovella](https://forums.developer.nvidia.com/u/Robert_Crovella)\
**Post date:** [December 13, 2019, 5:38pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/16 "2019-12-13T17:38:39Z")

</div>

I really don’t know what the problem is. However my first guess would be a corrupted CUDA install.

Do you have a requirement for a particular CUDA version? For example do you need to use CUDA 10.1?

---

<div class="post-metadata">

**Author:** ![chengchen330](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chengchen330](https://forums.developer.nvidia.com/u/chengchen330)\
**Post date:** [December 13, 2019, 6:11pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/17 "2019-12-13T18:11:00Z")

</div>

I have to install CUDA 10.1 or lower. But previously I tried CUDA 9.0, Matlab still crashes…

---

<div class="post-metadata">

**Author:** ![Robert\_Crovella](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/robert_crovella/32/14043_2.png) [@Robert\_Crovella](https://forums.developer.nvidia.com/u/Robert_Crovella)\
**Post date:** [December 13, 2019, 7:10pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/18 "2019-12-13T19:10:53Z")

</div>

Ok, can you try installing the latest CUDA 10.1 (Update 2) release

[https://developer.nvidia.com/cuda-10.1-download-archive-update2?target\_os=Windows&target\_arch=x86\_64&target\_version=10&target\_type=exelocal](https://developer.nvidia.com/cuda-10.1-download-archive-update2?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal)

When you run the installer, deselect the option to install the bundled driver. That should leave your 441.66 driver intact, which seems to be working correctly.

Make sure you have a properly installed version of Visual Studio installed before running the above steps.

[https://docs.nvidia.com/cuda/archive/10.1/cuda-installation-guide-microsoft-windows/index.html](https://docs.nvidia.com/cuda/archive/10.1/cuda-installation-guide-microsoft-windows/index.html)

(2013 should be fine, as long as it is not the community edition)

Then build the deviceQuery project in VS2013, and attempt to run it.

I assume you are working locally on this machine?

Let’s try and get the deviceQuery running before tackling matlab.

---

<div class="post-metadata">

**Author:** ![chengchen330](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@chengchen330](https://forums.developer.nvidia.com/u/chengchen330)\
**Post date:** [December 13, 2019, 9:52pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/19 "2019-12-13T21:52:58Z")

</div>

Hi Robert, thanks a lot for these suggestions! To clarify and make sure I really understand, there are some questions:

1. Do I need to first uninstall the current CUDA 10.1 with all its components and GeforceExperience, et al…, but leave the driver 441.66 intact, before installing the latest CUDA 10.1 (Update2)?

2. I don’t quite remember exactly which version of VS2013 I installed. It’s one with update 5. I will double check tomorrow to confirm. It’s likely I installed the first one on this page (Visual Studio Community 2013 with Update 5, [Azure DevOps Services | Sign In](https://my.visualstudio.com/Downloads?q=visual%20studio%202013&wt.mc_id=o~msft~vscom~older-downloads)). Do you mean I should actually install the 2nd one (Visual Studio 2013 Update 5)?

3. What do you mean by saying “working locally on this machine”?

---

<div class="post-metadata">

**Author:** ![Robert\_Crovella](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/robert_crovella/32/14043_2.png) [@Robert\_Crovella](https://forums.developer.nvidia.com/u/Robert_Crovella)\
**Post date:** [December 13, 2019, 11:12pm UTC](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647/20 "2019-12-13T23:12:32Z")

</div>

1. It’s not necessary to uninstall previous CUDA installs. It is necessary to make sure that when you build deviceQuery, you use the code and libraries that were installed with the latest install I suggested. That should be just a matter of navigating to the proper sample code project file.

2. If you’re using Visual Studio community, I would stop doing that and install a “full” version of Visual Studio. This may cost money depending on which version, etc. You’ll need to learn about Visual Studio and all it’s myriad variety yourself, I won’t be able to give you a tutorial on it. For example, I can’t access the link you provided. Microsoft puts login walls in front of it, I guess.

3. By locally, I mean you are sitting in front of the machine looking at the display that is directly cabled to the graphics card you are using. This is distinguished from connecting remotely to the box over RDP or some other remoting solution.

[Next page](https://forums.developer.nvidia.com/t/devicequery-fail-after-cuda-10-1-installation/108647.md?page=2)
