System and method for computing with multiple nodes

By initiating global synchronization commands and utilizing global storage instructions in multi-node computing systems, data synchronization and consistency issues are solved, processing efficiency and accuracy are improved, and data up-to-dateness and consistency are ensured.

CN118656337APending Publication Date: 2024-09-17SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410291192.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-10-09
Filing Date
2024-03-14
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In multi-node computing systems, existing technologies are difficult to effectively synchronize data, leading to data consistency issues and low processing efficiency. Especially when data is exchanged and updated between multiple nodes, it may lead to stale or incorrect use of data.

Method used

By initiating global synchronization commands between nodes, ensure that all nodes complete time step synchronization before performing data read and write operations, use global storage instructions and refresh instructions to update data in the global memory, and invalidate the corresponding data in the cache entries to ensure data consistency and up-to-dateness.

Benefits of technology

It achieves efficient synchronization and consistency of data in multi-node computing systems, avoids data obsolescence and incorrect use, and improves processing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656337A_ABST
    Figure CN118656337A_ABST
Patent Text Reader

Abstract

Systems and methods for computing with multiple nodes. In some embodiments, a method includes reading, by a first node of a plurality of nodes, a first data value from a shared memory shared by the plurality of nodes; modifying, by the first node, the first data value; storing, by the first node, the modified first data value in a cache of the first node; initiating a global synchronization command by the first node; and in response to initiation of the global synchronization command by the first node: indicating, by the first node, that the first node has completed time step synchronization.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to and the benefit of (i) U.S. Provisional Application No. 63 / 452,114, filed on March 14, 2023, entitled “SELECTIVE INVALIDATE CACHE,” and (ii) U.S. Provisional Application No. 63 / 455,554, filed on March 29, 2023, entitled “TIME STEPPED GLOBALSHARED MEMORY,” the entire contents of both applications being incorporated herein by reference. Technical Field

[0003] One or more aspects of embodiments according to the present disclosure relate to computing systems, and more particularly, to systems and methods for utilizing multiple nodes for computing. Background Art

[0004] In order to increase the processing power of computing systems, it may be advantageous to assemble a large number of computing systems that are able to exchange data with each other.

[0005] Aspects of the present disclosure are related to an overall technical environment. Summary of the invention

[0006] According to an embodiment of the present disclosure, a method is provided, comprising: reading, by a first node among a plurality of nodes, a first data value from a shared memory shared by the plurality of nodes; modifying, by the first node, the first data value; storing, by the first node, the modified first data value in a cache of the first node; initiating, by the first node, a global synchronization command; and in response to initiation of the global synchronization command by the first node: indicating, by the first node, that the first node has completed time step synchronization.

[0007] In some embodiments, the method further comprises flushing, by the first node, the modified first data value to the shared memory.

[0008] In some embodiments, the method further includes invalidating, by the first node, a portion of a cache of the first node.

[0009] In some embodiments, the portion of the cache is the entirety of the cache.

[0010] In some embodiments, the portion of the cache excludes constant values.

[0011] In some embodiments, the portion of the cache excludes protected data values.

[0012] In some embodiments, the method also includes: reading a second data value from a shared memory by the first node; storing the second data value in the cache of the first node by the first node; and in response to initiation of the global synchronization command by the first node: performing an initial read of the second data value as a global load operation, the global load operation including reading the second data value from the shared memory.

[0013] In some embodiments, the method further includes: determining that a second data value is in a cache of the first node; and overwriting the second data value in the cache of the first node with the second data value read by the initial read.

[0014] In some embodiments, the method further includes not reading from the shared memory by the first node until the first node has received an indication from other nodes of the plurality of nodes that time step synchronization is complete.

[0015] In some embodiments, indicating includes incrementing a count in a memory, and receiving the indication that the time step synchronization is complete includes reading from the memory a value equal to the number of nodes in the plurality of nodes.

[0016] According to an embodiment of the present disclosure, a system is provided, comprising: a processing circuit; and a memory operably coupled to the processing circuit, the memory storing instructions, which, when executed by the processing circuit, cause the processing circuit to perform a method, the method comprising: reading a first data value from a shared memory; modifying the first data value; storing the modified first data value in a cache; initiating a global synchronization command; and in response to the initiation of the global synchronization command: indicating that time step synchronization has been completed.

[0017] In some embodiments, the system further comprises flushing the modified first data value to the shared memory.

[0018] In some embodiments, the system further includes invalidating a portion of the cache.

[0019] In some embodiments, the portion of the cache is the entirety of the cache.

[0020] In some embodiments, the portion of the cache excludes constant values.

[0021] In some embodiments, the portion of the cache excludes protected data values.

[0022] In some embodiments, the system further comprises: reading a second data value from a shared memory; storing the second data value in the cache; and in response to the initiation of the global synchronization command: performing an initial read of the second data value as a global load operation, the global load operation comprising reading the second data value from the shared memory.

