1. Field of the Invention
The present invention is related to processing systems and processors, and more specifically to techniques for processing multiple instruction streams in a slice-based processor core.
2. Description of Related Art
In present-day processor cores, pipelines are used to execute multiple hardware threads corresponding to multiple instruction streams, so that more efficient use of processor resources can be provided through resource sharing and by allowing execution to proceed even while one or more hardware threads are waiting on an event.
In existing systems, specific resources and pipelines are typically allocated for execution of the different instruction streams and multiple pipelines allow program execution to continue even during conditions when a pipeline is busy. However, resources are still tied up for pipelines that are busy, and when all the pipeline(s) assigned to an instruction stream are busy, the instruction stream is stalled, reducing the potential throughput of the processor core.
It would therefore be desirable to provide a processor core and a method for processing program instructions that provide improved flexibility and throughput.
The invention is embodied in a method, computer system and computer program product. The method is a method of operation of the computer system, and the computer program product includes program instructions for carrying out the steps of the method.
The method detects an event corresponding to dispatch of an instruction of one of multiple instruction streams that mapping between multiple parallel instruction execution slices and the instruction streams should be changed due to a change in resource availability or requirements for execution of a subsequent instruction of the instruction stream. In response to detecting the event, which may be an instruction wider than the individual instruction execution slices, a single-instruction-multiple-data (SIMD) instruction, or busy condition at an instruction execution slice currently executing instructions for the instruction stream, at least a portion of a subsequent instruction for the instruction stream is dispatched to a selected one of the instruction execution slices that was assigned to another instruction stream during the previous execution cycle. The event detection and dispatching may be controlled by the processor, or the program code for the instruction streams may be generated by a compiler that inserts a directive corresponding to the event to control the dispatch, or the program code may be modified by a thread scheduler of the operating system that preprocesses the instruction stream program code to insert directives.
The foregoing and other objectives, features, and advantages of the invention will be apparent from the following, more particular, description of the preferred embodiment of the invention, as illustrated in the accompanying drawings.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives, and advantages thereof, will best be understood by reference to the following detailed description of the invention when read in conjunction with the accompanying Figures, wherein like reference numerals indicate like components, and:
The present invention relates to processors and processing systems in which conventional pipelines are replaced with instruction execution slices that can be assigned arbitrarily to execute instructions. In particular, when an instruction execution slice executing a current instruction for a stream is busy, and in which instruction execution slices can be combined on-the-fly to execute either wider instructions or single-instruction-multiple-data (SIMD) instructions requiring multiple instruction execution slices to handle the multiple data. Also when an instruction execution slice is busy waiting on an external event, or executing a lengthy instruction or multiple instructions, another instruction execution slice may be used to execute one or more subsequent instructions for the instruction stream that would otherwise be held up waiting for the end of the busy condition. In particular, when an event corresponding to a wide instruction, SIMD instruction or busy condition is encountered or expected, dispatch of the instructions for the instruction streams can be modified to effectively use processor core resources to process the SIMD or wide instructions and to avoid stalls due to the busy condition where resources are otherwise available. The dispatch can be modified on-the-fly in response to detecting the event by processor control logic, or the dispatch can be modified in response to software cues, such as directives embedded in the program code by compiler or thread sequencer, or by a separate dispatch control stream.
Referring now to
Referring now to
The load-store portion of the instruction execution cycle, (i.e., the operations performed to maintain cache consistency as opposed to internal register reads/writes), is performed by a plurality of cache slices LS0-LS7, which are coupled to instruction execution slices ES0-ES7 by a write-back (result) routing network 24. In the depicted embodiment, any of cache slices LS0-LS7 can be used to perform load-store operation portion of an instruction for any of instruction execution slices ES0-ES7, but that is not a requirement of the invention. Instruction execution slices ES0-ES7 may issue internal instructions concurrently to multiple pipelines, e.g., an instruction execution slice may simultaneously perform an execution operation and a load/store operation and/or may execute multiple arithmetic or logical operations using multiple internal pipelines. The internal pipelines may be identical, or may be of discrete types, such as floating-point, scalar, load/store, etc. Further, a given execution slice may have more than one port connection to write-back routing network 24, for example, a port connection may be dedicated to load-store connections to cache slices LS0-LS7, while another port may be used to communicate values to and from other slices, such as special-purposes slices, or other instruction execution slices. Write-back results are scheduled from the various internal pipelines of instruction execution slices ES0-ES7 to write-back port(s) that connect instruction execution slices ES0-ES7 to write-back routing network 24. A load-store routing network 28 couples cache slices LS0-LS7 to provide conversion transfers for execution of SIMD instructions, processing of instructions with data width greater than a width of cache slices LS0-LS7 and other operations requiring translation or re-alignment of data between cache slices LS0-LS7. An I/O routing network 26 couples cache slices LS0-LS7 to a pair of translation slices XS0, XS1 that provide access to a next higher-order level of cache or system memory that may be integrated within, or external to, processor core 20. While the illustrated example shows a matching number of cache slices LS0-LS7 and execution slices ES0-ES7, in practice, a different number of each type of slice can be provided according to resource needs for a particular implementation. As mentioned above, dispatch routing network 22 is a unidirectional network, but can also take the form of a cross-point network as shown, as may load-store routing network 28 and I/O routing network 26.
Referring now to
Referring now to
Referring now to
The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention. The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Referring now to
Referring now to
As noted above, portions of the present invention may be embodied in a computer program product, e.g., a program executed by a processor having program instructions that direct some or all of the operations outlined above. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention. The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per Se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device. Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions. These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks. The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
While the invention has been particularly shown and described with reference to the preferred embodiments thereof, it will be understood by those skilled in the art that the foregoing and other changes in form, and details may be made therein without departing from the spirit and scope of the invention.
The present Application is a Continuation of U.S. patent application Ser. No. 14/302,589, filed on Jun. 12, 2014, which is a Continuation of U.S. patent application Ser. No. 14/274,942, filed on May 12, 2014. The present U.S. Patent Application claims priority to the above-cited U.S. Patent Applications under 35 U.S.C. § 120. The disclosure of the above-referenced parent U.S. Patent Application is incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
4858113 | Saccardi | Aug 1989 | A |
5055999 | Frank et al. | Oct 1991 | A |
5095424 | Woffinden et al. | Mar 1992 | A |
5471593 | Branigin | Nov 1995 | A |
5475856 | Kogge | Dec 1995 | A |
5553305 | Gregor et al. | Sep 1996 | A |
5630149 | Bluhm | May 1997 | A |
5680597 | Kumar et al. | Oct 1997 | A |
5822602 | Thusoo | Oct 1998 | A |
5996068 | Dwyer, III et al. | Nov 1999 | A |
6026478 | Dowling | Feb 2000 | A |
6044448 | Agrawal et al. | Mar 2000 | A |
6073215 | Snyder | Jun 2000 | A |
6073231 | Bluhm et al. | Jun 2000 | A |
6092175 | Levy et al. | Jul 2000 | A |
6112019 | Chamdani et al. | Aug 2000 | A |
6119203 | Snyder et al. | Sep 2000 | A |
6138230 | Hervin et al. | Oct 2000 | A |
6145054 | Mehrotra et al. | Nov 2000 | A |
6381676 | Aglietti et al. | Dec 2000 | B2 |
6170051 | Dowling | Jan 2001 | B1 |
6212544 | Borkenhagen et al. | Apr 2001 | B1 |
6237081 | Le et al. | May 2001 | B1 |
6286027 | Dwyer, III et al. | Sep 2001 | B1 |
6311261 | Chamdani et al. | Oct 2001 | B1 |
6336183 | Le et al. | Jan 2002 | B1 |
6356918 | Chuang et al. | Mar 2002 | B1 |
6425073 | Roussel | Jul 2002 | B2 |
6463524 | Delaney et al. | Oct 2002 | B1 |
6487578 | Ranganathan | Nov 2002 | B2 |
6549930 | Chrysos et al. | Apr 2003 | B1 |
6564315 | Keller et al. | May 2003 | B1 |
6728866 | Kahle et al. | Apr 2004 | B1 |
6732236 | Favor | May 2004 | B2 |
6839828 | Gschwind et al. | Jan 2005 | B2 |
6847578 | Ranganathan | Jan 2005 | B2 |
6868491 | Moore | Mar 2005 | B1 |
6883107 | Rodgers et al. | Apr 2005 | B2 |
6944744 | Ahmed et al. | Sep 2005 | B2 |
6948051 | Rivers et al. | Sep 2005 | B2 |
6954846 | Leibholz et al. | Oct 2005 | B2 |
6978459 | Dennis et al. | Dec 2005 | B1 |
7020763 | Saulsbury et al. | Mar 2006 | B2 |
7024543 | Grisenthwaite et al. | Apr 2006 | B2 |
7086053 | Long et al. | Aug 2006 | B2 |
7093105 | Webb, Jr. et al. | Aug 2006 | B2 |
7100028 | McGrath et al. | Aug 2006 | B2 |
7114163 | Hardin et al. | Sep 2006 | B2 |
7124160 | Saulsbury et al. | Oct 2006 | B2 |
7155600 | Burky et al. | Dec 2006 | B2 |
7191320 | Hooker et al. | Mar 2007 | B2 |
7263624 | Marchand et al. | Aug 2007 | B2 |
7290261 | Burky et al. | Oct 2007 | B2 |
7302527 | Barrick et al. | Nov 2007 | B2 |
7386704 | Schulz et al. | Jun 2008 | B2 |
7395419 | Gonion | Jul 2008 | B1 |
7398374 | DeLano | Jul 2008 | B2 |
7469318 | Chung et al. | Dec 2008 | B2 |
7478198 | Latorre et al. | Jan 2009 | B2 |
7478225 | Brooks et al. | Jan 2009 | B1 |
7490220 | Balasubramonian et al. | Feb 2009 | B2 |
7512724 | Dennis et al. | Mar 2009 | B1 |
7565652 | Janssen et al. | Jul 2009 | B2 |
7600096 | Parthasarathy et al. | Oct 2009 | B2 |
7669035 | Young et al. | Feb 2010 | B2 |
7669036 | Young et al. | Feb 2010 | B2 |
7694112 | Barowski et al. | Apr 2010 | B2 |
7707390 | Ozer et al. | Apr 2010 | B2 |
7721069 | Ramchandran et al. | May 2010 | B2 |
7793278 | Du et al. | Sep 2010 | B2 |
7836317 | Marchand et al. | Nov 2010 | B2 |
7889204 | Hansen et al. | Feb 2011 | B2 |
7890735 | Tran | Feb 2011 | B2 |
7926023 | Okawa et al. | Apr 2011 | B2 |
7975134 | Gonion | Jul 2011 | B2 |
7979677 | Nguyen | Jul 2011 | B2 |
7987344 | Hansen et al. | Jul 2011 | B2 |
8028152 | Glew | Sep 2011 | B2 |
8041928 | Burky et al. | Oct 2011 | B2 |
8046566 | Abernathy et al. | Oct 2011 | B2 |
8074224 | Nordquist et al. | Dec 2011 | B1 |
8099556 | Ghosh et al. | Jan 2012 | B2 |
8103852 | Bishop et al. | Jan 2012 | B2 |
8108656 | Katragadda | Jan 2012 | B2 |
8135942 | Abernathy et al. | Mar 2012 | B2 |
8140832 | Mejdrich et al. | Mar 2012 | B2 |
8141088 | Morishita et al. | Mar 2012 | B2 |
8166282 | Madriles et al. | Apr 2012 | B2 |
8219783 | Hara | Jul 2012 | B2 |
8250341 | Schulz et al. | Aug 2012 | B2 |
8335892 | Minkin et al. | Dec 2012 | B1 |
8386751 | Ramchandran et al. | Feb 2013 | B2 |
8412914 | Gonion | Apr 2013 | B2 |
8464025 | Yamaguchi et al. | Jun 2013 | B2 |
8489791 | Byrne et al. | Jul 2013 | B2 |
8555039 | Rychlik | Oct 2013 | B2 |
8578140 | Yokoi | Nov 2013 | B2 |
8656401 | Venkataramanan et al. | Feb 2014 | B2 |
8683182 | Hansen et al. | Mar 2014 | B2 |
8713263 | Bryant | Apr 2014 | B2 |
8732438 | Caprioli et al. | May 2014 | B2 |
8850121 | Ashcraft et al. | Sep 2014 | B1 |
8949572 | Kurosawa et al. | Feb 2015 | B2 |
8966232 | Tran | Feb 2015 | B2 |
8984264 | Karlsson et al. | Mar 2015 | B2 |
9207995 | Boersma et al. | Dec 2015 | B2 |
9223709 | O'Bleness et al. | Dec 2015 | B1 |
9323739 | Nicholson et al. | Apr 2016 | B2 |
9424045 | Airaud et al. | Aug 2016 | B2 |
9519484 | Stark | Dec 2016 | B1 |
9672043 | Eisen | Jun 2017 | B2 |
20020194251 | Richter et al. | Dec 2002 | A1 |
20030120882 | Granston et al. | Jun 2003 | A1 |
20040111594 | Feiste et al. | Jun 2004 | A1 |
20040181652 | Ahmed | Sep 2004 | A1 |
20040216101 | Burky et al. | Oct 2004 | A1 |
20050138290 | Hammarlund et al. | Jun 2005 | A1 |
20060095710 | Pires Dos Reis Moreira et al. | May 2006 | A1 |
20070022277 | Iwamura et al. | Jan 2007 | A1 |
20070079303 | Du | Apr 2007 | A1 |
20080098260 | Okawa | Apr 2008 | A1 |
20080313424 | Gschwind | Dec 2008 | A1 |
20090113182 | Abernathy et al. | Apr 2009 | A1 |
20120246450 | Abdallah | Sep 2012 | A1 |
20150134935 | Blasco | May 2015 | A1 |
20150324204 | Eisen et al. | Nov 2015 | A1 |
20150324205 | Eisen et al. | Nov 2015 | A1 |
20150324206 | Eisen et al. | Nov 2015 | A1 |
20150324207 | Eisen | Nov 2015 | A1 |
20160070571 | Boersma et al. | Mar 2016 | A1 |
20160070574 | Boersma et al. | Mar 2016 | A1 |
20160092231 | Chu et al. | Mar 2016 | A1 |
20160092276 | Chu et al. | Mar 2016 | A1 |
20160103715 | Sethia et al. | Apr 2016 | A1 |
20160202986 | Ayub et al. | Jul 2016 | A1 |
20160202988 | Ayub et al. | Jul 2016 | A1 |
20160202989 | Eisen et al. | Jul 2016 | A1 |
20160202990 | Brownscheidle et al. | Jul 2016 | A1 |
20160202991 | Eisen et al. | Jul 2016 | A1 |
20160202992 | Brownscheidle et al. | Jul 2016 | A1 |
Number | Date | Country |
---|---|---|
101021778 | Aug 2007 | CN |
101676865 | Mar 2010 | CN |
101876892 | Nov 2010 | CN |
102004719 | Apr 2011 | CN |
Entry |
---|
List of IBM Patents or Patent Applications Treated as Related, 3 pages. |
Pechanek, et al., “ManArray Processor Interconnection Network: An Introduction”, Euro-Par' 99 Parallel Processing, Lecture Notes in Computer Science, 5th International Euro-Par Conference, Aug.31-Sep. 3, 1999 Proceedings, pp. 761-765, vol. 1685, Spring Berlin Heidelberg, Toulouse, France. |
Pechanek, et al., “The ManArray Embedded Processor Architecture”,Proceedings of the 26th Euromicro Conference, IEEE Computer Society, Sep. 5-7, 2000, pp. 348-355, vol. 1, Maastricht. |
Gebhart et al., “A Hierarchical Thread Scheduler and Register File for Energy-Efficient Throughput Processors”, ACM Transactions on Computer Systems, vol. 30, No. 2, Article 8, Publication date: Apr. 2012, pp. 8:1-8:38, © 2012 ACM, <http://doi.acm.org/10.1145/2166879.2166882>. |
“Method and system for Implementing “Register Threads” in a Simultaneously-Multithreaded (SMT) Processor Core”, An IP.com Prior Art Database Technical Disclosure, Authors et. al.: Disclosed Anonymously, IP.com No. IPCOM000199825D, IP.com Electronic Publication: Sep. 17, 2010, pp. 1-4, <http://ip.com/IPCOM/000199825>. |
Czajkowski, et al., “Resource Management for Extensible Internet Servers”, Proceedings of the 8th ACM SIGOPS European Workshop on Support for Composing Distributed Applications, Sep. 1998, pp. 33-39, ACM, Portugal. |
Bridges, et al., “A CPU Utilization Limit for Massively Parallel MIMD Computers”, Fourth Symposium on the Frontiers of Massively Parallel Computing, Oct. 19-21, 1992, pp. 83-92, IEEE, VA, US. |
Office Action in U.S. Appl. No. 14/274,942 dated Mar. 9, 2016, 36 pages (pp. 1-36 in pdf). |
Final Office Action in U.S. Appl. No. 14/274,942 dated Aug. 12, 2016, 24 pages (pp. 1-24 in pdf). |
Notice of Allowance in U.S. Appl. No. 14/274,942 dated Oct. 21, 2016, 8 pages (pp. 1-8 in pdf). |
Notice of Allowance in U.S. Appl. No. 14/274,942 dated Jan. 30, 2017, 11 pages (pp. 1-11 in pdf). |
Office Action in U.S. Appl. No. 14/302,589 dated Mar. 9, 2016, 26 pages (pp. 1-26 in pdf). |
Final Office Action in U.S. Appl. No. 14/302,589 dated Aug. 12, 2016, 22 pages (pp. 1-22 in pdf). |
Notice of Allowance in U.S. Appl. No. 14/302,589 dated Nov. 9, 2016, 16 pages (pp. 1-16 in pdf). |
Notice of Allowance in U.S. Appl. No. 14/302,589 dated Feb. 17, 2017, 18 pages (pp. 1-18 in pdf). |
Gebhart et al., “A Hierarchical Thread Scheduler and Register File for Energy-Efficient Throughput Processors”, ACM Transactions on Computer Systems, Apr. 2012, pp. 8:1-8:38, (38 pages in pdf),vol. 30, No. 2, Article 8, ACM. |
U.S. Appl. No. 15/805,267, filed Nov. 7, 2017, Chu, et al. |
Number | Date | Country | |
---|---|---|---|
20170168837 A1 | Jun 2017 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14302589 | Jun 2014 | US |
Child | 15442810 | US | |
Parent | 14274942 | May 2014 | US |
Child | 14302589 | US |