Create engine faild

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)**jetson nano 4G
• DeepStream Version6.0.1
**• JetPack Version (valid for Jetson only)**4.6.2
• TensorRT Version8.2.1.8
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
run deepstream examples error

g++ -c -o nvdsinfer_yolo_engine.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I…/…/includes -I/usr/local/cuda-10.2/include nvdsinfer_yolo_engine.cpp
g++ -c -o nvdsparsebbox_Yolo.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I…/…/includes -I/usr/local/cuda-10.2/include nvdsparsebbox_Yolo.cpp
g++ -c -o yoloPlugins.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I…/…/includes -I/usr/local/cuda-10.2/include yoloPlugins.cpp
g++ -c -o trt_utils.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I…/…/includes -I/usr/local/cuda-10.2/include trt_utils.cpp
g++ -c -o yolo.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I…/…/includes -I/usr/local/cuda-10.2/include yolo.cpp
yolo.cpp: In member function ‘nvinfer1::ICudaEngine* Yolo::createEngine(nvinfer1::IBuilder*, nvinfer1::IBuilderConfig*)’:
yolo.cpp:57:26: warning: ‘void nvinfer1::INetworkDefinition::destroy()’ is deprecated [-Wdeprecated-declarations]
network->destroy();
^
In file included from yolo.h:31:0,
from yolo.cpp:23:
/usr/include/aarch64-linux-gnu/NvInfer.h:6438:25: note: declared here
TRT_DEPRECATED void destroy() noexcept
^~~~~~~
yolo.cpp:63:86: warning: ‘nvinfer1::ICudaEngine* nvinfer1::IBuilder::buildEngineWithConfig(nvinfer1::INetworkDefinition&, nvinfer1::IBuilderConfig&)’ is deprecated [-Wdeprecated-declarations]
fer1::ICudaEngine * engine = builder->buildEngineWithConfig(*network, config);
^
In file included from yolo.h:31:0,
from yolo.cpp:23:
/usr/include/aarch64-linux-gnu/NvInfer.h:8642:43: note: declared here
TRT_DEPRECATED nvinfer1::ICudaEngine
buildEngineWithConfig(
^~~~~~~~~~~~~~~~~~~~~
yolo.cpp:71:22: warning: ‘void nvinfer1::INetworkDefinition::destroy()’ is deprecated [-Wdeprecated-declarations]
network->destroy();
^
In file included from yolo.h:31:0,
from yolo.cpp:23:
/usr/include/aarch64-linux-gnu/NvInfer.h:6438:25: note: declared here
TRT_DEPRECATED void destroy() noexcept
^~~~~~~
/usr/local/cuda-10.2/bin/nvcc -c -o kernels.o --compiler-options ‘-fPIC’ kernels.cu
g++ -o libnvdsinfer_custom_impl_Yolo.so nvdsinfer_yolo_engine.o nvdsparsebbox_Yolo.o yoloPlugins.o trt_utils.o yolo.o kernels.o -shared -Wl,–start-group -lnvinfer_plugin -lnvinfer -lnvparsers -L/usr/local/cuda-10.2/lib64 -lcudart -lcublas -lstdc++fs -Wl,–end-group

Can you provide the full log? If you mean “Deserialized engine failed” then it is not a problem, there is no engine file when the program runs for the first time, the engine file will be creted after it.

run this cell,and no engine create

TODO Verify the CUDA_VER value

Build YOLO engine

CUDA_VER = 10.2
!cd $YOLO_DETECTOR/nvdsinfer_custom_impl_Yolo/
&& CUDA_VER=$CUDA_VER make

only some warnings:

yolo.cpp: In member function ‘nvinfer1::ICudaEngine* Yolo::createEngine(nvinfer1::IBuilder*, nvinfer1::IBuilderConfig*)’:
yolo.cpp:57:26: warning: ‘void nvinfer1::INetworkDefinition::destroy()’ is deprecated [-Wdeprecated-declarations]
network->destroy();
^
In file included from yolo.h:31:0,
from yolo.cpp:23:
/usr/include/aarch64-linux-gnu/NvInfer.h:6438:25: note: declared here
TRT_DEPRECATED void destroy() noexcept
^~~~~~~
yolo.cpp:63:86: warning: ‘nvinfer1::ICudaEngine* nvinfer1::IBuilder::buildEngineWithConfig(nvinfer1::INetworkDefinition&, nvinfer1::IBuilderConfig&)’ is deprecated [-Wdeprecated-declarations]
fer1::ICudaEngine * engine = builder->buildEngineWithConfig(*network, config);
^
In file included from yolo.h:31:0,
from yolo.cpp:23:
/usr/include/aarch64-linux-gnu/NvInfer.h:8642:43: note: declared here
TRT_DEPRECATED nvinfer1::ICudaEngine
buildEngineWithConfig(
^~~~~~~~~~~~~~~~~~~~~
yolo.cpp:71:22: warning: ‘void nvinfer1::INetworkDefinition::destroy()’ is deprecated [-Wdeprecated-declarations]
network->destroy();
^
In file included from yolo.h:31:0,
from yolo.cpp:23:
/usr/include/aarch64-linux-gnu/NvInfer.h:6438:25: note: declared here
TRT_DEPRECATED void destroy() noexcept

this is code compilation, the engine will created after run application, please refer to opt\nvidia\deepstream\deepstream\sources\objectDetector_Yolo\README

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.