[0023] In some embodiments, the system further comprises: determining that the second data value is in the cache; and overwriting the second data value in the cache with the second data value read by the initial read.

[0024] In some embodiments, the system further comprises not reading from the shared memory until an indication has been received from the plurality of nodes that time step synchronization is complete.

[0025] According to an embodiment of the present disclosure, a system is provided, comprising: a device for processing; and a memory operably coupled to the device for processing, the memory storing instructions, which, when executed by the device for processing, cause the device for processing to perform a method, the method comprising: reading a first data value from a shared memory; modifying the first data value; storing the modified first data value in a cache; initiating a global synchronization command; and in response to the initiation of the global synchronization command: indicating that time step synchronization has been completed. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] These and other features and advantages of the present disclosure will be appreciated and understood by reference to the specification, claims, and drawings, in which:

[0027] Figure 1 is a system-level block diagram according to an embodiment of the present disclosure;

[0028] Figure 2A is a block diagram of a cache line with a comparator according to an embodiment of the present disclosure;

[0029] Figure 2B is a block diagram of a cache line with associated logic according to an embodiment of the present disclosure;

[0030] Figure 2C is a block diagram of a cache line with associated logic according to an embodiment of the present disclosure;

[0031] Figure 2D is a block diagram of a cache line with associated logic according to an embodiment of the present disclosure;

[0032] Figure 2E is a block diagram of a system for selective cache invalidation according to an embodiment of the present disclosure;

[0033] Figure 3A is a block diagram of a system for mapping a global virtual address according to an embodiment of the present disclosure;

[0034] Figure 3B is a block diagram of a portion of a system for mapping a global virtual address according to an embodiment of the present disclosure;

[0035] Figure 4 is a block diagram of a system for tracking access violations according to an embodiment of the present disclosure;

[0036] Figure 5A is a block diagram of a global atom with update and trigger operations according to an embodiment of the present disclosure;

[0037] Figure 5B is a block diagram of global load and broadcast operations according to an embodiment of the present disclosure; and

[0038] Figure 5C is a block diagram of global storage and broadcast operations according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0039] The detailed description set forth below in conjunction with the accompanying drawings is intended to be a description of an exemplary embodiment of a system and method for calculating using multiple nodes provided according to the present disclosure, and is not intended to represent a unique form that can be constructed or utilized. This description sets forth the features of the present disclosure in conjunction with the illustrated embodiments. However, it should be understood that the same or equivalent functions and structures can be implemented by different embodiments that are also intended to be included within the scope of the present disclosure. As shown elsewhere herein, the same element numbers are intended to represent the same elements or features.

[0040] Figure 1 1 is a block diagram of a computing system in some embodiments. A plurality of nodes 105 are connected together via a network 110. Each node includes one or more central processing units (CPUs) 115, one or more caches 120, a global memory portion 125, and a local memory 130. For ease of description, Figure 1 Three nodes are shown in ; some embodiments may include fewer (eg, two) nodes or more (eg, tens, hundreds, or thousands) nodes.

[0041] Within each node, cache coherence may be maintained by the node's hardware, and as used herein, a "node" is a computing system in which cache coherence is maintained by hardware.

[0042] The local memory of each node 105 may be accessed only by the CPU 115 (or multiple CPUs 115) of the node 105. The global memory segment 125 of each node 105 may be accessed by all nodes 105, including the node 105 in which the global memory segment 125 resides (referred to as the "home node"). The global memory segments 125 of all nodes may together form a single global memory, and a single physical global address space may be used to address data within the global memory.

[0043] In operation, one or more threads may be running on each node 105. It may be advantageous for threads to share data; for example, a first thread running on a first node may generate data that is then saved at a specified address in global memory and read and consumed by a second thread running on a second node. In this case, it may be advantageous for the second thread to avoid reading from a specified address in global memory before the first thread generates the data and saves the data to the specified address in global memory.

[0044] Therefore, for the purpose of data exchange, various methods can be used to ensure synchronization between threads. Such methods are explained here for a computing system including three nodes 105, each node 105 including a single cache 120 and a single CPU 115 running a single thread. In this way, each thread is associated with a single cache, and the cache of the thread (or the cache associated with the thread) means the cache 120 of the CPU 115 on which the thread runs. The synchronization method explained here can be generalized to a computing system with more nodes 105, more than one cache 120 per node, more than one CPU 115 per node, and more than one thread per CPU 115.

