解决Nvidia安装程序失败常见问题

1.安装这个出现:

“CUDA Setup Package:error”

“Error during execution".\\setup.exe".
操作成功完成。”

.

解决策略

①下载一个软件

参考网址:https://blog.csdn.net/Zz0615/article/details/88761910

百度了一下,原因可能是我的电脑有VS,影响了cuda的安装,于是打算把上次安装失败的所有cuda的东西都删了,于是我找了所有有关的文件和注册表,都删完了之后,发现还是不可以,这时候百度到了DDU,它可以帮助我们删除显卡驱动,于是就去下载了(网址:https://www.wagnardsoft.com/forums/viewtopic.php?f=5&t=1490 )
在这里插入图片描述
运行成功后重启电脑,然后重新安装cuda,这时候就要比较小心,点击自定义,转到另一个可以自定义功能的界面,把vs相关的那一项的勾选去掉,然后就ok了,最后显示安装成功!

②启动下面三个服务  参考网址:https://blog.csdn.net/aic1999/article/details/79894797

右键”此电脑“,点击”管理“。

右键启动/左上角启动服务:Device Install Service、Device Setup Manager、Windows Installer然后再开始安装。

前5步就能避开某些坑,完成了这5步其实就能再次尝试一下安装cuda了。

但是作为一个从昨晚搞到今天的差点崩溃人深知事情没那么简单....


6、还是安装失败?很好!这是我结合网友的解决方法——

再次打开设备管理器!右键卸载驱动!注意是卸载我们目标gpu型号的驱动,不要把核心显卡的驱动卸载了,会黑屏的........

7、把cuda安装的东西彻彻底底删个干净,去查看C:\目录下有没有驱动文件夹NVIDIA,

    去看C:\Program Files目录下有没有文件夹NVIDIA Corporation、NVIDIA GPU Computing   Toolkit

     有的话!删!但是cuda安装包留着。

8、重新安装gpu驱动!(我是通过驱动精灵自动检索安装的) 

9、重新执行第四步、第五步。

10、再次尝试下载。

最后测试:如果真的安装好了,就可以通过nvidia命令查看当前gpu设备了

③删除环境cuda环境变量

二、出现第二种情况

参考网址:

https://yongqiang.blog.csdn.net/article/details/105919991?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control

 

NVIDIA 安装程序失败
在这里插入图片描述

在这里插入图片描述

6. 自定义安装选项 - 取消勾选 Visual Studio Integration
在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

7. CUDA Samples
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v10.1
在这里插入图片描述

4. nvcc -V

<span style="color:#000000"><code>Microsoft Windows [版本 10.0.17763.1158]
(c) 2018 Microsoft Corporation。保留所有权利。

C:\Users\cheng>nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Fri_Feb__8_19:08:26_Pacific_Standard_Time_2019
Cuda compilation tools, release 10.1, V10.1.105

C:\Users\cheng>
</code></span>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

在这里插入图片描述

5. C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1

在这里插入图片描述

6. 环境变量 -> 系统变量

CUDA_PATH
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1

CUDA_PATH_V10_1
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1

NVCUDASAMPLES_ROOT
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v10.1

NVCUDASAMPLES10_1_ROOT
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v10.1

在这里插入图片描述

7. demo_suite

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\demo_suite
在这里插入图片描述

Shift + 鼠标右键 -> 在此处打开 Powershell 窗口
在这里插入图片描述

<span style="color:#000000"><code>PS C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\demo_suite> dir


    目录: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\demo_suite


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         2020/5/4     21:16                nbody_data_files
d-----         2020/5/4     21:16                oceanFFT_data_files
d-----         2020/5/4     21:16                randomFog_data_files
-a----         2019/2/9     13:57         250880 bandwidthTest.exe
-a----         2019/2/9     13:57         279552 busGrind.exe
-a----         2019/2/9     13:57         200192 deviceQuery.exe
-a----         2019/2/9     13:57         311296 freeglut.dll
-a----         2019/2/9     13:57         229376 glew64.dll
-a----         2019/2/9     13:57        1265664 nbody.exe
-a----         2019/2/9     13:57         552448 oceanFFT.exe
-a----         2019/2/9     13:57         409088 randomFog.exe
-a----         2019/2/9     13:57         224256 vectorAdd.exe


PS C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\demo_suite>
</code></span>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23

.\bandwidthTest.exe

<span style="color:#000000"><code>PS C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\demo_suite> .\bandwidthTest.exe
[CUDA Bandwidth Test] - Starting...
Running on...

 Device 0: GeForce GTX 1060 with Max-Q Design
 Quick Mode

 Host to Device Bandwidth, 1 Device(s)
 PINNED Memory Transfers
   Transfer Size (Bytes)        Bandwidth(MB/s)
   33554432                     6343.7

 Device to Host Bandwidth, 1 Device(s)
 PINNED Memory Transfers
   Transfer Size (Bytes)        Bandwidth(MB/s)
   33554432                     6409.8

 Device to Device Bandwidth, 1 Device(s)
 PINNED Memory Transfers
   Transfer Size (Bytes)        Bandwidth(MB/s)
   33554432                     146651.3

Result = PASS

NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.
PS C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\demo_suite>
</code></span>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26

.\deviceQuery.exe

<span style="color:#000000"><code>PS C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\demo_suite> .\deviceQuery.exe
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\demo_suite\deviceQuery.exe Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce GTX 1060 with Max-Q Design"
  CUDA Driver Version / Runtime Version          10.1 / 10.1
  CUDA Capability Major/Minor version number:    6.1
  Total amount of global memory:                 6144 MBytes (6442450944 bytes)
  (10) Multiprocessors, (128) CUDA Cores/MP:     1280 CUDA Cores
  GPU Max Clock rate:                            1342 MHz (1.34 GHz)
  Memory Clock rate:                             4004 Mhz
  Memory Bus Width:                              192-bit
  L2 Cache Size:                                 1572864 bytes
  Maximum Texture Dimension Size (x,y,z)         1D=(131072), 2D=(131072, 65536), 3D=(16384, 16384, 16384)
  Maximum Layered 1D Texture Size, (num) layers  1D=(32768), 2048 layers
  Maximum Layered 2D Texture Size, (num) layers  2D=(32768, 32768), 2048 layers
  Total amount of constant memory:               zu bytes
  Total amount of shared memory per block:       zu bytes
  Total number of registers available per block: 65536
  Warp size:                                     32
  Maximum number of threads per multiprocessor:  2048
  Maximum number of threads per block:           1024
  Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
  Max dimension size of a grid size    (x,y,z): (2147483647, 65535, 65535)
  Maximum memory pitch:                          zu bytes
  Texture alignment:                             zu bytes
  Concurrent copy and kernel execution:          Yes with 5 copy engine(s)
  Run time limit on kernels:                     Yes
  Integrated GPU sharing Host Memory:            No
  Support host page-locked memory mapping:       Yes
  Alignment requirement for Surfaces:            Yes
  Device has ECC support:                        Disabled
  CUDA Device Driver Mode (TCC or WDDM):         WDDM (Windows Display Driver Model)
  Device supports Unified Addressing (UVA):      Yes
  Device supports Compute Preemption:            Yes
  Supports Cooperative Kernel Launch:            No
  Supports MultiDevice Co-op Kernel Launch:      No
  Device PCI Domain ID / Bus ID / location ID:   0 / 1 / 0
  Compute Mode:
     < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.1, CUDA Runtime Version = 10.1, NumDevs = 1, Device0 = GeForce GTX 1060 with Max-Q Design
Result = PASS
PS C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\demo_suite>
</code></span>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47

References

CUDA Toolkit
https://developer.nvidia.com/cuda-toolkit

GPU-Accelerated Libraries for AI and HPC
https://developer.nvidia.com/gpu-accelerated-libraries

NVIDIA Developer Tools Overview
https://developer.nvidia.com/tools-overview

CUDA Toolkit Documentation
https://docs.nvidia.com/cuda/

CUDA Installation Guide for Microsoft Windows
https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html

CUDA Quick Start Guide
https://docs.nvidia.com/cuda/cuda-quick-start-guide/index.html

CUDA Code Samples
https://developer.nvidia.com/cuda-code-samples

An Even Easier Introduction to CUDA
https://devblogs.nvidia.com/even-easier-introduction-cuda/

NVIDIA Developer Blog
https://devblogs.nvidia.com/

Accelerated Computing - Training
https://developer.nvidia.com/accelerated-computing-training

NVIDIA Developer Forums
https://forums.developer.nvidia.com/

Display Driver Uninstaller (DDU)
https://www.wagnardsoft.com/

  • 3
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
你好,对于NVIDIA显卡驱动安装失败的问题,我可以提供一些常见的解决方法。请按照以下步骤尝试解决问题: 1. 完全卸载旧的驱动程序:首先,通过控制面板或者设备管理器卸载旧的NVIDIA驱动程序。确保选择“完全卸载”选项,以删除所有相关文件和设置。 2. 下载最新的驱动程序:访问NVIDIA官方网站,下载适用于你的显卡型号和操作系统的最新驱动程序。确保选择正确的版本,并保存到你的计算机上。 3. 安全模式安装驱动程序:进入安全模式,这样可以确保没有其他程序或驱动干扰安装过程。在安全模式下运行已下载的驱动程序安装文件,并按照提示进行安装。 4. 禁用安全软件:一些安全软件可能会干扰显卡驱动程序的安装过程。暂时禁用防火墙、杀毒软件和其他安全软件,然后重新运行驱动程序安装文件。 5. 清理注册表项:使用第三方注册表清理工具(如CCleaner)来清理残留的注册表项。在运行注册表清理工具之前,请备份你的注册表以防万一。 6. 更新操作系统:确保你的操作系统是最新的版本,以便与最新的显卡驱动程序兼容。 7. 尝试其他版本的驱动程序:如果上述方法都没有解决问题,可以尝试安装其他版本的驱动程序,可能有时候某个特定版本的驱动程序与你的硬件和操作系统更兼容。 如果上述步骤仍然无法解决问题,建议向NVIDIA技术支持或相关论坛寻求帮助。他们可以为你提供更具体的解决方案。祝你成功安装显卡驱动!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值