1

Topic: Opencv and Opencl for videocard Geforce GTX 1050

I study teamwork CV of functions through OCL unit on various videocards. Here met some singularity in operation of videocard Geforce GTX 1050. The board is connected to Opencl, function from CV is caused, but loading on GPU I do not see. Here it is detailed in the code: Initialization if (! cv:: ocl:: haveOpenCL ()) {std:: cout <<"OpenCL is not available..." <<std:: endl; system ("Pause"); return 1;} cv:: ocl:: setUseOpenCL (true); if (! cv:: ocl:: useOpenCL ()) {std:: cout <<"OpenCL not used" <<std:: endl; system ("Pause"); return 1;} On the screen it is deduced [INFO:0] Initialize OpenCL runtime... [INFO:0] Successfully initialized OpenCL cache directory: C:\Users\KVY\AppData\Local\Temp\opencv\3.4.1\opencl_cache\[INFO:0] Preparing OpenCL cache configuration for context: 32-bit--NVIDIA_Corporation--GeForce_GTX_1050-... Further from video the scene is shot, becomes it  and is sent to a window cv:: VideoCapture cap; cap.open (strPath); cv:: namedWindow ("Test"); while (1) {cv:: UMat in; cv:: UMat out; cap>> in; cv:: resize (in, out, cv:: Size ((int) (in.cols * 2), (int) (in.rows * 2)), 0, 0, CV_INTER_LINEAR); cv:: imshow ("Test", out); if (cv:: waitKey (30)> = 0) break;} Loading on Process Explorer I do not see. On other boards of Dzhefors 250 and 650 it is. Why?

2

Re: Opencv and Opencl for videocard Geforce GTX 1050

Hello, Vicul, you wrote: V> Loading on Process Explorer I do not see. On other boards of Dzhefors 250 and 650 it is. V> why? Perhaps the videocard too powerful. Try to do  not twice, and four times. And algorithm select not linear, and same Lankshosa.

3

Re: Opencv and Opencl for videocard Geforce GTX 1050

V>> Loading on Process Explorer I do not see. On other boards of Dzhefors 250 and 650 it is. V>> why? N> Perhaps the videocard too powerful. Try to do  not twice, and four times. And algorithm select not linear, and same Lankshosa. And Lankshos not especially loads a card. Do  in a cycle of times 10-100 is better.

4

Re: Opencv and Opencl for videocard Geforce GTX 1050

N> Perhaps the videocard too powerful. It seems that so. Because with OCL the unit the general loading  twice is less, than without it. N> Try to do  not twice, and four times. And algorithm select not linear, and same Lankshosa. Tried to increase in 4 and 5 times and to change a method, indication GPU is not present.

5

Re: Opencv and Opencl for videocard Geforce GTX 1050

M> do  in a cycle of times 10-100 is better. Did in 10 times a computer does not pull. There a frame 2.

6

Re: Opencv and Opencl for videocard Geforce GTX 1050

Hello, Vicul, you wrote: M>> do  in a cycle of times 10-100 is better. V> did in 10 times a computer does not pull. There a frame 2. Meant not  in 10 times, and to cause cv:: resize 10 consecutive times.