[0045] For example, each node 105 may (e.g., a thread running on each node may) (i) initiate a global synchronization command, (ii) flush all modified values ​​from its cache 120 to the global memory, (iii) invalidate a portion (e.g., all) of its cache 120, (iv) indicate to other nodes that it has completed time step synchronization, and (v) wait for other nodes 105 to similarly indicate that they have completed time step synchronization before subsequently reading from the global memory (e.g., before executing further instructions). During the period when normal processing is stopped, this sequence of steps may be referred to as a global synchronization operation. As used herein, "initiating" a global synchronization operation means any action that causes a read operation from the global memory (including a read operation from a cached copy of the global memory) to be temporarily stopped. As used herein, a "time step" is the interval between two consecutive global synchronization operations. As used herein, when a node has "completed time step synchronization", this means that the node is ready to resume normal processing and is waiting for each other node to complete time step synchronization if necessary. A global synchronization command may be an instruction or set of instructions in code executed by a thread running on a node. For example, it may be a dedicated machine instruction implemented in CPU 115 to perform global synchronization, or it may be a read or write operation to a dedicated memory address mapped to dedicated hardware in node 105, or it may be a function call to execute a function participating in global synchronization.

[0046] If the producer thread is configured to transfer data to the consumer thread by storing the data at a specified memory address in the global memory, the global synchronization operation can prevent the extraction of data from the global memory by the consumer thread before the data to be extracted has been stored by the producer thread. For example, the first thread (producer thread) can generate an intermediate result and save it (e.g., in its cache), and then execute the global synchronization command. The consumer thread can first execute the corresponding global synchronization command, and then obtain the data generated by the producer thread for further processing. As part of the global synchronization operation, the producer thread can refresh the intermediate result to the global memory, and the consumer thread can invalidate its cache (so that if the previous value taken from the global memory is stored in the cache of the consumer thread, it will not be used). The consumer thread can then wait until all other nodes 105 have completed the global synchronization operation before continuing its processing. This waiting can ensure that the value in the specified memory address has been updated by the producer thread when the consumer thread resumes processing, and the invalidation of the cache of the consumer thread can ensure that the consumer thread obtains an updated value from the specified memory address in the global memory when it reads the intermediate result (rather than a potential stale value from its cache).

[0047] In some embodiments, instead of (or in addition to) flushing the cache of the producer thread and invalidating the cache of the consumer thread, special load and store instructions referred to herein as global load instructions and global store instructions may be used. A global load instruction may fetch data from global memory even if the data is already in the cache, and it may replace the cached value with the fetched value. A global store instruction may store data in global memory (even if the address where the data is being stored is currently in the cache). Word enable bits in network on chip (NOC) and switch transactions may be used to perform read-modify-write of a target last level cache (LLC) cache line. In embodiments where the producer thread uses a global store instruction and the consumer thread uses a global load instruction, a global synchronization operation may include (i) initiating a global synchronization command (ii) an indication by a node that it has completed time step synchronization (i.e., it is ready to resume normal processing) and (iii) waiting until all other nodes have indicated that they have completed time step synchronization.

[0048] If the producer thread stores the intermediate result in the specified memory address of the global memory using a global store instruction before (or as part of the global synchronization operation), and if the consumer thread reads the intermediate result from the specified memory address of the global memory using a global load instruction when performing an initial read after the global synchronization operation, the producer thread may not need to flush its cache, and the consumer thread may not need to invalidate its cache. The software running on the node 105 ensures that the last store instruction before the global synchronization operation is a global store instruction and the first read after the global synchronization operation is a global read instruction. The addresses in the global memory and the data stored at these addresses may be referred to as "protected" addresses and "protected" data, respectively.

[0049] Other global commands that can be used include global refresh instructions, global invalidation instructions, and global refresh and invalidation instructions. The global refresh instruction can dump and refresh all modified copies of global data in the local cache hierarchy to the global memory without invalidating it. The global invalidation instruction can invalidate all copies of global data in the cache hierarchy without refreshing the modified copies. The global refresh and invalidation instructions can invalidate all copies of global data in the local cache hierarchy and refresh all modified copies back to the global memory. Override bits can be set for selected memory regions (in the global address tuple (GAT) table (discussed in further detail below)), which convert global refresh and global invalidation instructions into global refresh and invalidation instructions for the region. Copies of global data in L1 and L1.5 caches can always be invalidated in global synchronization operations, and even for global refresh and global invalidation instructions, modified copies can be refreshed to L2.

[0050] Various communication methods between nodes 105 may be used as part of a global synchronization operation. For example, each node may perform a global atomic read-modify-write (discussed in further detail below) of a counter value at a specified address in global memory (e.g., to increment the counter by 1) when it has completed refreshing and invalidating the cache (or, in embodiments where the cache is not refreshed or invalidated, when it has completed time step synchronization), and each node 105 may then periodically read the value at the address (e.g., using a global load operation to avoid reading a cached value) until the counter equals the number of participating nodes. In such embodiments, one of the nodes (e.g., the home node of the memory containing the specified address) may reset the counter to zero at the beginning of each global synchronization operation.

[0051] In some embodiments, a method for efficient invalidation of cached data is used. As described above, as part of a global synchronization operation, each node may invalidate a portion of its cache (e.g., its entire cache). However, some of the caches may cache data from local memory, and it may not be necessary to invalidate this portion of the cache. Thus, during a global synchronization operation, software in a node may check each value stored in the cache, determine from metadata (e.g., from an associated memory address) whether it is cached global memory or cached local memory, and only invalidate the entry if the entry is cached global memory. However, this approach may be time consuming. Therefore, in some embodiments, invalidation of cache entries is performed in parallel for all cache entries, for example, using a "bulk invalidation" operation performed by dedicated hardware that is part of the same integrated circuit as the cache.

