博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
TensorRT使用过程中的问题记录1
阅读量:2145 次
发布时间:2019-04-30

本文共 1048 字,大约阅读时间需要 3 分钟。

Fatal Error: cuda_runtime.h: No such file or directory解决办法

1. 在make编译时,出现以下错误。

…/Makefile.config:10: CUDA_INSTALL_DIR variable is not specified, using /usr/local/cuda by default, use CUDA_INSTALL_DIR=<cuda_directory> to change.

…/Makefile.config:15: CUDNN_INSTALL_DIR variable is not specified, using /usr/local/cuda by default, use CUDNN_INSTALL_DIR=<cudnn_directory> to change.
…/Makefile.config:28: TRT_LIB_DIR is not specified, searching …/…/lib, …/…/lib, …/lib by default, use TRT_LIB_DIR=<trt_lib_directory> to change.
if [ ! -d …/…/bin/chobj/…/common ]; then mkdir -p …/…/bin/dchobj/…/common; fi; :
Compiling: sampleMNIST.cpp
In file included from …/common/buffers.h:20:0,
from sampleMNIST.cpp:26:
…/common/common.h:38:30: fatal error: cuda_runtime_api.h: No such file or directory
compilation terminated.
make: *** […/Makefile.config:324: …/…/bin/dchobj/sampleMNIST.o] Error 1
是cuda版本的问题。因为环境中有多个cuda版本或者cuda的没有添加cuda的环境。

2. 解决方法。

make CUDA_INSTALL_DIR=/usr/local/cuda-veision(指定cuda来编译)

eg:make CUDA_INSTALL_DIR=/usr/local/cuda-10.0/10.2等。

转载地址:http://mgegf.baihongyu.com/

你可能感兴趣的文章
Python 列表(list)、字典(dict)、字符串(string)常用基本操作小结
查看>>
Loadrunner之https协议录制回放报错如何解决?(九)
查看>>
python中xrange和range的异同
查看>>
列表、元组、集合、字典
查看>>
【Python】easygui小甲鱼
查看>>
【Python】关于Python多线程的一篇文章转载
查看>>
【Pyton】【小甲鱼】文件
查看>>
【Pyton】【小甲鱼】永久存储:腌制一缸美味的泡菜
查看>>
【Pyton】【小甲鱼】异常处理:你不可能总是对的
查看>>
APP性能测试工具
查看>>
【Pyton】【小甲鱼】类和对象
查看>>
压力测试工具JMeter入门教程
查看>>
作为一名软件测试工程师,需要具备哪些能力
查看>>
【Pyton】【小甲鱼】类和对象:一些相关的BIF(内置函数)
查看>>
【Pyton】【小甲鱼】魔法方法
查看>>
单元测试需要具备的技能和4大阶段的学习
查看>>
【Loadrunner】【浙江移动项目手写代码】代码备份
查看>>
Python几种并发实现方案的性能比较
查看>>
[Jmeter]jmeter之脚本录制与回放,优化(windows下的jmeter)
查看>>
Jmeter之正则
查看>>