TensorRT engine execute on jetson TX2

Hi, I was able to create tensorrt engine using c++ api, and NVCC compiler.
Now, I’ve tried to create code for inference.
I’ve tried to compile and run the executable file for every new line I added, in order to make kind of debugging on my jetson TX2.
My problem is with this line:
context->execute(1, bindings);
The compilation was successful but when I ran the output of the compilation I got this error:

cudnnEngine.cpp (420) - Cuda Error in execute: 4

Is anyone know this issue and know how to fix that?
thank you all!!!


CUDA error 4 is cudaErrorLaunchFailure.
Usually due to dereferencing an invalid pointer or accessing out of bounds shared memory.


Likely you have an out of resource issue.