Method and apparatus for executing program code
Abstract
The described embodiments provide a system that executes program code. While executing program code, the processor encounters at least one vector instruction and at least one vector-control instruction. The vector instruction includes a set of elements, wherein each element is used to perform an operation for a corresponding iteration of a loop in the program code. The vector-control instruction identifies elements in the vector instruction that may be operated on in parallel without causing an error due to a runtime data dependency between the iterations of the loop. The processor then executes the loop by repeatedly executing the vector-control instruction to identify a next group of elements that can be operated on in the vector instruction and selectively executing the vector instruction to perform the operation for the next group of elements in the vector instruction, until the operation has been performed for all elements of the vector instruction.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 34 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for executing program code in a processor that includes a mechanism for executing vector instructions, comprising: while executing program code, encountering at least one vector instruction for performing at least one operation in a loop in the program code, wherein each element in a set of elements in the vector instruction is used to perform the operation for a corresponding iteration of the loop, and at least one vector-control instruction that uses runtime data dependency information to identify elements in the vector instruction that may be operated on in parallel without causing
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
References Cited — Backward Prior Art (34)
Non-Patent Literature (3)
- Jesshope, Chris; "Implementing an efficient vector instruction set in a chipe multi-processor using micro-threaded pipelines", IEEE © 2001, pp. 80-88.
- Krashinsky, Ronny; Batten, Christopher; Hampton, Mark; Gerding, Steve; Pharris, Brian; Casper, Jared; and Asanovic, Krste; "The Vector-Thread Architecture", IEEE © 2004, Proceedings of the 31st Annual International Symposium on Computer Architecture (ISCA '04).
- Tanenbaum, Andrew S., "Structured Computer Organization", © 1984, Prentice-Hall, Inc., Second Edition, pp. 10-12.