成功解决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

解决问题


include/darknet.h:14:14: fatal error: cuda_runtime.h: No such file or directory

    #include "cuda_runtime.h"





解决思路


包括/ darknet。h:14:14:致命错误:cuda_runtime。h:没有这样的文件或目录

# include“cuda_runtime.h”





解决办法


显然,该问题是因为路径下不存在该文件,

T1、重新安装或下载GPU加速的cuda文件,cuda_runtime.h到指定文件夹即可,

T2、如果你使用CMake命令,可以直接

find_package(CUDA  REQUIRED)

include_directories("${CUDA_INCLUDE_DIRS}")

T3、也可以查看stackflow上的回答,按照下边的命令进行设置亦可!

image.png



 

相关文章
|
10月前
|
Ubuntu Linux
Win10 Ubuntu子系统(内嵌ubuntu18.04)运行32bit Linux原生程序 解决Exec format error错误
Win10 Ubuntu子系统(内嵌ubuntu18.04)运行32bit Linux原生程序 解决Exec format error错误
166 0
|
Ubuntu
Ubuntu 1604报错cannot create temp file for here-document: No space left on device,拓展sda容量解决之
Ubuntu 1604报错cannot create temp file for here-document: No space left on device,拓展sda容量解决之
222 0
|
10天前
|
Ubuntu
Ubuntu22.04,AOSP编译报错: libncurses.so.5: cannot open shared object file: No such file
本文描述了在Ubuntu 22.04系统上编译AOSP时遇到的`libncurses.so.5`缺失错误,并提供了通过安装相应库解决该问题的步骤。
73 0
|
4月前
|
人工智能 Ubuntu 机器人
【ubuntu】手把手教你解决ubuntu报错openssh-server E: Sub-process /usr/bin/dpkg returned an error code (1)
【ubuntu】手把手教你解决ubuntu报错openssh-server E: Sub-process /usr/bin/dpkg returned an error code (1)
330 0
ubuntu16.04中ROS-Kinetic报错: not find a package configuration file provided by “gazebo_ros_control“
ubuntu16.04中ROS-Kinetic报错: not find a package configuration file provided by “gazebo_ros_control“
146 0
|
Ubuntu
Ubuntu中解压出现:bzip2: (stdin) is not a bzip2 file.
Ubuntu中解压出现:bzip2: (stdin) is not a bzip2 file.
425 0
|
存储 Ubuntu Linux
virtualbox虚拟机安装Ubuntu异常处理:FATAL: NO bootable medium found! System halted
virtualbox虚拟机安装Ubuntu异常处理:FATAL: NO bootable medium found! System halted
virtualbox虚拟机安装Ubuntu异常处理:FATAL: NO bootable medium found! System halted
|
Ubuntu JavaScript
ubuntu 文件监视数量 Error: ENOSPC: System limit for number of file watchers reached, watch‘所在文件路径‘
vue 运行执行 npm run dev | * Error: ENOSPC: System limit for number of file watchers reached, watch’所在文件路径’ 最简单的命令 沾走就能用
193 0
ubuntu 文件监视数量 Error: ENOSPC: System limit for number of file watchers reached, watch‘所在文件路径‘
|
Ubuntu Java Docker
ubuntu下matlab安装问题解决# A fatal error has been detected by the Java Runtime Environment:##
ubuntu下matlab安装问题解决# A fatal error has been detected by the Java Runtime Environment:##
179 0
ubuntu下matlab安装问题解决# A fatal error has been detected by the Java Runtime Environment:##
|
存储 运维 Ubuntu
Linux (Ubuntu) Make file 基本语法和shell脚本基础(入门必看)
Linux (Ubuntu) Make file 基本语法和shell脚本基础(入门必看)
Linux (Ubuntu) Make file 基本语法和shell脚本基础(入门必看)
下一篇
DDNS