tensorrt编译出错等相关问题
tiny_tensorrt编译过程中出错的问题,基本都是需在系统中添加环境变量,注意vim ~/.bashrc 后,需要source ~/.bashrc  然后关掉xshell 后重新连接即可
-- Build files have been written to: /home/liaodaihai/milvus-zt/tiny-tensorrt/build [ 9%] Building NVCC (Device) object CMakeFiles/tinytrt.dir/plugin/YoloLayerPlugin/tinytrt_generated_YoloLayerPlugin.cu.o In file included from
/home/liaodaihai/milvus-zt/tiny-tensorrt/plugin/YoloLayerPlugin/YoloLayerPlugin.cu:1:0: /home/liaodaihai/milvus-zt/tiny-tensorrt/plugin/YoloLayerPlugin/YoloLayerPlugin.hpp:17:10: fatal error: NvInfer.h: No such file or directory #include "NvInfer.h" ^~~~~~~~~~~ compilation terminated. CMake Error at tinytrt_generated_ake:219 (message): Error generating /home/liaodaihai/milvus-zt/tiny-
tensorrt/build/CMakeFiles/tinytrt.dir/plugin/YoloLayerPlugin/./tinytrt_generated_YoloLayerPlugin.cu.o
CMakeFiles/tinytrt.dir/build.make:77: recipe for target
'CMakeFiles/tinytrt.dir/plugin/YoloLayerPlugin/tinytrt_generated_YoloLayerPlugin.cu.o' failed make[2]: *
**
[CMakeFiles/tinytrt.dir/plugin/YoloLayerPlugin/tinytrt_generated_YoloLayerPlugin.cu.o] Error 1 CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/tinytrt.dir/all' failed make[1]: *** [CMakeFiles/tinytrt.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2 (zt) liaodaihai@hisense-2288H-V5:~/milvus-zt/tiny-tensorrt/build$
export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export PATH=/usr/local/cuda-10.2/bin:/usr/local/cuda-10.2/nsight-compute-2019.5.0${PATH:+:${PATH}}
export CUDA_HOME=$CUDA_HOME:/usr/local/cuda-10.2
generated
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/liaodaihai/milvus-zt/TensorRT-7.0.0.11/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/liaodaihai/milvus-zt/TensorRT-7.0.0.11/include
export C_INCLUDE_PATH=/home/liaodaihai/milvus-zt/TensorRT-7.0.0.11/include/:$C_INCLUDE_PATH
export C_INCLUDE_PATH=/usr/local/cuda-10.2/targets/x86_64-linux/include/:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/usr/local/cuda-10.2/targets/x86_64-linux/include/:$CPLUS_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/home/liaodaihai/milvus-zt/TensorRT-7.0.0.11/include/:$CPLUS_INCLUDE_PATH
export LIBRARY_PATH=/usr/local/cuda-10.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export LIBRARY_PATH=$LD_LIBRARY_PATH:/home/liaodaihai/milvus-zt/TensorRT-7.0.0.11/lib
export LIBRARY_PATH=$LD_LIBRARY_PATH:/home/liaodaihai/milvus-zt/TensorRT-7.0.0.11/include

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。