Does the Zed SDK activate or clear existing tensor_rt contexts?
(following up on our question last year)
Situation:
- Running Zed + cuda accelerated YoloV4 works fine
- Loading saved video frames + tensor_rt accelerated YoloV4 works fine
- But Zed + tensor_rt accelerated YoloV4 runs into a problem with an invalidated cuda context
System Info
- pyzed: 3.7
- Hardware: Jetson Xavier
- TensorRT version: 8.0
- Cuda: cuda_10.2_r440.TC440_70.29663091_0
- python: 3.6.9
Notes:
- Error text:
[TensorRT] ERROR: 1: [reformat.cu::NCHWToNHWC::1405] Error Code 1: Cuda Runtime (invalid resource handle)
- From other online sources, it seems this error typically happens when two systems are trying to use TensorRT, like using pycuda and torch indenpendently. However, we only have YoloV4 using TensorRT
- The TensorRT warning (in the image below) should be a false positive. We never transferred a .engine cache, and the warning is known to be faulty.
- Attempting to create a cuda context after the existing handle is broken, creates a different error:
[hardwareContext.cpp::configure::92] Error Code 1: Cudnn (CUDNN_STATUS_MAPPING_ERROR)