Let wave_size=1 on CPU.

This commit is contained in:
peng xiao 2013-04-16 14:41:30 +08:00
parent 2ae3ab11e3
commit 6f63a5d8d5

View File

@ -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
{