Cuda Graph

I have a pipeline for a video stream that processes video from two cameras.
I’m looking into setting up a cuda graph. However, with the changing data it seems like I have to call cudaGraphExecKernelNodeSetParams and some other calls since the data is changing frame by frame.

The code is looking complicated, (I haven’t yet got it to work) unless I’m missing something and over complicating things…so my question is, should this be simpler than I think? Is there a (more complex) example of using Cuda Graphs online ?
I can’t really share my code since it’s for a work project…I’d have to rip the pipeline apart; which I may have to do anyways.

Anyways, what I’m looking for is a bit more complex example code…

Thanks

Rick

If the parameter data doesn’t change frame-by-frame, then it should not be necessary to change the parameters even if underlying data is different.

For example, if you are passing a pointer to data, and the pointer is the same, it should work fine even if the data pointed to is different. That is a hint for graph design to minimize “extra” steps.

There are 5 or more cuda sample codes that demonstrate graph usage.