projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d81c145
)
fix a crash on Linux
author
yao
<bitwangyaoyao@gmail.com>
Fri, 31 May 2013 07:35:54 +0000
(15:35 +0800)
committer
yao
<bitwangyaoyao@gmail.com>
Fri, 31 May 2013 07:35:54 +0000
(15:35 +0800)
modules/ocl/src/pyrlk.cpp
patch
|
blob
|
history
diff --git
a/modules/ocl/src/pyrlk.cpp
b/modules/ocl/src/pyrlk.cpp
index
a3e65dd
..
8e94204
100644
(file)
--- a/
modules/ocl/src/pyrlk.cpp
+++ b/
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,