fatal error: cuda_runtime.h: No such file or directory
背景
今天本人想跑个Yolact模型玩玩,但是在训练的过程中,需要DCN网络模型,这个需要使用CUDA对相关文件进行编译,但是报错了,主要错误是:
cuda_runtime.h: No such file or directory
弄了一个下午,看了很多博客,也是没解决,后来知道为啥了。其实解决方案也是很简单的,就是把CUDA安装目录的一些文件夹路径添加到环境变量中就可以了。以下是Windows 操作系统的解决方案:
在环境变量Path中添加以下两个路径:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\binC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib\x64
基本上每个人的默认的安装路径都是这个,大家只需要把v11.0
根据自己的安装的CUDA版本号进行替换即可。
fatal error: cuda_runtime.h: No such file or directory相关推荐
- 成功解决Ubuntu下的include/darknet.h:14:14: fatal error: cuda_runtime.h: No such file or directory
成功解决Ubuntu下的include/darknet.h:14:14: fatal error: cuda_runtime.h: No such file or directory 目录 解决问题 ...
- fatal error: Python.h: No such file or directory 解决
[常见错误] fatal error: Python.h: No such file or directory 环境场景 系统: Parrot Linux 软件: 系统python默认版本2.7 Py ...
- Install matplotlib Error: src/ft2font.h:16:22: fatal error: ft2build.h: No such file or directory
在ubuntu下从源码安装matplotlib的时候出现这样的错误: src/ft2font.h:16:22: fatal error: ft2build.h: No such file or dir ...
- 【错误记录】编译 ijkplayer 报错 (fatal error: libyuv.h: No such file or directory #include “libyuv.h“ )
文章目录 一.报错信息 二.解决方案 参考 https://github.com/bilibili/ijkplayer 项目的编译过程 ; 一.报错信息 在编译完 ffmpeg 之后 , 执行 ./c ...
- fatal error: hdf5.h: No such file or directory
在编译caffe的时候,可能会出现各种找不到文件的情况.这种情况的一种解决方式是改变Makefile.config中的路径. 比如,在编译caffe的时候提醒找不到hdf5.h或者hdf5_hl.h ...
- linux redis release.c:37:10: fatal error: release.h: No such file or directory
(1条消息) redis源码安装出现fatal error: jemalloc/jemalloc.h: No such file or directory_feinifi的博客-CSDN博 ...
- python mysql python.h_MySQLdb/_mysql.c:38:20: fatal error: Python.h: No such file or directory
一.描述 在centos7.5中执行pip3 install mysqlclient,报如下错误 [root@VM_0_10_centos data]# pip3 install mysqlclien ...
- fatal error: dynlink_nvcuvid.h: No such file or directory
Preliminary 下載 OpenCV源碼: https://opencv.org/releases/ 下載OpenCV contrib源碼: https://github.com/opencv/ ...
- fatal error: cusparse.h: No such file or directory compilation terminated. error: command ‘/usr/loca
写在前面: 我是用pycharm远程连接矩池云的GPU遇到了这个问题.前面安装包都很顺利,就是最后安装maskrcnn-benchmark的时候出问题了,一直在报错 fatal error: cusp ...
最新文章
- Ajax的数据发送与接收(jQuery)
- 操作系统页面置换算法实验报告
- Luogu P1198 BZOJ 1012 最大数 (线段树)
- 图论-最长路--关于最长路的探讨2
- Python Flask 中的路由
- Raj Reddy:从印度农村走出来的图灵奖得主
- vscode 离线安装python插件_vscode for Python插件下载-Visual Studio Code Python插件下载0.9.1 官方版-西西软件下载...
- 细说BLUETOOTH 5 【4X 远距离】
- Asp.Net中SqlServer数据库连接方式
- Linux内核编程11期:设备树(device tree)
- vue-router的参数的传递、懒加载以及嵌套路由的使用
- kafka内外网连接问题
- Unity3d通用工具类之解压缩文件
- 基于SpringBoot+Vue打造实验报告提交审核系统
- STM32硬件IIC的BUG问题
- Swin Transformer v2实战:使用Swin Transformer v2实现图像分类(一)
- 基于web的计算机配件销售系统,javaweb电脑配件销售管理系统
- 两部苹果手机同步照片_苹果手机如何恢复照片?最近删除清空也不用怕!
- ESL第十七章 无向图模型 学习/推断/成对马尔可夫独立/全局马尔可夫性、协方差图/高斯图/修改回归算法/图结构估计/图lasso、【受限】玻尔兹曼机/泊松对数线性建模/迭代比例过滤/对比散度
- 使用EditTable实现可编辑列表