[0052] For example, refer to Figure 2A , each cache line 205 may include metadata including a least recently used (LRU) field 210, a global bit 215, a valid bit 220, a dirty bit 225, and a tag 230. In addition to the metadata, the cache line may also include a data value 235 (e.g., 64 bytes of data). The global data bit 215 may operate as a flag indicating whether the cache line 205 is to be invalidated when performing a bulk invalidation operation. Figure 2A As shown, a comparator (e.g., a hardware comparator) 240 may be connected to each cache line; when performing a bulk invalidation operation, the comparator may check the global bit 215, and if the global bit indicates that the data value 235 is a global data value, the comparator may invalidate the cache line (e.g., by setting the valid bit to a value indicating that the cache line is invalid). The cache may be part of an integrated circuit, and Figure 2A-2E Other hardware shown in (e.g., comparator 240) may be part of the same integrated circuit. Each of global bit 215 and valid bit 220 may be configured (through appropriate design of the hardware used and setting these bits) to represent true (e.g., indicating that data value 235 is a global data value or indicating that a cache line is valid) as a binary zero or to represent true as a binary one.

[0053] refer to Figure 2B In some embodiments, global bit 215 may also be used to ensure that global data is not modified during a time step. Such a modification may cause an exception so that the program knows that an illegal modification has occurred. During each cache access, global bit 215 may be checked, and if the access is a write access and global bit 215 is set, an exception may be raised.

[0054] refer to Figure 2C In some embodiments, to save area, during a bulk invalidation operation, an existing comparator that already exists at each cache line for tag comparison is reused, rather than adding a comparator to each cache line, to check the global bit 215 and invalidate the cache line when appropriate. In such an embodiment, a first multiplexer 243 may be added before the comparator. A regular cache access may select the tag field and compare it to the cache address tag. A bulk invalidation may select the global bit 215 and compare it to the bit provided by the invalidation instruction. The result of this comparison (the output of the comparator) may be supplied to a second multiplexer 245. For a regular access, the result may indicate a cache hit or miss. For a bulk invalidation operation, the valid bit 220 of the cache line may be set to false.

[0055] In some embodiments, each cache line 205 also includes an “immutable” bit 250, such as Figure 2D During each cache access, if the access is a write and both the global bit 215 and the "immutable" bit 250 are set, the comparison logic 255 may raise an exception.

[0056] In some embodiments, Figure 2E As shown, a summary global bit 260 is maintained for each of the plurality of global bits 215. In such an embodiment, the system may not need to check each of the contributing global bits 215 if the summary global bit 260 is not set.

[0057] exist Figure 2E In the figure, V is the valid bit 220, indicating a valid cache line; M is a set of modification bits 265, which is a set of n bits used to track sub-line modifications; G is a global bit 215, indicating whether to cache the global memory address (or local memory address).

[0058] The global memory (GMEM) tracking bit array table 270 may include one summary "global" bit (g) per group. This bit may be set when the block state G=1. The size of the array may be a function of f(cache size, cache line size, ways), where Z=size of cache data array (bytes); L=size of cache line (bytes); W=number of ways; and tracking array size=Z / (L*W) bits.

[0059] At the end of each time step, the home node can scan the rows of the tracking table. For a tracking table of X bits wide, this can process X bits per clock. For each bit that is 1, the home node can scan each way in the corresponding set. For each way with G=1 and M=0, the home node can invalidate the row. For each way with G=1 and M=1, the home node can refresh the row and invalidate the row. In the first example, Z=8KB, L=64B, W=4, and X=32b. In this example, the tracking table size=32 bits, corresponding to 1 row. At a clock rate of 1GHz, this corresponds to 1ns to scan the tracking table. In the second example, Z=2MB, L=64B, W=8, and X=256b. In this example, the tracking table size=4K bits, which corresponds to 16 rows. At a clock rate of 1GHz, this corresponds to 16ns to scan the tracking table.

[0060] Figure 3AA system for mapping physical addresses (PADDRs) to addresses in global memory and local memory 130 is shown. Virtual addresses used by the CPU are mapped to physical addresses using a translation lookaside buffer (TLB) and a process page pointer, which are supplied to one or more caches 120. If a cache miss occurs, then depending on the value of global bit 215, the physical address is either (i) used directly as an address in local memory 130 (if global bit 215 indicates that the address is an address in local memory), or (ii) treated as a global virtual address (GVADDR) if global bit 215 indicates that the address is an address in global memory. This selection operation is performed by Figure 3A The switching symbol 305 indicates that if the global bit 215 indicates that the address is an address in the global memory, the global virtual address is mapped to a global address tuple (GAT) including a node identifier (SC ID) and a block identifier (ID) of the home node of the memory at the address. Figure 3B The mapping of a global virtual address to (i) a global address tuple (ii) a page select value and (iii) a page offset value is shown.

