Skip to content

test cases for OpenCL should only use default GPU device 0 #18917

@diablodale

Description

@diablodale

Two test cases for the OpenCL execution context request the 2nd GPU device. As per #18907 (comment)_ the test cases should only use GPU device 0.

System information (version)
  • OpenCV => 4.5.0
  • Operating System / Platform => Windows 10 64-Bit
  • Compiler => Visual Studio Community 2019 v16.8.2
Steps to reproduce

Code review at

ocl::Context context = ocl::Context::create(":GPU:1");

and

ocl::Context context = ocl::Context::create(":GPU:1");

Result

The 2nd GPU device is associated with the Execution Context. My computer has two devices in order: Nvidia, and Intel. Therefore, in these test cases, it is the Intel that is associated.

Expected

The GPU device 0 to be associated. On my system it would be the Nvidia.

Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    answers.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions