cuda - 在Anaconda中使用Pytorch-GPU时,是不是不需要安装CUDA?
问题描述
我发现在Anaconda中安装Pytorch 0.4 GPU版本后,不需要在本地安装CUDA来调用gpu加速。运行代码时,GPU 内核可以使用 90% 以上。
编辑:我在 Windows 10 中使用它。不知道它是否适用于 Linux。
解决方案
@talonmies
感谢您的网址。看来 pytorch 在 Windows 中不需要 cuda,因为它的依赖项是 cffi、mkl、numpy 和 python。
我在 Anaconda Prompt 中输入了这个命令conda search -c pytorch pytorch=0.4.0 --info
,它说
Loading channels: done
pytorch 0.4.0 py35_cuda80_cudnn7he774522_1
------------------------------------------
file name : pytorch-0.4.0-py35_cuda80_cudnn7he774522_1.tar.bz2
name : pytorch
version : 0.4.0
build string: py35_cuda80_cudnn7he774522_1
build number: 1
size : 528.5 MB
arch : x86_64
constrains : ()
platform : Platform.win
license : BSD 3-Clause
subdir : win-64
url : https://conda.anaconda.org/pytorch/win-64/pytorch-0.4.0-py35_cuda80_cudnn7he774522_1.tar.bz2
md5 : 7db3971bb054079d7c7ff84b6286c58e
dependencies:
- cffi
- mkl >=2018
- numpy >=1.11
- python >=3.5,<3.6.0a0
pytorch 0.4.0 py35_cuda90_cudnn7he774522_1
------------------------------------------
file name : pytorch-0.4.0-py35_cuda90_cudnn7he774522_1.tar.bz2
name : pytorch
version : 0.4.0
build string: py35_cuda90_cudnn7he774522_1
build number: 1
size : 578.5 MB
arch : x86_64
constrains : ()
platform : Platform.win
license : BSD 3-Clause
subdir : win-64
url : https://conda.anaconda.org/pytorch/win-64/pytorch-0.4.0-py35_cuda90_cudnn7he774522_1.tar.bz2
md5 : 8200c9841f9cad6f2e605015812aa3f2
dependencies:
- cffi
- mkl >=2018
- numpy >=1.11
- python >=3.5,<3.6.0a0
pytorch 0.4.0 py35_cuda91_cudnn7he774522_1
------------------------------------------
file name : pytorch-0.4.0-py35_cuda91_cudnn7he774522_1.tar.bz2
name : pytorch
version : 0.4.0
build string: py35_cuda91_cudnn7he774522_1
build number: 1
size : 546.1 MB
arch : x86_64
constrains : ()
platform : Platform.win
license : BSD 3-Clause
subdir : win-64
url : https://conda.anaconda.org/pytorch/win-64/pytorch-0.4.0-py35_cuda91_cudnn7he774522_1.tar.bz2
md5 : 79d99a825f66b55b1aa6f04d22d68aac
dependencies:
- cffi
- mkl >=2018
- numpy >=1.11
- python >=3.5,<3.6.0a0
pytorch 0.4.0 py36_cuda80_cudnn7he774522_1
------------------------------------------
file name : pytorch-0.4.0-py36_cuda80_cudnn7he774522_1.tar.bz2
name : pytorch
version : 0.4.0
build string: py36_cuda80_cudnn7he774522_1
build number: 1
size : 529.2 MB
arch : x86_64
constrains : ()
platform : Platform.win
license : BSD 3-Clause
subdir : win-64
url : https://conda.anaconda.org/pytorch/win-64/pytorch-0.4.0-py36_cuda80_cudnn7he774522_1.tar.bz2
md5 : 27d20c9869fb57ffe0d6d014cf348855
dependencies:
- cffi
- mkl >=2018
- numpy >=1.11
- python >=3.6,<3.7.0a0
pytorch 0.4.0 py36_cuda90_cudnn7he774522_1
------------------------------------------
file name : pytorch-0.4.0-py36_cuda90_cudnn7he774522_1.tar.bz2
name : pytorch
version : 0.4.0
build string: py36_cuda90_cudnn7he774522_1
build number: 1
size : 577.6 MB
arch : x86_64
constrains : ()
platform : Platform.win
license : BSD 3-Clause
subdir : win-64
url : https://conda.anaconda.org/pytorch/win-64/pytorch-0.4.0-py36_cuda90_cudnn7he774522_1.tar.bz2
md5 : 138dcca8eeff1d58a8fd9b1febf702f6
dependencies:
- cffi
- mkl >=2018
- numpy >=1.11
- python >=3.6,<3.7.0a0
pytorch 0.4.0 py36_cuda91_cudnn7he774522_1
------------------------------------------
file name : pytorch-0.4.0-py36_cuda91_cudnn7he774522_1.tar.bz2
name : pytorch
version : 0.4.0
build string: py36_cuda91_cudnn7he774522_1
build number: 1
size : 546.4 MB
arch : x86_64
constrains : ()
platform : Platform.win
license : BSD 3-Clause
subdir : win-64
url : https://conda.anaconda.org/pytorch/win-64/pytorch-0.4.0-py36_cuda91_cudnn7he774522_1.tar.bz2
md5 : 326265665000de6f7501160b10b089c8
dependencies:
- cffi
- mkl >=2018
- numpy >=1.11
- python >=3.6,<3.7.0a0
推荐阅读
- css - Safari/WKWebview - 使用变换缩放时在可滚动容器中像素化的内容
- asp.net-core - Identity 中的剃须刀页面是否已从 Asp.Net Core 3 更新到 Asp.Net 5?
- vue.js - 导航时更改 $i18n 区域设置
- python - 如何在 python 中模拟 msg['to'] 键?
- linux - 我可以在从 linux 设备安装的共享文件夹中使用 windows API 设置文件权限吗?
- php - PHP:如何在对象数组中搜索并返回 res
- amazon-web-services - 添加安全传输策略时可访问 Amazon S3 静态网站(403 错误)
- java - 代码覆盖异常测试用例中未涵盖的 catch
- woocommerce - 在 Woocommerce“计费和运输”上自定义结帐字段
- javascript - Vue JS/Vuex - 调用编辑用户不保存