[0061] The software running on the node 105 can be designed so that during any one time step, only the node modifies the data in any location of the global memory. Therefore, if two or more nodes 105 modify the data at any address in one time step, the occurrence can be an indication of an error in the code (or elsewhere, for example, in the hardware), and reporting the error can help (i) correct the error in the system or (ii) avoid the subsequent use of the result generated by the process showing the error indication. Checking such an error can be performed as follows. Each time the data at the memory address in the home node is modified, the modified record can be stored in a hash table; wherein the position in the hash table is determined by hashing the global memory address of the modified data. The node identifier of the node that modified the data can be stored in the hash table. In addition, when the record is stored in the hash table, the home node can check the hash table to determine whether the same memory location is modified by another node 105 during the current time step, and if so, the home node can raise an exception.

[0062] Figure 4 The process by which the home node tracks modified global memory and time step violations is shown in more detail. A global memory tracking (GMT) hash table 405 is maintained as described above. Portions of the hash table are cached in a global memory tracking table (GMTT) 410. Figure 4 The functionality shown can be implemented using the directory of the home node's cache repository. Figure 4, V indicates a valid cache line; G is a global bit 215; U is an update bit, indicating that a node with a node ID "source NID" updated the row sector; and source NID is the node ID of the request source.

[0063] At each eviction to the home node memory (e.g., high bandwidth memory (HBM)), the node 105 can look up the set in the GMTT 410 and compare the way labels. If the labels match, the node 105 can extract the GMTT row. For each M bit equal to 1 in the request, the node 105 can extract the corresponding GMTT element, and (i) if U is equal to 0, it can write the node ID (NID) from the request into the Source_NID; otherwise (ii) if the NID from the request is not equal to the Source_NID, it can log a violation and raise an exception. Otherwise (if the labels do not match), the home node can select the way to evict (e.g., using a least recently used (LRU) method), evict the GMTT row to the GMT hash table 405 (backup storage) (if the hash table 405 has capacity, the size of the hash table 405 is adjusted). If the current request hits in the GMT hash table 405, the home node can obtain and load it into the GMTT 410 way and update the label. For each M bit that is equal to 1 in the request, the home node can then extract the corresponding GMTT element. If the U bit is equal to zero, the home node can write the NID from the request into the Source_NID; otherwise, if the NID from the request is not equal to the source NID, the home node can log a violation and raise an exception. Otherwise (if the current request does not hit in the GMT hash table 405), the home node can zero the GMTT way and update the label.

[0064] In some embodiments, at the end of the time step, each node flushes the modified global data to the home node.After completing the GMT processing, all GMTT and GMT hash tables are cleared and reset.

[0065] The Global Memory Tracking Table (GMTT) can be constructed based on the following parameters: T = tag size in bits; K = source NID size in bits; S = number of GMTT groups; W = number of GMTT ways; and N = number of tracking cells per row (in Figure 4 In the example, N=16, one bit per 32-bit word). In this example, GMTT size (bytes) = (S*W*((T+2)+N*(K+1))) / 8. For example, for T=40b, K=11b, S=1K, W=8 and N=16, GMTT size = (4K*8*((40+2)+16*(11+1))) / 8 ~= 240KB.

[0066] Figures 5A-5CThe implementation of several global instructions is shown. Figure 5A A global atomic instruction (GAUT) with update and trigger is shown. This operation can, for example, allow multiple participating nodes to each increment a counter (to indicate that another node has completed time step synchronization); when the counter value exceeds a threshold, a notification is broadcast to inform all nodes that each node has completed time step synchronization. The flag definition includes the following: V indicates a valid cache line; M indicates a modified cache line; G is a global bit 215; and GSO is a GAUT structure offset. The fields of the GAUT structure can include the following: GA VAR, a global atomic variable; GATrigger, a global atomic trigger; CC, a credit counter; and PVT Offset, a participant bit vector table offset. For each global atomic operation at the home node level 3 cache (L3), if L3 is hit, the home node can obtain the L3 line and select the target GA UT structure. The home node can then atomically update the GA VAR (atomic operation in a transaction). If the GA VAR is greater than or equal to the GATrigger, the home node can obtain an entry from the participant bit vector (PBV) table. For each bit equal to 1, the home node can issue an update to the corresponding node. It can then perform (i) an atomic increment of a specified credit counter (CC) on that node or (ii) a synthetic wait event response. Otherwise (in the case of an L3 miss), the home node can fetch the L3 line from back memory, install it in L3 and continue processing as if a hit had occurred.

