Muyun99's wiki Muyun99's wiki
首页
学术搬砖
学习笔记
生活杂谈
wiki搬运
资源收藏
关于
  • 分类
  • 标签
  • 归档
GitHub (opens new window)

Muyun99

努力成为一个善良的人
首页
学术搬砖
学习笔记
生活杂谈
wiki搬运
资源收藏
关于
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • 常见 bug 修复

  • 环境配置

    • GPU功率不一致
    • Anaconda下载及配置
    • 从零开始配PyTorch GPU环境
      • 从零开始配PyTorch GPU环境
    • ubuntu 18-04 搭建 go 语言开发环境
    • GPU速度太慢问题排查
    • Ubuntu系统安装
    • 服务器重装系统
    • Clash 配置
  • 常用库的常见用法

  • wiki搬运
  • 环境配置
Muyun99
2021-05-07

从零开始配PyTorch GPU环境

# 从零开始配PyTorch GPU环境

1、下载 Anaconda

  • https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

2、Conda 换源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
1
2
3
4
5
6
7
8
# 查看镜像源
conda config --show-sources
1
2
# 创建虚拟环境
conda create --name PyTorch python=3.7
# 进入虚拟环境
conda activate PyTorch
1
2
3
4

3、安装 对应版本的Visual Studio

  • 查看对应版本CUDA的文档:https://developer.nvidia.com/cuda-toolkit-archive

  • 以 11.0 为例:https://docs.nvidia.com/cuda/archive/11.0/cuda-installation-guide-microsoft-windows/index.html

  • image-20210423112800284

  • 下载 Visual Studio 2019 即可:https://visualstudio.microsoft.com/zh-hans/

  • 把使用C++的桌面开发勾选上,就能把cl.exe安装好。整个安装好了以后,把包含cl.exe的文件目录添加到PATH环境变量里,环境变量怎么添加这个就自行百度,具体的我添加的cl.exe的路径是:

    • C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\Hostx64\x64
      
      1

4、更新 GPU 驱动

  • 桌面右键点击 NVIDIA 控制面板 -> 点击控制面板的左下角系统信息 -> 组件中可以看到支持的 CUDA 版本
  • 步骤3

4、安装CUDA 以及 CUDNN

  • 下载 CUDA 以及 CUDNN

  • 工具及库 版本 下载链接
    Python 3.6.8 https://www.python.org/downloads/
    CUDA cuda_10.0.130_win10_network https://developer.nvidia.com/cuda-toolkit-archive
    cuDNN cuDNN v7.5.1 (April 22, 2019), for CUDA 10.0 https://developer.nvidia.com/rdp/cudnn-download
  • 安装

上次更新: 2021/08/08, 21:56:44
Anaconda下载及配置
ubuntu 18-04 搭建 go 语言开发环境

← Anaconda下载及配置 ubuntu 18-04 搭建 go 语言开发环境→

最近更新
01
Structured Knowledge Distillation for Semantic Segmentation
06-03
02
README 美化
05-20
03
常见 Tricks 代码片段
05-12
更多文章>
Theme by Vdoing | Copyright © 2021-2023 Muyun99 | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式
×