Description
Hi, while running trtexec with an ONNX model, I’ve got a segmentation fault.
Upon the log, segmentation fault occurred on Timing Runner for Myelin-fused foreign node.
[08/28/2023-12:01:48] [V] [TRT] --------------- Timing Runner: /features/0/0/Conv (CaskFlattenConvolution)
[08/28/2023-12:01:48] [V] [TRT] CaskFlattenConvolution has no valid tactics for this config, skipping
[08/28/2023-12:01:48] [V] [TRT] >>>>>>>>>>>>>>> Chose Runner Type: CaskConvolution Tactic: 0x7121ec1db3f80c67
[08/28/2023-12:01:48] [V] [TRT] =============== Computing costs for
[08/28/2023-12:01:48] [V] [TRT] *************** Autotuning format combination: Float(401408,3136,56,1) -> Float(1000,1) ***************
[08/28/2023-12:01:48] [V] [TRT] --------------- Timing Runner: {ForeignNode[/features/0/2/Constant_output_0...(Unnamed Layer* 1783) [ElementWise]]} (Myelin)
Segmentation fault (core dumped)
As the internal code for building an engine is not open-sourced, I’m struggling to debug this problem.
Attaching the input ONNX model and the log file.
ONNX model link
simple_swin_b.engine.build.log (1.1 MB)
Environment
TensorRT Version: 8.5.2-1+cuda11.8
GPU Type: RTX A6000
Nvidia Driver Version: 510.108.03
CUDA Version: 12.0
CUDNN Version: 8
Operating System + Version: Ubuntu 20.04
Python Version (if applicable):
TensorFlow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag): nvcr.io/nvidia/tensorrt 23.01-py3
Steps To Reproduce
- Build trtexec on the above docker image
trtexec --onnx=/workspace/models/simple_swin_b.onnx --saveEngine=simple_swin_b.engine --buildOnly --verbose