[0067] Figure 5B shows a global load and broadcast operation. This operation can allow a node to broadcast a notification to all nodes by reading from a specified global memory address. Flag definitions are similar to Figure 5ASame, except that GSO is a GSB structure offset. The fields of the GSB structure may include the following: G VAR, global variable; GVBCredits, global variable credits; BC, bank cache (BC refers to the target L2 cache bank on the target node; the same cache bank can target all participating nodes); and PVTOffset, participant bit vector table offset. For each global load at the home node L3, if the L3 is hit, the home node can fetch the L3 line and select the target GSB structure. It can then return the L3 line to the requester with the associated word enable bit set. If GVB_Credits is equal to 0, the home node can fetch the PBV table entry. For each bit equal to 1, the home node can inject the G VAR cache into the specified L2 on the node, which can inject a 64-byte line with the associated word enable bit set (read-modify-write (RMW)). Otherwise, if an L3 miss has occurred, the home node can fetch the L3 line from the back memory, install it in the L3 and continue processing as if a hit had occurred.

[0068] Figure 5C The global store and broadcast operation is shown. This operation allows a node to broadcast a notification to all nodes by writing to a specified global memory address. Flag definitions and GSB structure fields are similar to Figure 5B Same, except that in the GSB structure, N / A indicates a global variable credit that is not applicable. For each global store at the home node L3, if the L3 is hit, the home node can fetch the L3 line and select a target GSB structure. It can then overwrite the G VAR with the value from the global store transaction and fetch the PBV table entry. For each bit equal to 1, the home node can inject the G VAR cache into the specified L2 on that node, which can inject a 64-byte line with the associated word enable bit set (read-modify-write (RMW)). Otherwise, if an L3 miss has occurred, the home node can fetch the L3 line from the back memory, install it in the L3 and continue processing as if a hit had occurred.

[0069] Some embodiments include the following hardware features. A first set of such hardware features may allow global addresses to be handled differently by the cache than local addresses. The cache may have the ability to invalidate all global addresses indicated by the high bits in the physical address. When all modified global data is flushed to the home node, a shadow cache for modified global data may be used to reduce latency. The cache may only hold modified global data and remain consistent with the rest of the local node. Hardware may be used to accelerate the identification of global address lines in the cache to flush them and invalidate them. An alternative mechanism for tracking the number and range of addresses to allow pacing of refreshes in the table may be provided. Hardware capabilities may be provided to determine the number of addresses when converted to external physical nodes and external node physical addresses. Hardware capabilities may be provided to convert continuous global memory into memory striped or hashed across multiple physical nodes to allow better access to memory arrays frequently accessed by memory nodes. Hardware capabilities may be provided to reverse the striping / hashing to allow node 105 to throttle refreshes to allow globally controlled refreshes, if necessary, to avoid table overflows. The ability to limit refresh addresses within a specified range to the home node may be provided. A table that tracks global writes and tracks sub-cache line bytes can be provided on each node to allow correct behavior when false sharing activity occurs. The table can do two things: (i) identify incorrect program model usage (more than one node writes the same byte during a single time step), and (ii) allow byte tracking to know when false sharing occurs but not incorrect behavior. This can be done using RMW to the local HBM and a static random access memory (SRAM) table with associated accesses. A mechanism can be provided to avoid table overflows and throttle them back. Two possible solutions can be adopted: (i) a throttling mechanism that prevents the sending node from sending too much data, or (ii) a software or hardware solution that handles the situation where the table overflows at the local node. This is not performance critical, but may be correctness critical. The software or hardware can stop accepting new external writes to the local dynamic random access memory (DRAM) and move the table to a software implementation that takes over in the unlikely event that the local table overflows. All writes can then be allowed to continue, but can be handled by software rather than hardware.

[0070] The second set of such hardware features can allow load / store global communication. Users can be able to access global memory through the normal threaded program model. Loads and stores can be made outside the local cache after the data has been acquired through messages on the inter-node private network.

[0071] A third set of such hardware features may allow for versioning of caches. In such an embodiment, cache line tags are augmented with a version number associated with a time step, and a remote node is allowed to send a modified cache line to another node (i.e., flush), but the home node buffers the line until the time step is complete.

[0072] A third set of such hardware features may allow execution of atomic instructions (or "atomics"). The cache design may recognize global atomics and always make atoms visible to the local internal global interface to allow atomics to be executed in remote home nodes. The local LLC will have a set of collective and atomic operations that are cached and can be utilized by both local cores and external network accesses.

[0073] A third set of such hardware features may allow violation tracking for detecting incorrect program model usage (more than one node writing to an address in a time step). The hardware may maintain a tracking structure at the home node with entries of the form (address, source node ID, location / number of 8 bytes). All nodes may be allowed to read. All nodes may be allowed to write. The home node may check the tracker to see if there is a slot to put the store in. If there is no place to go into the tracker, the node may stop time step mode. At the end of the time step, the system may do the following: (i) flush all remote lines from the cache; (ii) for each remote dirty line, do a read-modify-write to memory to see what location (byte) changed; (iii) read all previous stores to the same address in the tracker to see what location they modified, (iv) if the byte value at the location is different at the RMW and another node has written to it, then a violation may be flagged, (v) if the bytes are the same and another node wrote to the same location, then a violation is not flagged; and (vi) if the bytes are different and no other node wrote to it (e.g., the same node wrote to it multiple times), then a violation is not flagged.

