the cuda context problem on Multiple decoder instances

I am working on the project that uses two decoder.
now I refer to the NV Decoder sample,
But each decoder instances creates one cuda-context which makes me can not operate the decoded data together in cuda kernel function.
how can I create a single CUDA context and share it across multiple decoders.
Could you give me some advice or reference document?

Hi chenjz1993,

Please refer to …\Samples\AppDecode\AppDecMultiInput, it will illustrate how to use a same cuda context across multiple decoder instances. Please refer to lines 107-133 in …\Samples\AppDecode\AppDecMultiInput\AppDecMultiInput.cpp

Ryan Park