Merge pull request #937 from bitwangyaoyao:2.4_fixPyrLK
This commit is contained in:
commit
e0c2daadbf
@ -142,7 +142,7 @@ static void lkSparse_run(oclMat &I, oclMat &J,
|
|||||||
int wave_size = queryDeviceInfo<WAVEFRONT_SIZE, int>(kernel);
|
int wave_size = queryDeviceInfo<WAVEFRONT_SIZE, int>(kernel);
|
||||||
openCLSafeCall(clReleaseKernel(kernel));
|
openCLSafeCall(clReleaseKernel(kernel));
|
||||||
|
|
||||||
static char opt[16] = {0};
|
static char opt[32] = {0};
|
||||||
sprintf(opt, " -D WAVE_SIZE=%d", wave_size);
|
sprintf(opt, " -D WAVE_SIZE=%d", wave_size);
|
||||||
|
|
||||||
openCLExecuteKernel(clCxt, &pyrlk, kernelName, globalThreads, localThreads,
|
openCLExecuteKernel(clCxt, &pyrlk, kernelName, globalThreads, localThreads,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user