WO2014188073A1 - Memory unit for emulated shared memory architectures - Google Patents
Memory unit for emulated shared memory architectures Download PDFInfo
- Publication number
- WO2014188073A1 WO2014188073A1 PCT/FI2014/050391 FI2014050391W WO2014188073A1 WO 2014188073 A1 WO2014188073 A1 WO 2014188073A1 FI 2014050391 W FI2014050391 W FI 2014050391W WO 2014188073 A1 WO2014188073 A1 WO 2014188073A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- memory
- data
- thread
- cache
- processor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0806—Multiuser, multiprocessor or multiprocessing cache systems
- G06F12/0842—Multiuser, multiprocessor or multiprocessing cache systems for multiprocessing or multitasking
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0806—Multiuser, multiprocessor or multiprocessing cache systems
- G06F12/0813—Multiuser, multiprocessor or multiprocessing cache systems with a network or matrix configuration
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30003—Arrangements for executing specific machine instructions
- G06F9/3004—Arrangements for executing specific machine instructions to perform operations on memory
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/38—Concurrent instruction execution, e.g. pipeline or look ahead
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/38—Concurrent instruction execution, e.g. pipeline or look ahead
- G06F9/3836—Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution
- G06F9/3851—Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution from multiple instruction streams, e.g. multistreaming
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/52—Program synchronisation; Mutual exclusion, e.g. by means of semaphores
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0806—Multiuser, multiprocessor or multiprocessing cache systems
- G06F12/084—Multiuser, multiprocessor or multiprocessing cache systems with a shared cache
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1016—Performance improvement
- G06F2212/1021—Hit rate improvement
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1016—Performance improvement
- G06F2212/1024—Latency reduction
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/15—Use in a specific computing environment
- G06F2212/151—Emulated environment, e.g. virtual machine
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/60—Details of cache memory
- G06F2212/6042—Allocation of cache space to multiple users or processors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/60—Details of cache memory
- G06F2212/608—Details relating to cache mapping
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/62—Details of cache specific to multiprocessor cache arrangements
Definitions
- the present invention pertains to computer science and computer architectures.
- the invention relates to the optimization of memory access and multi(-prefix)operations in connection with emulated shared memory architectures.
- SMAs shared memory architecture
- data and program partitioning is typically carried out by placing data requiring processing by multiple threads into the shared memory and splitting program more independently to processors, thus making programming easier compared to message passing (MP A) architectures in which processing happens always locally and the programmer is responsible for moving data around accordingly.
- MP A message passing
- SMAs use a distributed shared memory architecture consisting of multiple interconnected processor- cache pairs, which makes cache coherency (and therefore latency tolerance) and synchronicity maintenance very expensive. This may even ruin their performance in communication intensive problems.
- ESM emulated shared memory
- shared memory emulation architectures have been introduced. They incorporate a set of multithreaded processors that are connected via a high-throughput intercommunication network to a common uniformly and synchronously accessible shared memory.
- the memory system latency is hidden by overlapping on-going memory references and a special low-cost synchronization mechanism is estab- lished guaranteeing synchronicity at machine instruction level.
- the ESM systems provide the user with perception of ideal shared memory even though the actual hardware architecture comprises a physically distributed memory.
- PRAM parallel random access machine
- ESM is a feasible technique to address programmability and per- formance scalability concerns of chip multiprocessors (CMP) as it yields implied synchrony in the execution of machine instructions, efficient latency hiding technique, and sufficient bandwidth to route all the memory references even with heavy random and concurrent access workloads.
- CMP chip multiprocessors
- Synchronous execution is considered to make programming easier as a programmer does not need to synchro- nize the threads of execution explicitly after each global memory access but can rely on the hardware to take care of that automatically, whereas e.g. in message passing architectures (MP A), a programmer is responsible for explicitly defining communication, synchronizing subtasks, and describing data and program partitioning between threads making MPAs difficult to program.
- MP A message passing architectures
- Latency hiding used in shared memory emulation makes use of the high- throughput computing scheme, where other threads are executed while a thread refers to the global shared memory. Since the throughput computing scheme employs parallel slackness extracted from the available thread-level parallelism, it is considered to provide enhanced scalability in contrast to traditional symmetric multiprocessors and non-uniform memory access (NUMA) systems relying on snooping or directory- based cache coherence mechanisms and therefore suffering from limited bandwidth or directory access delays and heavy coherence traffic maintenance.
- NUMA non-uniform memory access
- Step Caches a Novel Approach to Concurrent Memory Access on Shared Memory MP-SOCs, In the Proceedings of the 23th IEEE NORCHIP Conference, November 21-22, 2005, Oulu, Finland, 74-77, 2: M.
- For- sell Reducing the associativity and size of step caches in CRCW operation, In the Proceeding of 8th Workshop on Advances in Parallel and Distributed Computational Models (in conjunction with the 20 th IEEE International Parallel and Distributed Processing Symposium, IPDPS ' 06), April 25, 2006, Rhodes, Greece, 3: M.
- Multi(-prefix)operations can be defined for many basic operations, e.g. ADD, SUB, MAX etc., and considered as parallel primitives due to the capability to express parallel algorithms. They can be used for synchronization and parallel data structures simultaneously ac- Stepd by several processors without race conditions and other anomalies of architectures executing threads asynchronously.
- a high-level illustration of a scalable architecture to emulate shared memory on a silicon platform is shown. It comprises a set of processors (cores) PI, P2, P3,...,Pp 102 connected to a physically distributed, but logically shared (data) memory Ml , M2, M3,...,Mp 1 12 via a physically scalable high bandwidth interconnection network 108.
- Active memory units 1 10 in connection with data memory 1 12 can be considered as memory control logic units utilized to process the memory references.
- the active memory units 1 10 are arranged to manage computation related to cases in which multiple memory references are targeted to the same memory location during e.g. multi(-prefix) operations, for instance.
- Instruction memory modules II, 12, 13,..., Ip 104 are configured to carry the program code for each processor 102.
- the processors 102 are multithreaded utilizing a Tp-stage cyclic, interleaved inter-thread pipeline (Tp > the average latency of the network).
- Tp Tp > the average latency of the network.
- the PRAM model is linked to the architecture such that a full cycle in the pipeline corresponds typically to a single PRAM step.
- each thread of each processor of the CMP executes an instruction including at most one shared memory reference sub-instruction. Therefore a step lasts for multiple, at least Tp +1 clock cycles.
- step caches are generally associative memory buffers in which data stays valid only to the end of ongoing step of multithreaded execution.
- the main contribution of step caches to concurrent accesses is that they step-wisely filter out everything but the first reference for each referenced memory location. This reduces the number of requests per location from P Tp down to P allowing them to be processed sequentially on a single ported memory module assuming Tp>P.
- Scratchpads are addressable memory buffers that are used to store memory access data to keep the associativity of step caches limited in implementing multioperations with the help of step caches and minimal on- core and off-core ALUs (arithmetic logic unit) that take care of actual intra- processor and inter-processor computation for multioperations.
- Scratchpads may be coupled with step caches to establish so-called scratchpad step cache units SI, S2, S3,...,Sp 106.
- One underlying idea of the reviewed solution is indeed in the allocation of each processor core 102 with a set of threads that are executed efficiently in an interleaved manner and hiding the latency of the network. As a thread makes a memory reference, the executed thread is changed and the next thread can make its memory request and so on. No memory delay will occur provided that the re- ply of the memory reference of the thread arrives to the processor core before the thread is put back to execution. This requires that the bandwidth of the network is high enough and hot spots can be avoided in pipelined memory access traffic. Synchronicity between consecutive instructions can be guaranteed by using an elastic synchronization wave between the steps, for instance.
- Fig. 2 shows, at 200, one illustration of an ESM CMP architecture incorporating e.g. the aforementioned active memory units 1 12B (with ALU and fetcher) in connection with data memory modules 1 12 and scratchpads 206B.
- the network 108 may be a mesh-like interconnection network acting as a high-bandwidth pipelined memory system with switches 108B.
- the memory access latency is hidden by executing other threads while a thread is referencing the uniformly accessible distributed shared memory via the network 108. Congestion of references and hot spots in communication are avoided with an efficient dead-lock free intercommunication architecture featuring high bandwidth (bisection BW > P/4) and randomized hashing of memory locations over the distributed memory modules.
- MU memory unit
- REPLICA REmoving Performance and programmability Limitations of Chip multiprocessor Architectures
- Fig. 3 represents, at 300, a high-level block diagram and pipeline of a typical MCRCW ESM processor making use of step caches.
- a processor in a step cache - based MCRCW (C)ESM CMP comprises A ALUs, M memory units (MU), a distributed or unified register block, a sequencer and some glue logic.
- Ax 302 refers to ALU x
- IF 308 refers to instruction fetch logic
- MEM 304 refers to memory unit stage
- OS 306 refers to operand selection logic
- SEQ 310 refers to sequencer.
- there are ALUs 302 logically positioned prior to and after the memory unit wait segment.
- a (baseline) MU comprises a hash and compose unit (HCU) 402, send logic 410, dual array step cache 404, scratchpad 406, reply receive logic 412 and receive ALU 414.
- HCU hash and compose unit
- the HCU 402 is responsible for computing the hash address for memory references and composing the outgoing memory reference messages out of memory data given in the MDR (memory data register) register, memory address given in the MAR (memory address register) register, thread identifier, memory operation from the operation register, and LSBs of the current step provided by a step counter.
- the send logic 410 accesses the step cache 404 and scratchpad 406 and sends the reference (memory request) on its way to the shared memory system 408 or calculates the internal memory operation result against the scratchpad data and gives the result as a fast reply directly to the reply receive logic 412.
- the reply receive logic 412 is configured to receive incoming memory request reply messages from the shared memory system and send logic 410 (fast reply). It compares the address fields of these two and tries to set the received data regis- ters of the threads in the receive logic. Two comparators per pipeline stage are needed because both replies and send logic data are moving against each other.
- Step caches 404 (in which data stays valid only to the end of ongoing step of multithreaded execution) are utilized for implementing C CW access to the shared memory 408 without cache coherence problems by filtering processor and step -wisely out everything but the first references for each referenced memory location as mentioned hereinbefore.
- Each cache line preferably contains data, initiator (thread id of the first thread referring to the location specified by the address), and address tags.
- Two cache arrays and two ports are needed since the MU needs to access step cache from both send and receive stages of the pipeline that may carry threads belonging to different steps.
- a step cache search is performed.
- a hit is detected on a cache line if the line is in use, the address matches the ad- dress tag of the line, and the least significant bits of the current step of the reference match the two LSBs of the step of the line.
- a hit a write is just ignored while a read is just completed by accessing the data from the cache.
- the reference is stored into the cache using the replacement policy and marked as pending (for reads).
- the reference itself is sent to the shared memory system 408.
- scratch- pads In order to implement multi(-prefix)operations with step caches of limited associativity, separate dual port processor-level multioperation memories, scratch- pads, 406 are used. This is because there is a need to store the id of the initiator thread of each multioperation sequence to the step cache and internal initiator thread id register as well as reference information to a storage that saves the information regardless of possible conflicts that may wipe away information on references from the step cache.
- the scratchpad 406 has fields for data, address and pending for each thread of the processor.
- Multioperations can be implemented by using sequences of two instructions so that data to be written in the step cache 404 is also written to the scratchpad 406, id of the first thread referencing a certain location is stored to the step cache 406 and the Initiator register (for the rest of references), the pending bit for multioperations is kept in the scratchpad 406, the reply data is stored to the scratchpad 406, and reply data for the ending operation is retrieved from the scratchpad 406 (see Algorithm 1 in Table 1 below).
- Table 1 Algorithm 1 Implementation of a two- step MP ADD multioperation in
- PROCEDURE Processor ::Execute::BMPADD ( Write_data , Write_Address )
- StepCache[matching_index].data : Write_data
- StepCache[matching_index].initiator_thread : Thread_id
- Read_data : StepCache [matching_index] .data
- StepCache[matching_index].data: Write_data + Read_data
- Initiator_thread StepCache [matching_index].Initiator_thread
- PROCEDURE Processor ::Execute::EMPADD ( Write_data , Write_Address )
- Read_data Write_data + ScratchPad[Initiator_thread].
- PROCEDURE Module ::Commit_access::EMPADD ( Data , Address )
- the starting operation (BMPxxx for arbitrary ordered multiprefix operations) executes a processor-wise multioperation against a step cache location without making any reference to the external memory system.
- the ending operation (EMPxxx for arbitrary ordered multi-prefix operations) performs the rest of the multioperation so that the first reference to a previously initialized memory location triggers an external memory reference using the processor-wise multioperation result as an operand.
- the external memory references that are targeted to the same location may be processed in the active memory units of the corresponding memory modules according to the type of the multioperation and the reply data is sent back to the scratchpads of participating processors.
- the objective is to at least alleviate one or more problems described hereinabove not yet fully satisfactorily addressed by the known ESM arrangements, and to provide a feasible solution for enhanced memory access therein.
- a memory unit for handling data memory references of a multi-threaded processor with interleaved inter- thread pipeline in emulated shared memory (ESM) architectures comprising a step cache defining associative cache memory array in which data stays valid till the end of ongoing step of multithreaded execution, said memory array incorporating a plurality of cache lines with data fields, each line, preferably exclusively, containing a data field for address tag and a data field thread id of the first thread referring to a data memory location specified by the address tag, a scratchpad defining a memory buffer for storing internal data of multiopera- tions, such as intermediate results, said buffer including, preferably exclusively, a single data field for each thread of the processor, wherein the memory unit is configured to access the step cache for a cache search and scratchpad for retrieving or storing said internal data at different clock cycles and different stages of the processor pipeline during multioperation execution involving data
- ESM emulated shared memory
- the memory unit is configured to, in response to a data memory reference by a thread of the processor, access the step cache to determine whether an address matching the referenced memory address is found on the basis of address tags stored therein, and if this is the case, i.e. in the case of cache hit, to retrieve the thread id from the thread id data field of the step cache line of the matching address, and conversely, in the case of cache miss, to store the thread id of the current thread and address tag corresponding to the referenced memory address in the step cache using a predetermined data replacement policy.
- the memory unit further comprises a reply receive buffer for storing received memory reference data for the threads. The buffer is configured to receive incoming (reply) messages from the shared memory system.
- the reply receive buffer may be a multiport buffer and contain e.g. two data arrays and two ports to accommodate data and e.g. 'pending' fields regarding two consecutive steps, whereupon the buffer is at least implicitly step-aware or step addressable. Further, thread id is preferably utilized for accessing the data.
- step data may be stored using e.g. a thread-specific data field or register.
- memory reference messages preferably include a field for step data.
- the memory unit is configured to, in the case of step cache miss in connection with memory write or read operation, send a memory reference to a shared memory system for storing therein or retrieving the referenced data via the reply receive buffer, respectively, in the case of step cache hit in connection with write operation, to ignore the write operation, and in the case of step cache hit in connection with read operation, to pick up the result from the reply receive buffer with the retrieved or stored thread id.
- the memory unit is configured, in connection with a multioperation, to access the scratchpad, i.e. store data thereto and retrieve data therefrom, with the retrieved or stored thread id in order to calculate an intra- processor multioperation result, and to send it to the shared memory system, wherein the memory unit may be further configured to utilize both data received in the reply receive buffer from the shared memory system and said intra- processor result to determine the final multioperation result (multi-prefix).
- the memory unit is provided with a hash and compose unit (HCU) configured to access the step cache as described herein.
- the hash and compose unit is preferably coupled to the step cache via an access port, preferably a single access port potentially configured for exclusive use by the hash and compose unit.
- the hash and compose unit may be configured to a construct a memory reference message based on at least one element selected from the group consisting of: the memory operation indicated by the processor (e.g. in the operation register), memory address given (e.g. in the MAR register), memory data given (e.g. in the MDR register), thread id, least significant bits (LSBs) of the step counter, and the outcome of the step cache access (i.e. nature of the outcome of the cache search, depending on whether it was a hit or miss).
- the memory operation indicated by the processor e.g. in the operation register
- memory address e.g. in the MAR register
- memory data e.g. in the MDR register
- LSBs least significant
- the step cache may be implemented as a multi-way set associative step cache.
- the addresses therein may be hashed optionally utilizing a randomly selected hashing function, for example.
- the HCU is then utilized to compute the hash address for a memory reference.
- the memory unit is provided with a memory request send logic entity configured to access the scratchpad as described herein.
- the scratchpad may be accessed via an access port, preferably a single access port potentially configured for exclusive use by the send logic entity.
- the send logic entity may be configured to send the memory references to the shared memory system in accordance with the memory messages provided by the hash and compose unit. Based on the memory operation, the send logic may be configured to determine intermediate results, or intra-processor results, of multi- operations and provide the internal data such as the outcome of internal memory (multi)operation as a (fast) reply towards the reply receive buffer preferably via a memory reply wait queue.
- the memory unit further comprises a reply wait queue associated with a number of pipeline stages, which queue connects the memory request send logic entity and the reply receive buffer so that e.g. fast replies from the send logic may be funneled in proper order towards to the reply receive buffer to timely retrieve the related memory reference result received from the shared memory and to subsequently derive the final result using a receive ALU.
- a reply wait queue associated with a number of pipeline stages, which queue connects the memory request send logic entity and the reply receive buffer so that e.g. fast replies from the send logic may be funneled in proper order towards to the reply receive buffer to timely retrieve the related memory reference result received from the shared memory and to subsequently derive the final result using a receive ALU.
- a method for handling data memory refer- ences of a multi-threaded processor provided with interleaved inter-thread pipeline in emulated shared memory (ESM) architectures comprising obtaining a step cache (504) defining associative cache memory array in which data stays valid till the end of ongoing step of multithreaded execution, said memory array incorporating a plurality of cache lines with data fields, each line, preferably exclusively, containing a data field for address tag and a data field thread id of the first thread referring to a data memory location specified by the address tag, obtaining a scratchpad (506) defining a memory buffer for storing internal data of multioperations, such as intermediate results, said buffer including, preferably exclusively, a single data field for each thread of the processor, and accessing the step cache for a cache search and scratchpad to retrieve and/or store said internal data at different clock cycles and different stages of the processor pipeline during multioperation execution involving data memory references by the processor.
- a step cache defining associative cache memory array in which data
- the utility of the present invention arises from a plurality of issues depending on each particular embodiment thereof.
- simultaneous memory references to a single memory address are implemented by means of step caches so that ref- erences by each processor are advantageously reduced to one during a single step of multi-threaded execution.
- Scratchpad memory is cleverly utilized to store intermediate data of multi-(prefix)operations.
- multioperation may generally refer herein to associative cumulative operations such as actual multi-prefixes or other otherwise corresponding opera- tions but having no return values sent back to processors in contrast to multi- prefixes, i.e. just the content of the target memory location being thus altered.
- Fig. 1 is a block diagram of a feasible scalable architecture to emulate shared memory on a silicon platform.
- Fig. 2 is another representation of a feasible ESM architecture, essentially CMP ESM architecture.
- Fig. 3 is a high-level block diagram and pipeline representation of an embodiment of an MCRCW ESM processor.
- Fig. 4 illustrates a prior art version of a memory unit for a processor in MCRCW ESM CMP architecture.
- Fig. 5 illustrates an embodiment of a memory unit for ESM architectures in ac- cordance with the present invention.
- Fig. 6 illustrates an embodiment of a method in accordance with the present invention.
- the memory unit (MU) in accordance with an embodiment of the present invention may be generally utilized in connection with an ESM computer architecture to implement e.g. CMP (chip multiprocessor) or MP-SOC (multiprocessor sys- tern on chip) system comprising a plurality of processor cores with dedicated instruction memories, associative step caches (retaining data inserted therein until the end of on-going step of multithreaded execution as managed by step-aware replacement policy) and non-associative (thread-addressed) scratchpad buffers attached to processors, and a physically distributed but logically shared data memory coupled via a high-bandwidth network such as a multi-mesh interconnection network to the processors (cores).
- the network connects processors to distributed memory modules so that sufficient throughput and tolerable latency can be achieved for random communication patterns with a high enough proba- bility.
- Memory locations may be distributed across the data modules by a randomly or pseudo-randomly chosen polynomial.
- the architecture preferably implements concurrent memory access for advanced parallel algorithms, multioperations for computing prefixes and reductions optionally in constant time. Multioperations may be implemented as a sequence of multiple, optionally two, consecutive instructions.
- first intra-processor multi-prefixes may be first determined, whereupon processor-wise results may be transmitted to active memory modules of the distributed shared memory elements to determine inter-processor multi-prefixes thereat (one result per processor) based on which the final multi-prefixes may be determined again within the processors themselves.
- the MU 500 comprises a hash and compose unit (HCU) 502, memory reference send logic entity 510, single array step cache 504, scratchpad 506, reply wait queue 512b, receive buffer 512 and receive ALU 512c.
- HCU hash and compose unit
- the HCU 502 may compute the hash addresses for memory references, compose the out- going memory reference messages based on the memory data given in the MDR register, memory address given in the MAR register, thread identifier, memory operation from the operation register and a predetermined number of LSBs of the step counter, as well as access the step cache to determine the status of the memory reference (already referenced or not by any thread during the current step of multithreaded execution).
- the memory reference send logic 510 accesses the scratchpad 506 and sends the reference on its way to the shared memory system or calculates the internal memory operation result utilizing the data in the scratchpad and yields the result as a (fast) reply to the memory reply wait queue 512b.
- the reply receive buffer 512 receives incoming reply messages from the shared memory system 508 and is also accessed by the last stage of the multi- stage reply wait queue 512b to determine if a reply with the same initiator (thread id) has already arrived. In the negative case the pipeline can be suspended until the reply arrives. Otherwise, the reply is subjected to further processing in the receive ALU 512c depending on the operation.
- the reply buffer 512 advantageously contains exclusively or at least two data arrays and two ports since it stores pending bits and data from two consecutive steps of multi-threaded execution.
- Each line in the step cache 504 associated with a processor may contain just the initiator and address tags. Single cache array and one access port is enough since the MU 500 needs to access the step cache 504 only from a single stage.
- a step cache search is performed. A hit is detected on a cache line if the line is in use and the address tag matches the tag of the line. In the case of a hit, a write is just ignored while a read is completed by accessing the initiator data from the cache and retrieving the result from the reply receive buffer (no reason to send the reference to the shared memory as this has been already done by the initiator thread).
- the thread id is stored to the initiator field of the cache using the applied predetermined replacement policy.
- the reference itself is sent to the shared memory system 508 and a pending bit is set.
- the data is put to the data field of the reply receive buffer 512 and the corresponding pending bit is cleared.
- Predetermined cache decay logic is used to invalid the lines between the steps of multithreaded execution.
- Scratchpad 506 associated with the processor has also been redesigned such that the second port is eliminated and each scratchpad line may have a field for just data for each thread of the processor.
- Multioperations are preferably implemented by using sequences of two instructions so that internal data is written to the scratchpad 506, initiator is stored to the step cache 504 and a so-called Initiator register (for linking the rest of references therewith, not shown in the figure), whereas the pending bit for multioperations is kept in the reply receive buffer 512 rather than in the scratchpad 506, the reply data is stored to the reply receive buffer 512 rather than to the step cache 504 or scratchpad 506, and the reply data for the ending operation of a multioperation is retrieved from the reply receive buffer 512 rather than from the step cache 504 or scratchpad 506 (see Algorithm 2 in Table 2 for an example).
- PROCEDURE Processor ::Execute::BMPADD ( Write_data , Write_Address )
- StepCache[matching_initiator]. address : Write_Address
- StepCache[matching_initiator].initiator_thread : Thread_id
- Read_data ScratchPad[lnitiator_thread].data
- PROCEDURE Processor ::Execute::EMPADD ( Write_data , Write_Address )
- PROCEDURE Module ::Commit_access::EMPADD ( Data , Address )
- PROCEDURE Processor :Receive_reply::EMPADD ( Data , Address , Thread )
- a step cache is obtained at 604, defining an associative cache memory array in which data stays valid till the end of ongoing step of multithreaded execution, said memory array incorporating a plurality of cache lines with data fields, each line, preferably exclusively, containing a data field for address tag and a data field thread id of the first thread referring to a data memory location specified by the address tag.
- a scratchpad is obtained, defining a memory buffer for storing internal data of multioperations, such as intermediate results, said buffer including, preferably exclusively, a single data field for each thread of the processor.
- step cache is accessed 610 for a cache search and scratchpad is accessed 612 to retrieve and/or store said internal data at different clock cycles and different stages of the processor pipeline during multioperation execution involving data memory references by the processor.
- shared memory access, operations on the references and results bypass may take place at 614.
- the shown items may be repeatedly executed in order to process different threads and new instructions as indicated by the dotted loop-back arrow in the figure. Seq 618 refers to instruction/program sequencing.
- the method execution is ended, which typically takes place upon termination of program code execution.
- the mutual ordering and overall presence of the method items of the method diagrams disclosed above may be altered by a skilled person based on the requirements set by each particular use scenario and e.g. requirements set by the memory operation associated with the instruction under execution. Consequently, a skilled person may, on the basis of this disclosure and general knowledge, apply the provided teachings in order to implement the scope of the present invention as defined by the appended claims in each particular use case with necessary modifications, deletions, and additions, if any.
- the various principles set forth herein may be also utilized in processor architectures diverging from the one explicitly described, as being understood by the persons skilled in the art.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Mathematical Physics (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
Claims
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020157035775A KR102254585B1 (en) | 2013-05-22 | 2014-05-21 | Memory unit for emulated shared memory architectures |
| CN201480041469.8A CN105393210B (en) | 2013-05-22 | 2014-05-21 | Memory unit and method for handling data memory references |
| US14/892,446 US10073782B2 (en) | 2013-05-22 | 2014-05-21 | Memory unit for data memory references of multi-threaded processor with interleaved inter-thread pipeline in emulated shared memory architectures |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP13168732.9A EP2806361B1 (en) | 2013-05-22 | 2013-05-22 | Memory unit for emulated shared memory architectures |
| EP13168732.9 | 2013-05-22 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2014188073A1 true WO2014188073A1 (en) | 2014-11-27 |
Family
ID=48520716
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/FI2014/050391 Ceased WO2014188073A1 (en) | 2013-05-22 | 2014-05-21 | Memory unit for emulated shared memory architectures |
Country Status (5)
| Country | Link |
|---|---|
| US (1) | US10073782B2 (en) |
| EP (1) | EP2806361B1 (en) |
| KR (1) | KR102254585B1 (en) |
| CN (1) | CN105393210B (en) |
| WO (1) | WO2014188073A1 (en) |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3188025A1 (en) | 2015-12-29 | 2017-07-05 | Teknologian Tutkimuskeskus VTT Oy | Memory node with cache for emulated shared memory computers |
| EP3497624A1 (en) | 2016-08-13 | 2019-06-19 | Intel Corporation | Apparatuses, methods, and systems for neural networks |
| US10956360B2 (en) * | 2017-03-14 | 2021-03-23 | Azurengine Technologies Zhuhai Inc. | Static shared memory access with one piece of input data to be reused for successive execution of one instruction in a reconfigurable parallel processor |
| EP3671457B1 (en) * | 2018-12-21 | 2025-06-25 | Flow-computing Oy | Method and arrangement for handling memory access for a tcf-aware processor |
| US11030115B2 (en) * | 2019-06-27 | 2021-06-08 | Lenovo Enterprise Solutions (Singapore) Pte. Ltd | Dataless cache entry |
| CN112100121B (en) * | 2020-11-17 | 2021-02-12 | 北京壁仞科技开发有限公司 | Computing device, computing equipment and programmable scheduling method |
| CN112948287B (en) * | 2021-03-29 | 2023-06-20 | 成都新易盛通信技术股份有限公司 | A method and system for reading and writing SD card based on Hashmap cache mechanism |
| KR20240145630A (en) | 2023-03-28 | 2024-10-07 | 에스케이하이닉스 주식회사 | Storage device that caching data segment in hash-based data segment cache and operating method of the storage device |
| WO2025095324A1 (en) * | 2023-10-31 | 2025-05-08 | 포항공과대학교 산학협력단 | Controller for memory expansion, memory expansion device, and data processing method therefor |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US506512A (en) | 1893-10-10 | Territory |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6279100B1 (en) * | 1998-12-03 | 2001-08-21 | Sun Microsystems, Inc. | Local stall control method and structure in a microprocessor |
| US6574725B1 (en) * | 1999-11-01 | 2003-06-03 | Advanced Micro Devices, Inc. | Method and mechanism for speculatively executing threads of instructions |
| US6651163B1 (en) * | 2000-03-08 | 2003-11-18 | Advanced Micro Devices, Inc. | Exception handling with reduced overhead in a multithreaded multiprocessing system |
| US6912621B2 (en) * | 2002-04-17 | 2005-06-28 | International Business Machines Corporation | Method and apparatus for updating data in mass storage subsystem using emulated shared memory |
| US8756404B2 (en) | 2006-12-11 | 2014-06-17 | International Business Machines Corporation | Cascaded delayed float/vector execution pipeline |
| US9183145B2 (en) * | 2009-04-27 | 2015-11-10 | Intel Corporation | Data caching in a network communications processor architecture |
| US9218290B2 (en) * | 2009-04-27 | 2015-12-22 | Intel Corporation | Data caching in a network communications processor architecture |
| KR101565172B1 (en) * | 2010-01-15 | 2015-11-02 | 삼성전자주식회사 | Apparatus and method for processing data of massively parallel processor array system |
-
2013
- 2013-05-22 EP EP13168732.9A patent/EP2806361B1/en active Active
-
2014
- 2014-05-21 KR KR1020157035775A patent/KR102254585B1/en active Active
- 2014-05-21 WO PCT/FI2014/050391 patent/WO2014188073A1/en not_active Ceased
- 2014-05-21 CN CN201480041469.8A patent/CN105393210B/en active Active
- 2014-05-21 US US14/892,446 patent/US10073782B2/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US506512A (en) | 1893-10-10 | Territory |
Non-Patent Citations (7)
| Title |
|---|
| FORSELL M: "Reducing the Associativity and Size of Step Caches in CRCW Operation", PROCEEDINGS. 20TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM (IEEE CAT. NO.06TH8860), IEEE PISCATAWAY, NJ, USA, 25 April 2006 (2006-04-25), pages 1 - 7, XP010920496, ISBN: 978-1-4244-0054-6, DOI: 10.1109/IPDPS.2006.1639546 * |
| M. FORSELL: "Realizing Multioperations for Step Cached MP-SOCs", PROCEEDINGS OF THE INTERNATIONAL SYMPOSIUM ON SYSTEM-ON-CHIP 2006 (SOC'06, 14 November 2006 (2006-11-14), pages 77 - 82 |
| M. FORSELL: "Reducing the associativity and size of step caches in CRCW operation", PROCEEDING OF 8TH WORKSHOP ON ADVANCES IN PARALLEL AND DISTRIBUTED COMPUTATIONAL MODELS (IN CONJUNCTION WITH THE 20TH IEEE INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM, IPDPS'06, 25 April 2006 (2006-04-25) |
| M. FORSELL: "Step Caches-a Novel Approach to Concurrent Memory Access on Shared Memory MP-SOCs", PROCEEDINGS OF THE 23TH IEEE NORCHIP CONFERENCE, 21 November 2005 (2005-11-21), pages 74 - 77 |
| M. FORSELL: "TOTAL ECLIPSE-An Efficient Architectural Realization of the Parallel Random Access Machine", PARALLEL AND DISTRIBUTED COMPUTING EDITED BY ALBERTO ROS, IN-TECH, 2010, pages 39 - 64 |
| M. FORSELL; J. ROIVAINEN: "Supporting Ordered Multiprefix Operations in Emulated Shared Memory CMPs", PROCEEDINGS OF THE 2011 INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED PROCESSING TECHNIQUES AND APPLICATIONS (PDPTA' 1, 18 July 2011 (2011-07-18) |
| MARTTI FORSELL ET AL: "TOTAL ECLIPSE-An Efficient Architectural Realization of the Parallel Random Access Machine", 1 January 2010 (2010-01-01), pages 39 - 64, XP055089190, ISBN: 978-9-53-307057-5, Retrieved from the Internet <URL:http://cdn.intechopen.com/pdfs/10755/InTech-Total_eclipse_an_efficient_architectural_realization_of_the_parallel_random_access_machine.pdf> [retrieved on 20131119], DOI: 10.5772/56724 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105393210A (en) | 2016-03-09 |
| EP2806361A1 (en) | 2014-11-26 |
| EP2806361B1 (en) | 2020-03-04 |
| US20160124856A1 (en) | 2016-05-05 |
| KR102254585B1 (en) | 2021-05-24 |
| KR20160010580A (en) | 2016-01-27 |
| CN105393210B (en) | 2018-11-13 |
| US10073782B2 (en) | 2018-09-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20240004666A1 (en) | Floating-point supportive pipeline for emulated shared memory architectures | |
| EP2806361B1 (en) | Memory unit for emulated shared memory architectures | |
| EP2808783B1 (en) | Smart cache and smart terminal | |
| US11061817B2 (en) | Memory node with cache for emulated shared memory computers | |
| Tran et al. | High throughput parallel implementation of Aho-Corasick algorithm on a GPU | |
| CN106030517B (en) | Architecture for emulating long latency operations in a shared memory architecture | |
| EP4481573A1 (en) | Computing device with distributed object storage | |
| CN113348446B (en) | Method and apparatus for handling memory accesses of a TCF-aware processor | |
| WO1996020440A1 (en) | Dual processor decoupling | |
| Chaudhry et al. | A case for the multithreaded processor architecture | |
| Paakkulainen et al. | Outline of risc-based core for multiprocessor on chip architecture supporting moving threads | |
| Welch et al. | Synchronisation in a Multithreaded Processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| WWE | Wipo information: entry into national phase |
Ref document number: 201480041469.8 Country of ref document: CN |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14739208 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 14892446 Country of ref document: US |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| ENP | Entry into the national phase |
Ref document number: 20157035775 Country of ref document: KR Kind code of ref document: A |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 14739208 Country of ref document: EP Kind code of ref document: A1 |