pull/916/head
yao 12 years ago
parent d45f9ef866
commit c58e0d5d73
  1. 3
      modules/ocl/src/hog.cpp

@ -1578,7 +1578,8 @@ static void openCLExecuteKernel_hog(Context *clCxt , const char **source, string
size_t globalThreads[3], size_t localThreads[3],
vector< pair<size_t, const void *> > &args)
{
size_t wave_size = queryDeviceInfo<WAVEFRONT_SIZE, size_t>();
cl_kernel kernel = openCLGetKernelFromSource(clCxt, source, kernelName);
size_t wave_size = queryDeviceInfo<WAVEFRONT_SIZE, size_t>(kernel);
if (wave_size <= 16)
{
char build_options[64];

Loading…
Cancel
Save