bevdet-tensorrt-cpp icon indicating copy to clipboard operation
bevdet-tensorrt-cpp copied to clipboard

Failed to build engine parser

Open next-gen-machine opened this issue 2 years ago • 5 comments

Hii, when I execute ./bevdemo ../configure.yaml , got error

ERROR: 3: [runtime.cpp::deserializeCudaEngine::36] Error Code 3: API Usage Error (Parameter check failed at: runtime/rt/runtime.cpp::deserializeCudaEngine::36, condition: (blob) != nullptr ) ERROR: Failed to build engine parser! free(): double free detected in tcache 2 Aborted (core dumped)

Please resolve it

next-gen-machine avatar Jul 13 '23 19:07 next-gen-machine

Hii, when I execute ./bevdemo ../configure.yaml , got error

ERROR: 3: [runtime.cpp::deserializeCudaEngine::36] Error Code 3: API Usage Error (Parameter check failed at: runtime/rt/runtime.cpp::deserializeCudaEngine::36, condition: (blob) != nullptr ) ERROR: Failed to build engine parser! free(): double free detected in tcache 2 Aborted (core dumped)

Please resolve it

Please check if the path name in your configure.yaml is consistent with your engine file name! image

LCH1238 avatar Jul 14 '23 02:07 LCH1238

Thanks a lot. It is working. I have one question. Can I use tensorrt engine build on x86 architecture for inference on aarch64 architecture or I have to build create engine on aarch64 architecture using this repository?

next-gen-machine avatar Jul 14 '23 04:07 next-gen-machine

Thanks a lot. It is working. I have one question. Can I use tensorrt engine build on x86 architecture for inference on aarch64 architecture or I have to build create engine on aarch64 architecture using this repository?

TensorRT 8.6 and previous versions do not allow this. I suggest you to create a engine on aarch64 architecture.

LCH1238 avatar Jul 14 '23 05:07 LCH1238

Hii, Thanks a lot for your quick replies. Can you provide C++ API code for export_engine, because my Drive AGX Orin board supports only C++ API of TensorRT (TensorRT Version 8.5). (DRIVE OS 6.0.6 on Drive AGX Orin board) Or If you have any method to install TensorRT Python package for DRIVE AGX Orin, it would be very helpful if you suggest that method. Thanks in advance.

next-gen-machine avatar Jul 17 '23 05:07 next-gen-machine

Hii, Thanks a lot for your quick replies. Can you provide C++ API code for export_engine, because my Drive AGX Orin board supports only C++ API of TensorRT (TensorRT Version 8.5). (DRIVE OS 6.0.6 on Drive AGX Orin board) Or If you have any method to install TensorRT Python package for DRIVE AGX Orin, it would be very helpful if you suggest that method. Thanks in advance.

I didn't write this code. I don't have DRIVE AGX Orin, you can write a C++ code yourself.

LCH1238 avatar Jul 17 '23 11:07 LCH1238