projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eba1be7
)
heuristic for Intel
author
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Mon, 12 May 2014 08:45:52 +0000
(12:45 +0400)
committer
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Mon, 12 May 2014 12:08:39 +0000
(16:08 +0400)
modules/core/src/ocl.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/ocl.cpp
b/modules/core/src/ocl.cpp
index e3cfd8e7cd099afb692acc81c482b3504bd08bc5..ec0efe554ae31e630e9d0aa36880a8313e04773f 100644
(file)
--- a/
modules/core/src/ocl.cpp
+++ b/
modules/core/src/ocl.cpp
@@
-4414,6
+4414,12
@@
int predictOptimalVectorWidth(InputArray src1, InputArray src2, InputArray src3,
d.preferredVectorWidthShort(), d.preferredVectorWidthShort(),
d.preferredVectorWidthInt(), d.preferredVectorWidthFloat(),
d.preferredVectorWidthDouble(), -1 }, width = vectorWidths[depth];
+ if (d.isIntel())
+ {
+ // it's heuristic
+ int vectorWidthsIntel[] = { 16, 16, 8, 8, 1, 1, 1, -1 };
+ width = vectorWidthsIntel[depth];
+ }
if (ssize.width * cn < width || width <= 0)
return 1;