♦️CUDA安装教程及Pytorch GPU版本安装教程
2023-11-1
| 2023-11-6
0  |  阅读时长 0 分钟
type
status
password
date
slug
summary
category
URL
tags
icon

查看电脑GPU支持的CUDA版本

  1. 检查电脑的NVIDIA版本,在cmd中输入nvidia-smi(注意nvidia-smi中的是驱动对应的cuda最高版本,只要此版本大于等于你安装的cuda即可)
    1. notion image
  1. 选择11.6的CUDA版本,然后根据自己电脑情况选择配置,一般都是Windows11 +x86_64+CUDA版本号+exe[local],最后点击下载即可
    1. notion image
      notion image
  1. 下载完成后,以管理员身份运行即可,选择安装地址,等待安装。检查系统兼容性,然后点击“同意并继续”
  1. 检查系统变量中是否添加刚才我们的安装路径,若没有则需要自己添加
    1. notion image
  1. 查看CUDA是否安装成功,执行下面的第一个命令,第二个命令查看环境变量配置。必须使用cmd命令行
    1. notion image

下载cuDNN,配置

  1. 进入下载页面,选择cuDNN版本
    1. notion image
  1. 下载后解压,将这三个文件夹复制到CUDA的安装目录中
    1. notion image
  1. 添加下面的四个路径到环境变量中
    1. notion image
  1. 验证是否安装成功 ,在命令行中进入下面的目录,分别执行图中的exe文件
    1. notion image
      notion image
      notion image

      Pytorch GPU版本安装

      方法1使用命令直接安装

      方法2:到官网下载文件到本地再安装

      下载链接,使用pip install xxx安装,注意CUDA版本和python版本要对应,这里不演示。
      notion image

      tensorflow GPU版本安装

      • 对于 1.15 及更早版本,CPU 和 GPU 软件包是分开的:

      安装方式一

      安装方式二

       
       
  • 工具
  • fine3399: rk3399线刷使用nps搭建内网穿透
    Loading...
    目录