UMat lazy allocation: forcing synchronous GPU memory setup before a real-time loop
I am working with OpenCV's cv::UMat (assume OpenCV 4.x with the OpenCL transparent API) in a frame-processing pipeline where latency spikes on the first iteration are unacceptable. My understanding is that UMat defers the actual buffer allocation until first access, and that the allocation may even happen on a backend-managed thread. The missing piece for me