Ask Your Question

Revision history [back]

To use multiple GPU's you would need to create two instances of the NvidiaOpticalFlow_1_0 class and process one image on each. You cannot pass multiple GPU id's and parallelize one image over them.

I would refer to this example for a guide on how to use multiple GPU's. I would also verify that the GPU is the bottleneck in your code by using nvprof etc. and not the CPU (decoding/up-scaling) and/or data transfers between the CPU and GPU, before moving to multiple GPU's