Engine file created with onnx other than the one given in sdk doesnt seem to work

I got the sample app running. However when I use engine file(.trt) generated by the onnx file other than the one given in the SDK it gives ‘LLVM ERROR: out of memory’ error. I am using onnx file generated by converting a yolov8 .pt file.

Edit: Here’s the log
[03/28/2024-17:47:38] [I] [TRT] Loaded engine size: 61 MiB
[03/28/2024-17:47:39] [I] [TRT] [MemUsageChange] Init cuDNN: CPU +7, GPU +12, now: CPU 160, GPU 775 (MiB)
[03/28/2024-17:47:39] [I] [TRT] [MemUsageChange] TensorRT-managed allocation in engine deserialization: CPU +0, GPU +61, now: CPU 0, GPU 61 (MiB)
[03/28/2024-17:47:39] [I] [TRT] [MemUsageChange] Init cuDNN: CPU +0, GPU +8, now: CPU 161, GPU 775 (MiB)
[03/28/2024-17:47:40] [I] [TRT] [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +149, now: CPU 0, GPU 210 (MiB)
[avi @ 0x55a14f4d7ec0] non-interleaved AVI
[INFO ][17:47:40] Media format: AVI (Audio Video Interleaved) (avi)
Dumping Tracked objects to file: text_8_1
Session Initialization Time: 32 ms
Working on Frame: 0
LLVM ERROR: out of memory
Aborted (core dumped)