mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 11:45:30 +08:00
Fix the problem of device selection on hybrid video systems.
This commit is contained in:
parent
5022bc8c25
commit
8cc5b98051
@ -115,10 +115,9 @@ int main(int argc, char **argv)
|
|||||||
std::cout << "platform invalid\n";
|
std::cout << "platform invalid\n";
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if(pid != 0 || device != 0)
|
|
||||||
{
|
setDevice(oclinfo[pid], device);
|
||||||
setDevice(oclinfo[pid], device);
|
|
||||||
}
|
|
||||||
cout << "Device type:" << type << endl << "Device name:" << oclinfo[pid].DeviceName[device] << endl;
|
cout << "Device type:" << type << endl << "Device name:" << oclinfo[pid].DeviceName[device] << endl;
|
||||||
return RUN_ALL_TESTS();
|
return RUN_ALL_TESTS();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user