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
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)
Steps to reproduce
Code review at
opencv/modules/core/test/test_opencl.cpp
Line 123 in 85b0fb2
and
opencv/modules/core/test/test_opencl.cpp
Line 164 in 85b0fb2
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
answers.opencv.org, Stack Overflow, etc and have not found solution