小编kai*_*_sk的帖子

src/cpp/cuda.hpp:14:10: 致命错误: cuda.h: 没有那个文件或目录

当我按照此说明安装 pycuda 时:

pip install pycuda
Run Code Online (Sandbox Code Playgroud)

但有一个错误:

src/cpp/cuda.hpp:14:10: fatal error: cuda.h: No such file or directory
Run Code Online (Sandbox Code Playgroud)

但我已经安装了 cuda 工具包。这是 nvcc -V 的结果

[root@localhost include]# nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Tue_Jun_12_23:07:04_CDT_2018
Cuda compilation tools, release 9.2, V9.2.148
Run Code Online (Sandbox Code Playgroud)

这是在https://developer.nvidia.com/cuda-downloads 中下载的安装 rpm 的结果

[root@localhost include]# sudo dnf install cuda
Last metadata expiration check: 0:05:09 ago on Wed 05 Sep 2018 10:08:35 PM EDT.
Package cuda-1:9.2.148.1-2.fc28.x86_64 is already installed, skipping.
Dependencies resolved. …
Run Code Online (Sandbox Code Playgroud)

cuda gpu pycuda

6
推荐指数
3
解决办法
8516
查看次数

标签 统计

cuda ×1

gpu ×1

pycuda ×1