首页 > 解决方案 > 如何在 WinPython 发行版上安装 cudatoolkit 包

问题描述

如何cudatoolkit在 WinPython 发行版上安装该软件包?当我查看非官方二进制文件列表时,它不存在,而当我这样做时:

python -m pip install cudatoolkit

我明白了

Could not find a version that satisfies the requirement cudatoolkit (from versions: )
No matching distribution found for cudatoolkit

标签: python-3.7

解决方案


我点击了这个链接,并且能够为 Winpython 安装 cudatoolskit。我不必添加路径,因为它会自动添加到 windows 环境中。

https://github.com/numba/conda-recipe-cudatoolkit/issues/17#issuecomment-533107631

安装后,我运行以下代码以查看我的 GPU 是否正常工作

from numba import jit, cuda 
print(cuda.gpus)

如果您收到 <Managed Device 0>,则表示检测到您的 GPU。

我使用这个回复示例来测试 GPU 差异

https://stackoverflow.com/a/61384003/14689548


推荐阅读