【OpenCV】OpenCV 中的 GPU 并行优化

Backto OpenCV Index


Rule No.1: 不要轻易调用 GPU并行化

因为开启/初始 CUDA 环境就要用很长时间, 运算量不大的话得不偿失.

The first gpu function call is always takes more time, because CUDA initialize context for device. The following calls will be faster.

必须要用的话, 把这个初始化提前准备好.

https://blog.csdn.net/kelvin_yan/article/details/41804357

猜你喜欢

转载自blog.csdn.net/baishuo8/article/details/85159117