Commit 6f63a5d8 authored by peng xiao's avatar peng xiao

Let wave_size=1 on CPU.

parent 2ae3ab11
...@@ -366,6 +366,13 @@ namespace cv ...@@ -366,6 +366,13 @@ namespace cv
{ {
case WAVEFRONT_SIZE: 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 #ifdef CL_DEVICE_WAVEFRONT_WIDTH_AMD
try try
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment