mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
Let wave_size=1 on CPU.
This commit is contained in:
parent
2ae3ab11e3
commit
6f63a5d8d5
@ -366,6 +366,13 @@ namespace cv
|
||||
{
|
||||
case WAVEFRONT_SIZE:
|
||||
{
|
||||
bool is_cpu = false;
|
||||
queryDeviceInfo(IS_CPU_DEVICE, &is_cpu);
|
||||
if(is_cpu)
|
||||
{
|
||||
*(int*)info = 1;
|
||||
return;
|
||||
}
|
||||
#ifdef CL_DEVICE_WAVEFRONT_WIDTH_AMD
|
||||
try
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user