[0074] As used herein, "a portion" of something means "at least some" of the thing, and thus may mean less than all of the thing or all of the thing. Thus, "a portion" of a thing includes the entire thing as a special case, i.e., an example of a portion of a thing. As used herein, when a second quantity is "within Y" of a first quantity, X, it means that the second quantity is at least XY and the second quantity is at most X+Y. As used herein, when a second quantity is "within Y%" of a first quantity, it means that the second quantity is at least (1-Y / 100) times the first quantity and the second quantity is at most (1+Y / 100) times the first quantity. As used herein, the word "or" is inclusive so that, for example, "A or B" means any one of (i) A, (ii) B, and (iii) A and B.

[0075] Each of the terms "processing circuit" and "means for processing" is used herein to refer to any combination of hardware, firmware, and software for processing data or digital signals. Processing circuit hardware may include, for example, application specific integrated circuits (ASICs), general or special purpose central processing units (CPUs), digital signal processors (DSPs), graphics processing units (GPUs), programmable logic devices such as field programmable gate arrays (FPGAs). In a processing circuit, as used herein, each function is performed by hardware configured to perform the function (i.e., hardwired), or by more general hardware (such as a CPU) configured to execute instructions stored in a non-temporary storage medium. The processing circuit may be manufactured on a single printed circuit board (PCB) or distributed on several interconnected PCBs. The processing circuit may contain other processing circuits; for example, the processing circuit may include two processing circuits interconnected on a PCB: an FPGA and a CPU.

[0076] As used herein, when a method (e.g., an adjustment) or a first quantity (e.g., a first variable) is referred to as being “based on” a second quantity (e.g., a second variable), it means that the second quantity is an input to the method or affects the first quantity, for example, the second quantity may be an input (e.g., the only input or one of several inputs) to a function that calculates the first quantity, or the first quantity may be equal to the second quantity, or the first quantity may be the same as the second quantity (e.g., stored in the same location or locations in memory as the second quantity).

[0077] It should be understood that although the terms "first", "second", "third", etc. may be used herein to describe various elements, components, regions, layers and / or parts, these elements, components, regions, layers and / or parts should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or part from another element, component, region, layer or part. Therefore, without departing from the spirit and scope of the present invention, the first element, component, region, layer or part discussed herein may be referred to as a second element, component, region, layer or part.

[0078] For ease of description, spatially relative terms, such as "beneath," "below," "lower," "under," "above," "upper," etc., may be used herein to describe the relationship of one element or feature to another (or multiple) element or feature as shown in the figures. It should be understood that such spatially relative terms are intended to encompass different orientations of the device in use or operation in addition to the orientation shown in the figures. For example, if the device in the figures is turned over, elements described as "below," "beneath," or "under" other elements or features will be oriented "above" the other elements or features. Thus, the exemplary terms "below" and "under" can encompass both an orientation of above and below. The device may be otherwise oriented (e.g., rotated 90 degrees or at other orientations) and the spatially relative descriptors used herein should be interpreted accordingly. Further, it will be understood that when a layer is referred to as being "between" two layers, it can be the only layer between the two layers, or one or more intervening layers may also be present.

[0079] The terms used herein are for the purpose of describing specific embodiments only and are not intended to limit the inventive concept. As used herein, the terms "substantially," "about," and similar terms are used as approximate terms rather than terms of degree, and are intended to take into account the inherent deviations of measured or calculated values ​​that one of ordinary skill in the art will recognize.

[0080] As used herein, the singular forms "one" and "an" are intended to also include plural forms, unless the context clearly states otherwise. It will be further understood that when used in this specification, the terms "include" and / or "comprise" specify the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or their groups. As used herein, the term "and / or" includes any and all combinations of one or more associated listed items. Expressions such as "at least one of ..." modify the entire element list when it is before the element list, rather than modifying the individual elements in the list. In addition, when describing the embodiments of the present invention, the use of "can" refers to "one or more embodiments of the present disclosure". In addition, the term "exemplary" is intended to refer to an example or explanation. As used herein, the terms "use", "using" and "used" can be considered to be synonymous with the terms "utilize", "utilize" and "utilize" respectively.

[0081] It should be understood that when an element or layer is referred to as being "on," "connected to," "coupled to," or "adjacent to" another element or layer, it can be directly on, connected to, coupled to, or adjacent to the other element or layer, or one or more intervening elements or layers may be present. In contrast, when an element or layer is referred to as being "directly on," "directly connected to," "directly coupled to," or "immediately adjacent to" another element or layer, there are no intervening elements or layers.

