mirror of
https://github.com/opencv/opencv.git
synced 2025-06-16 06:40:49 +08:00
Merge pull request #2923 from alalek:ocl_default_device_ignore_cpu
This commit is contained in:
commit
0e534b5a25
@ -2228,6 +2228,7 @@ static cl_device_id selectOpenCLDevice()
|
|||||||
if (!isID)
|
if (!isID)
|
||||||
{
|
{
|
||||||
deviceTypes.push_back("GPU");
|
deviceTypes.push_back("GPU");
|
||||||
|
if (configuration)
|
||||||
deviceTypes.push_back("CPU");
|
deviceTypes.push_back("CPU");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user