• Igor Murzov's avatar
    Fix OpenCL device detection when some OpenCL platform has no devices · cdbfdcc3
    Igor Murzov authored
    It's not an error if some OpenCL platform has no devices. This makes
    OpenCL device detection work correctly in the following scenario:
    
    $ OPENCV_OPENCL_DEVICE=:GPU: ./opencv_test_dnn
    
    OpenCV version: 4.1.2-dev
    OpenCV VCS version: 4.1.2-80-g467748ee98-dirty
    Build type: Debug
    Compiler: /usr/bin/g++  (ver 7.4.0)
    Parallel framework: pthreads
    CPU features: SSE SSE2 SSE3 *SSE4.1 *SSE4.2 *FP16 *AVX *AVX2 *AVX512-SKX?
    Intel(R) IPP version: ippIP AVX2 (l9) 2019.0.0 Gold (-) Jul 24 2018
    OpenCL Platforms:
        AMD Accelerated Parallel Processing
        Portable Computing Language
            CPU: pthread-AMD Ryzen 7 2700X Eight-Core Processor (OpenCL 1.2 pocl HSTR: pthread-x86_64-pc-linux-gnu-znver1)
        NVIDIA CUDA
            dGPU: GeForce GTX 1080 (OpenCL 1.2 CUDA)
    Current OpenCL device:
        Type = dGPU
        Name = GeForce GTX 1080
        Version = OpenCL 1.2 CUDA
        Driver version = 430.26
    cdbfdcc3
Name
Last commit
Last update
..
calib3d Loading commit data...
core Loading commit data...
cudaarithm Loading commit data...
cudabgsegm Loading commit data...
cudacodec Loading commit data...
cudafeatures2d Loading commit data...
cudafilters Loading commit data...
cudaimgproc Loading commit data...
cudalegacy Loading commit data...
cudaobjdetect Loading commit data...
cudaoptflow Loading commit data...
cudastereo Loading commit data...
cudawarping Loading commit data...
cudev Loading commit data...
dnn Loading commit data...
features2d Loading commit data...
flann Loading commit data...
highgui Loading commit data...
imgcodecs Loading commit data...
imgproc Loading commit data...
java Loading commit data...
js Loading commit data...
ml Loading commit data...
objdetect Loading commit data...
photo Loading commit data...
python Loading commit data...
shape Loading commit data...
stitching Loading commit data...
superres Loading commit data...
ts Loading commit data...
video Loading commit data...
videoio Loading commit data...
videostab Loading commit data...
viz Loading commit data...
world Loading commit data...
CMakeLists.txt Loading commit data...