I’m working on a project that loads several NN as
dnn::Net objects were speed it’s an important factor, so I’m trying to figure out if I can spread the work to different CUDA devices.
I searched the internet and found that you can select what CUDA device you want to use with
cv::cuda::setDevice but, I was wondering if this would work trying to load two different
dnn::Net to different CUDA devices, would I have to call
setDevice every time before calling forward in the respective
dnn::Net, or once loaded with a specific device the
dnn::Net will use it’s assigned device automatically. Or maybe this is not even posible with OpenCV, I can’t seem to find a answer for this.
Right now I’m unable to test this because I only have one GPU, but as mention before speed is a priority for this project so I’m trying to figure out if I could spread the work on different devices before buying another GPU.
Anyway, Thank you.