heuristic for Intel
This commit is contained in:
parent
eba1be711c
commit
1e5694e082
@ -4414,6 +4414,12 @@ int predictOptimalVectorWidth(InputArray src1, InputArray src2, InputArray src3,
|
|||||||
d.preferredVectorWidthShort(), d.preferredVectorWidthShort(),
|
d.preferredVectorWidthShort(), d.preferredVectorWidthShort(),
|
||||||
d.preferredVectorWidthInt(), d.preferredVectorWidthFloat(),
|
d.preferredVectorWidthInt(), d.preferredVectorWidthFloat(),
|
||||||
d.preferredVectorWidthDouble(), -1 }, width = vectorWidths[depth];
|
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)
|
if (ssize.width * cn < width || width <= 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user