Problem in simultaneously transcoding source HEVC and H.264 bitstreams

Environment: Linux, P5000, driver375.66.cuda SDK8.0.44,video codec SDK7.19.
We created the primary cuda context and transcoded source HEVC and H.264 bitstream. The resulted bitstem seems interleaved togather…wired…

Expecting your help~