Let wave_size=1 on CPU.

pull/825/head
peng xiao 12 years ago
parent 2ae3ab11e3
commit 6f63a5d8d5
  1. 7
      modules/ocl/src/initialization.cpp

@ -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…
Cancel
Save