When using opencv GpuMat, there is a long delay in a use of the first line code.
In this page,
There is solution in article.
In one word.
Add 5.2 option in CUDA_ARCH_BIN table when cmake setting.
In my case, this delay problem cleared, after build by set this option.