Multiple encoder sessions with async encoding

I am trying to configure and encode two encoding session in the same process on T4. I am using Async encoding and waiting on secondary threads for completion events. It is the same thread that opens and configure both encoding sessions.

‘nvidia-smi encodersessions’ initially shows both encoder sessions along with FPS and Latency numbers but after few seconds only the second sessions any non-zero data.
How can I verify that both encoding sessions are actively being used?

I am using T4 on Server 2019.


I am creating all encoder sessions in the main thread. I did test submitting EncoderPicture in the main thread for all contexts as well as in separate thread. I still see the same issue.