Thread-safety with GpuMat

asked Oct 7 '0

dvfreese gravatar image

I have a single thread that produces a GpuMat. I was looking at a design where I would pass that to N threads as a const GpuMat, and then let them operate on that matrix arbitrarily.

If none of the threads are modifying the GpuMat, is this considered thread safe generally? with cavaets? never?

Preview: (hide)

Comments

The reference counting is atomic, so that part looks fine, but I wasn't sure if anything in particular with the cuda context might cause problems.

dvfreese gravatar imagedvfreese (Oct 7 '0)edit