Fix compiler errors

pull/707/head
peng xiao 12 years ago
parent 9698079ca5
commit 7476bf5cd7
  1. 4
      modules/nonfree/src/surf.ocl.cpp

@ -75,8 +75,8 @@ namespace cv
}
size_t wave_size = 0;
queryDeviceInfo(DEVICE_INFO::WAVEFRONT_SIZE, &wave_size);
sprintf(pSURF_OPTIONS, " -D WAVE_SIZE=%d", static_cast<int>(wave_size));
queryDeviceInfo(WAVEFRONT_SIZE, &wave_size);
std::sprintf(pSURF_OPTIONS, " -D WAVE_SIZE=%d", static_cast<int>(wave_size));
OPTION_INIT = true;
}
openCLExecuteKernel(clCxt, source, kernelName, globalThreads, localThreads, args, channels, depth, SURF_OPTIONS);

Loading…
Cancel
Save