python-3.7 - 如何在 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
解决方案
我点击了这个链接,并且能够为 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 差异
推荐阅读
- r - 在R中按组填充列中的值直到另一个值中的某个值
- c# - 光线投射和二维阵列在 Unity 中的魔方无法按预期工作
- java - Java 未在 Ubuntu 实例上运行 bash 脚本
- pointers - 如何在不消耗盒子的情况下获取原始指针?
- linux - 从命令行打印 doc 文件
- windows - Process.run: ProcessException: 系统找不到指定的文件
- python - 了解双引号与单引号的字符串生成
- swift - 在分屏中检测尺寸视图
- javascript - 在一个终端中一次运行多个脚本
- r - 我们可以按组使用 data.table setorder 吗?