fix a crash on Linux

pull/937/head
yao 12 years ago
parent d81c145fa9
commit 15a213d3fc
  1. 2
      modules/ocl/src/pyrlk.cpp

@ -142,7 +142,7 @@ static void lkSparse_run(oclMat &I, oclMat &J,
int wave_size = queryDeviceInfo<WAVEFRONT_SIZE, int>(kernel);
openCLSafeCall(clReleaseKernel(kernel));
static char opt[16] = {0};
static char opt[32] = {0};
sprintf(opt, " -D WAVE_SIZE=%d", wave_size);
openCLExecuteKernel(clCxt, &pyrlk, kernelName, globalThreads, localThreads,

Loading…
Cancel
Save