Skip to content

Commit

Permalink
Merge pull request opencv#2932 from ilya-lavrenov:tapi_other_vendors
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Jul 3, 2014
2 parents d183554 + 2fe07ab commit 964b260
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/core/src/ocl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4437,11 +4437,13 @@ int predictOptimalVectorWidth(InputArray src1, InputArray src2, InputArray src3,
d.preferredVectorWidthShort(), d.preferredVectorWidthShort(),
d.preferredVectorWidthInt(), d.preferredVectorWidthFloat(),
d.preferredVectorWidthDouble(), -1 }, kercn = vectorWidths[depth];
if (d.isIntel())

// if the device says don't use vectors
if (vectorWidths[0] == 1)
{
// it's heuristic
int vectorWidthsIntel[] = { 16, 16, 8, 8, 1, 1, 1, -1 };
kercn = vectorWidthsIntel[depth];
int vectorWidthsOthers[] = { 16, 16, 8, 8, 1, 1, 1, -1 };
kercn = vectorWidthsOthers[depth];
}

if (ssize.width * cn < kercn || kercn <= 0)
Expand Down

0 comments on commit 964b260

Please sign in to comment.