SAD (sum of absolute difference) vectorization realization method oriented to vector processor
A technology of a vector processor and an implementation method, which is applied to the implementation field of SAD vectorization, can solve the problems of a large amount of calculation, a single chip cannot meet application requirements, etc., and achieves the effects of low cost, shortened operation time, and convenient operation.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0030] The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.
[0031] Such as figure 1 Shown, the vector processor-oriented SAD vectorization implementation method of the present invention comprises the following steps:
[0032] 1. Let the real-time graph A be MxN in size, the template graph B be mxn in size, and M>m, N>n; the vector processor includes P processing units.
[0033] 2. The vector processor traverses the real-time graph A and accesses the sub-graph A whose two headers in the real-time graph A are separated by 4 elements and whose vector length is 4*p uv and A (u+4)v , through the shuffling operation, 4 adjacent subgraphs A with a head interval of 1 element and a length of 4*p are obtained (u+k)v (k=0, 1, 2, 3).
[0034] Such as figure 2 As shown, taking the number of PEs equal to 2 as an example to illustrate how to obtain 4 adjacent subgraphs whose heads are separated by 1 el...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 