[0082] Any numerical range described herein is intended to include all sub-ranges of the same numerical precision contained in the range. For example, the range of "1.0 to 10.0" or "between 1.0 and 10.0" is intended to include all sub-ranges between the minimum value 1.0 and the maximum value 10.0 (and including endpoints), that is, having a minimum value equal to or greater than 1.0 and a maximum value equal to or less than 10.0, such as 2.4 to 7.6. Similarly, the range described as "within 35% of 10" is intended to include all sub-ranges between the minimum value 6.5 (i.e., (1-35 / 100) multiplied by 10) and the maximum value 13.5 (i.e., (1+35 / 100) multiplied by 10) (and including endpoints), that is, having a minimum value equal to or greater than 6.5 and a maximum value equal to or less than 13.5, such as 7.4 to 10.6. Any maximum numerical limit described herein is intended to include all lower numerical limits contained therein, and any minimum numerical limit described in this specification is intended to include all higher numerical limits contained therein.

[0083] It should be understood that when an element is referred to as being "directly connected" or "directly coupled" to another element, there are no intervening elements. As used herein, "normally connected" means connected through an electrical path that may include any intervening elements, including intervening elements whose presence qualitatively changes the behavior of the circuit. As used herein, "connected" means (i) "directly connected" or (ii) connected with an intervening element, which is an element that does not qualitatively affect the behavior of the circuit (e.g., a low value resistor or inductor, or a short section of a transmission line).

[0084] Although exemplary embodiments of systems and methods for computing using multiple nodes have been specifically described and illustrated herein, many modifications and variations will be apparent to those skilled in the art. Therefore, it should be understood that systems and methods for computing using multiple nodes constructed according to the principles of the present disclosure may be embodied in a manner different from that specifically described herein. The present invention is further defined in the appended claims and their equivalents.

Claims

1. A method, include: reading, by a first node of a plurality of nodes, a first data value from a shared memory shared by the plurality of nodes; modifying, by the first node, the first data value; storing, by the first node, the modified first data value in a cache of the first node; The first node initiates a global synchronization command; as well as In response to the global synchronization command being initiated by the first node: The first node is indicated by the first node that the first node has completed time step synchronization.

2. The method according to claim 1, further comprising: include: The modified first data value is flushed to the shared memory by the first node.

3. The method according to claim 1, further comprising: include: A portion of the cache of the first node is invalidated by the first node.

4. The method according to claim 3, in, The portion of the cache is the entirety of the cache.

5. The method according to claim 3, in, The portion of the cache excludes constant values.

6. The method according to claim 3, in, The portion of the cache excludes protected data values.

7. The method according to claim 1, further comprising: include: reading, by the first node, a second data value from the shared memory; storing, by the first node, the second data value in the cache of the first node; as well as In response to the global synchronization command being initiated by the first node: performing an initial read of the second data value as a global load operation, The global load operation includes reading the second data value from the shared memory.

8. The method according to claim 7, further comprising: include: determining that the second data value is in the cache of the first node; as well as The second data value in the cache of the first node is overwritten with the second data value read by the initial read.

9. The method according to claim 1, further comprising: include: The shared memory is not read by the first node until the first node has received an indication from the other nodes of the plurality of nodes that time step synchronization is complete.

10. The method according to claim 9, in, The indicating includes incrementing a count in the memory, and receiving the indication that the time step synchronization is complete includes reading from the memory a value equal to a number of nodes in the plurality of nodes.

11. A system, include: Processing circuit; as well as a memory operably coupled to the processing circuit, The memory stores instructions which, when executed by the processing circuit, cause the processing circuit to perform a method comprising: reading a first data value from the shared memory; modifying the first data value; storing the modified first data value in a cache; Initiate a global synchronization command; and In response to the initiation of the global synchronization command: Indicates that time step synchronization has completed.

12. The system of claim 11, further comprising flushing the modified first data value to the shared memory.

13. The system of claim 11, further comprising invalidating a portion of the cache.

14. The system of claim 13, wherein the portion of the cache is the entirety of the cache.

15. The system of claim 13, wherein the portion of the cache excludes constant values.

16. The system according to claim 13, in, The portion of the cache excludes protected data values.

17. The system according to claim 11, further comprising: include: reading a second data value from the shared memory; storing the second data value in the cache; as well as In response to the initiation of the global synchronization command: performing an initial read of the second data value as a global load operation, The global load operation includes reading the second data value from the shared memory.

18. The system according to claim 17, further comprising: include: determining that the second data value is in the cache; as well as The second data value in the cache is overwritten with the second data value read by the initial read.

19. The system according to claim 11, further comprising: include: The shared memory is not read until an indication has been received from a plurality of nodes that time step synchronization is complete.

20. A system, include: Devices for processing; as well as a memory operatively coupled to said means for processing, The memory stores instructions which, when executed by the apparatus for processing, cause the apparatus for processing to perform a method, the method comprising: reading a first data value from the shared memory; modifying the first data value; storing the modified first data value in a cache; Initiate a global synchronization command; and In response to the initiation of the global synchronization command: Indicates that time step synchronization has completed.