CXL switch using operation buffer and operating method of the same
The CXL switch addresses out-of-order completion issues by prioritizing operand data fragments with earlier operation orders in high-speed buffers, improving operation speed and efficiency in CXL-based systems.
Patent Information
- Application Number
- US19/682434
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2026-05-06
- Filing Date
- 2026-05-20
- Publication Date
- 2026-11-26
AI Technical Summary
In CXL-based systems, out-of-order completion can occur where responses are received in a different order than requests are transmitted, causing operand data fragments with later operation orders to occupy high-speed operation buffers first, leading to operation latency as fragments with earlier orders are stored in low-speed buffers and need to be transferred back, thereby reducing operation speed.
A CXL switch that selectively stores operand data fragments in a first operation buffer or a second operation buffer based on their operation order, with the first buffer being high-speed and the second being low-speed, ensuring that fragments with earlier operation orders are prioritized in the high-speed buffer to improve operation efficiency.
This approach reduces operation latency by preferentially storing operand data fragments with earlier operation orders in high-speed buffers, enhancing overall operation speed and efficiency in CXL-based computing systems.
Smart Images

Figure US20260377346A1-D00000_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATION
[0001] This application is based on and claims priority under 35 U.S.C. §119 to Korean Patent Application Nos. 10-2025-0065724, filed on May 20, 2025 and 10-2026-0081704, filed on May 06, 2026, in the Ministry of Intellectual Property, Republic of Korea, the disclosures of which are incorporated by reference herein in their entirety.BACKGROUND1. Field
[0002] The disclosure relates to a computing system, and more particularly, to a compute express link (CXL)-based computing system including a switch that executes an in-switch operation.2. Description of the Related Art
[0003] Recently, systems in which processors, accelerators, and memory devices are interconnected to perform large-scale operations have been widely used in high-performance computing environments. In particular, workloads such as artificial intelligence, machine learning, and high-performance data processing frequently involve exchange of data between a plurality of devices or execution of collective communication. For example, in artificial intelligence learning, high-performance computing, or large-scale data processing, collective operations such as reduce operations may be performed on tensors, vectors, matrices, or parameters distributed across a plurality of devices.
[0004] In this regard, a compute express link (CXL) refers to an interconnect technology that supports high-speed connections between hosts, memory devices, accelerator devices, and other computing resources, and may form a fabric structure including a plurality of CXL devices and a plurality of CXL switches. In such a CXL fabric environment, it is necessary to collect data stored in a distributed manner across a plurality of devices, transmit data between devices, or perform operations on a plurality of pieces of data.
[0005] However, in CXL-based systems, out-of-order completion may occur where responses are received in a different order than requests have been transmitted. Consequently, an operand data fragment with a later operation order may occupy a high-speed operation buffer first, causing an operand data fragment with an earlier operation order to be stored in a low-speed operation buffer. In this case, as the operand data fragment stored in the low-speed operation buffer needs to be transferred back to the high-speed operation buffer at the time of actual operation, operation latency may occur.SUMMARY
[0006] Provided are a compute express link (CXL) switch in which an operand data fragment is selectively stored in a first operation buffer or a second operation buffer, based on an operation order of the operand data fragment, and an operating method of the CXL switch.
[0007] Additional aspects will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the presented embodiments of the disclosure.
[0008] According to an aspect of the disclosure, an operating method of a compute express link (CXL) switch includes providing, by the CXL switch, requests for a plurality of operand data fragments to the plurality of external devices, storing, by the CXL switch, the plurality of operand data fragments in the first operation buffer or the second operation buffer, based on an operation order of the plurality of operand data fragments, and generating, by the CXL switch, operation result data based on operand data fragments stored in the first operation buffer.
[0009] According to another aspect of the disclosure, a CXL switch includes an interface circuit configured to receive a plurality of operand data fragments from the plurality of external devices and communicatively connected to the second operation buffer, the first operation buffer configured to store at least one of the plurality of operand data fragments, a control circuit configured to control the plurality of operand data fragments to be stored in the first operation buffer or the second operation buffer, based on an operation order of the plurality of operand data fragments, and an operation circuit configured to generate operation result data based on at least one of the plurality of operand data fragments stored in the first operation buffer.BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other aspects, features, and advantages of certain embodiments of the disclosure will be more apparent from the following description taken in conjunction with the accompanying drawings, in which:
[0011] FIG. 1 is a block diagram of a computing system according to an embodiment;
[0012] FIG. 2 is a diagram for describing an in-switch operation of a compute express link (CXL) switch according to an embodiment;
[0013] FIG. 3 is a diagram of a topology structure in which a plurality of CXL switches and a plurality of CXL devices are connected to each other;
[0014] FIG. 4 is a diagram for describing a CXL system according to an embodiment;
[0015] FIG. 5 is a diagram for describing a CXL switch according to an embodiment;
[0016] FIG. 6 is a diagram for describing an in-switch operation according to an embodiment;
[0017] FIG. 7 is a flowchart for describing an operating method of a CXL switch according to an embodiment;
[0018] FIG. 8 is a flowchart for describing an operation of storing an operand data fragment according to an embodiment;
[0019] FIG. 9 is a flowchart for describing a buffer management operation according to an embodiment; and
[0020] FIG. 10 is a flowchart for describing an operation of changing a reference order according to an embodiment.DETAILED DESCRIPTION
[0021] Reference will now be made in detail to embodiments, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout. In this regard, the current embodiments may have different forms and should not be construed as being limited to the descriptions set forth herein. Accordingly, the embodiments are merely described below, by referring to the figures, to explain aspects of the present description. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items. Expressions such as "at least one of," when preceding a list of elements, modify the entire list of elements and do not modify the individual elements of the list.
[0022] Hereinafter, embodiments will be described in detail with reference to the accompanying drawings.
[0023] FIG. 1 is a block diagram of a computing system 10 according to an embodiment. The computing system 10 may be a compute express link (CXL)-based computing system.
[0024] Referring to FIG. 1, the computing system 10 may include first and second hosts 111 and 121, first and second local memories 112 and 122, first to fourth CXL devices 131, 132, 133, and 134, and a fabric manager 220.
[0025] The first and second hosts 111 and 121 may each be independent computing entities. For example, the first and second hosts 111 and 121 may include any computing node that performs an operation in association with a central processing unit (CPU), a graphics processing unit (GPU), a data processing unit (DPU), an accelerator control processor, or CXL-based resources. Although FIG. 1 shows a first host 111 and a second host 121, the number of hosts is not limited thereto and may be 1, 3, or greater.
[0026] The first and second local memories 112 and 122 may be respectively connected to the first and second hosts 111 and 121. For example, a first local memory 112 may be connected to the first host 111, and a second local memory 122 may be connected to the second host 121. The first and second local memories 112 and 122 may be memory resources directly accessible by each host and may include, for example, dynamic random access memory (DRAM), synchronous random access memory (SRAM), high bandwidth memory (HBM), non-volatile random access memory (NVRAM), or other volatile / non-volatile memory. The local memories may provide memory regions used by each host independently and may be local resources distinct from external CXL resources accessed via a CXL fabric 200.
[0027] The CXL fabric 200 may be an interconnect structure including the first to fourth CXL switches 211, 212, 213, and 214. The CXL fabric 200 may connect the first and second hosts 111 and 121 to the first to fourth CXL devices 131, 132, 133, and 134, enabling various operations such as data exchange, memory access, resource sharing, and collective communication to be performed. While it is shown in FIG. 1 that the CXL fabric 200 includes four CXL switches, i.e., a first CXL switch 211, a second CXL switch 212, a third CXL switch 213, and a fourth CXL switch 214, an embodiment is not limited thereto.
[0028] The first to fourth CXL switches 211, 212, 213, and 214 may be interconnected to form a multi-stage network structure. For example, a first CXL switch 211> may be connected to a second CXL switch 212 and a third CXL switch 213, and the second CXL switch 212 may be connected to the first CXL switch 211 and a fourth CXL switch 214. In addition, the third CXL switch 213 and the fourth CXL switch 214 may be connected to each other. A connection form shown in FIG. 1 is merely an example, and a connection structure of the plurality of CXL switches 211, 212, 213, and 214 may be implemented in various shapes such as tree, fat-tree, folded-Clos, mesh, ring, star, dragonfly, butterfly, HyperX, etc.
[0029] The first and second hosts 111 and 121 may be connected to one or more CXL switches of the CXL fabric 200. In the example shown in FIG. 1, the first host 111 and the second host 121 may be connected to the first CXL switch 211 and the second CXL switch 212, respectively. Through such a connection structure, each host may access the first to fourth CXL devices 131, 132, 133, and 134 via the first to fourth CXL switches 211, 212, 213, and 214. However, this is merely an example, and in another embodiment, each host may be connected to a single CXL switch or may be connected to three or more CXL switches.
[0030] The first to fourth CXL devices 131, 132, 133, and 134 may be connected to the CXL fabric 200. The first to fourth CXL devices 131, 132, 133, and 134 may include, for example, CXL memory devices, CXL memory expansion devices, CXL accelerator devices, devices that perform operation functions, devices that provide storage resources, or any CXL-compatible devices. A first CXL device 131, a second CXL device 132, a third CXL device 133, and a fourth CXL device 134 are shown in FIG. 1, but the number of CXL devices is not limited thereto.
[0031] The first to fourth CXL devices 131, 132, 133, and 134 may be connected to one or more lower-level switches 213 and 214. For example, the first CXL device 131 and the second CXL device 132 may be connected to the third CXL switch 213 and the fourth CXL switch 214, respectively. Although it is shown in FIG. 1 that a single CXL device is connected to two CXL switches, the number of CXL switches connected to a single CXL device is not limited thereto, and the number of CXL devices connected to a single CXL switch is not limited thereto.
[0032] The fabric manager 220 may manage a configuration and a state of the CXL fabric 200. The fabric manager 220 may manage topology information indicating a connection relationship among the first to fourth CXL switches 211, 212, 213, and 214 and the first to fourth CXL devices 131, 132, 133, and 134. The fabric manager 220 may be implemented as hardware, as software executed by a processor, or as a combination of hardware and software.
[0033] the first to fourth CXL devices 131, 132, 133, and 134 may participate in collective communication to perform an in-switch operation. Herein, in-switch operation may be an operation performed by a CXL switch based on operand data, which is received from adjacent CXL devices and / or adjacent CXL switches, and may include, for example, a reduce operation. The reduce operation may include a sum operation, a product operation, a max operation, a min operation, an average operation, a logical OR operation, a logical AND operation, an exclusive OR (XOR) operation, a bit-based operation, or a combination thereof. The reduce operation may refer to an operation that generates operation result data based on operand data, which is stored in two or more among adjacent CXL devices and adjacent CXL switches. The operation result data may be transmitted to a single CXL device or a single CXL switch. The operation result data may be transmitted to two or more among adjacent CXL devices and adjacent CXL switches. In other words, the operand data may refer to input data of a CXL switch, and the operation result data may be output data of the CXL switch.
[0034] In the present specification, a CXL device or a CXL switch that provides operand data or receives operation result data may be referred to as an external device. For example, a CXL device or a CXL switch that provides operand data may be referred to as a source external device, and a CXL device or a CXL switch that receives operation result data may be referred to as a destination external device.
[0035] FIG. 1 is merely a diagram to help understanding the disclosure, and the numbers, arrangement, and connection relationships of the host device, the local memory, the CXL switches, the CXL devices, and the fabric manager shown therein may be changed in various manners.
[0036] A CXL switch according to an exemplary embodiment of the present disclosure may request operand data from each of a plurality of source external devices. Each operand data may include a plurality of operand data fragments having an operation order. The CXL switch may generate operation result data by performing an in-switch operation based on operand data received from different source external devices. Specifically, the CXL switch may generate one operation result data fragment based on operand data fragments having the same operation order and received from different external devices. For example, one operation result data fragment may be generated corresponding to one operation order, and the operation result data may include a plurality of operation result data fragments corresponding to different operation orders.
[0037] The CXL switch may request a plurality of operand data fragments from each source external device according to the operation order. A CXL protocol or a CXL-based system may allow out-of-order completion. Accordingly, due to response delays of the source external devices, the CXL switch may receive the plurality of operand data fragments in an order different from a transmission order of the requests. A problem may occur in which a second operand data fragment having a relatively later operation order arrives at the CXL switch before a first operand data fragment having a relatively earlier operation order, and preempts a first operation buffer having a relatively high speed.
[0038] When the first operation buffer is saturated by the second operand data fragment, the first operand data fragment may be evicted to a second operation buffer having a relatively low speed. At an actual operation time, the first operand data fragment should be loaded again into the first operation buffer, and thus an operation speed may be reduced.
[0039] A CXL switch according to an exemplary embodiment of the present disclosure may store an operand data fragment received from a source external device in a first operation buffer or a second operation buffer based on an operation order. The first operation buffer may be a buffer having a relatively high speed, and the second operation buffer may be a buffer having a relatively low speed. For example, the first operation buffer may be SRAM, and the second operation buffer may be DRAM or HBM, but embodiments are not limited thereto. In some embodiments, both the first operation buffer and the second operation buffer may be included in the CXL switch. In the present specification, it is mainly described that the first operation buffer is located inside the CXL switch and the second operation buffer is located outside the CXL switch; however, it is noted that locations of the first operation buffer and the second operation buffer are not limited thereto. In some embodiments, the first operation buffer may be included in the CXL switch, and the second operation buffer may be located outside the CXL switch. In some embodiments, both the first operation buffer and the second operation buffer may be located outside the CXL switch.
[0040] In some embodiments, the CXL switch may compare an operation order of an operand data fragment with a reference order, and may store the operand data fragment in the first operation buffer or the second operation buffer according to a result of the comparison. For example, when an operation order of the operand data fragment is earlier than or equal to the reference order, the CXL switch may store the operand data fragment in the first operation buffer. When the operation order of the operand data fragment is later than the reference order, the CXL switch may store the operand data fragment in the second operation buffer. For example, since a capacity of the first operation buffer is smaller than a capacity of the second operation buffer, an operation speed may be improved by storing operand data fragments having an earlier operation order in the first operation buffer in advance.
[0041] In some embodiments, the operand data may be a tensor, a vector, a matrix, a parameter, an intermediate operation result, a gradient value, an activation value, or any data to be reduced. An operand data fragment may be a portion included in the operand data, for example, an element, but embodiments are not limited thereto. The CXL switch may complete the in-switch operation by performing an accumulation operation on operation result data fragments corresponding to a plurality of operation orders to generate operation result data. For example, the in-switch operation may be a reduce operation.
[0042] According to an exemplary embodiment of the present disclosure, an operand data fragment having a relatively earlier operation order may be stored in the first operation buffer, and an operand data fragment having a relatively later operation order may be stored in the second operation buffer, and thus an operation speed may be improved. FIG. 2 is a diagram illustrating an in-switch operation of a CXL switch 210 according to an embodiment.
[0043] Referring to FIG. 2, a plurality of CXL devices, for example, a first CXL device 131, a second CXL device 132, a third CXL device 133, and a fourth CXL device 134, may each store operand data. For example, first operand data D1 may be stored in the first CXL device 131, second operand data D2 may be stored in the second CXL device 132, third operand data D3 may be stored in the third CXL device 133, and fourth operand data D4 may be stored in the fourth CXL device 134.
[0044] The CXL switch 210 may perform an element-wise reduce operation on the first to fourth operand data D1, D2, D3, and D4. For example, an operation may be performed on operand data fragments having the same operation order and included in different operand data. However, embodiments are not limited thereto, and the first to fourth operand data D1, D2, D3, and D4 may have different sizes or formats, and the CXL switch 210 may perform a partial reduce operation, a block-wise reduce operation, a stride-wise reduce operation, or a packet-wise reduce operation according to a preset rule. That is, an operand data fragment may be a portion of operand data according to a preset rule. For example, the operand data fragment may correspond to an element, a block, a stride, or a packet.
[0045] As illustrated in FIG. 2, the CXL switch 210 may receive the first to fourth operand data D1, D2, D3, and D4 from the first to fourth CXL devices 131 to 134. For example, the CXL switch 210 may transmit, to the first CXL device 131, a read message requesting the first operand data D1, and may receive the first operand data D1 from the first CXL device. Similarly, the CXL switch 210 may receive the second operand data D2 from the second CXL device, receive the third operand data D3 from the third CXL device, and receive the fourth operand data D4 from the fourth CXL device. The read message may be a memory read request in accordance with a CXL protocol, and in an embodiment, may be a non-allocating read message for reducing cache pollution. However, data request and reception schemes are not limited thereto.
[0046] In an embodiment, the CXL switch 210 may store operand data fragments included in the first to fourth operand data D1, D2, D3, and D4 in a first operation buffer or a second operation buffer according to an operation order. Operand data fragments received from the plurality of CXL devices 131 to 134 may be stored in the first operation buffer or the second operation buffer according to a predetermined mapping relationship. For example, the first operation buffer may include a buffer region for each CXL device, and / or a buffer region corresponding to an operation order. The operand data fragment stored in the first operation buffer may be used as input data for the in-switch operation.
[0047] In some embodiments, the CXL switch 210 may store an operand data fragment having an operation order earlier than or equal to a reference order in the first operation buffer, and may store an operand data fragment having an operation order later than the reference order in the second operation buffer.
[0048] The CXL switch 210 may perform the in-switch operation by generating an operation result data fragment based on operand data fragments having the same operation order among the operand data fragments of the operand data D1, D2, D3, and D4 stored in the first operation buffer, and generating operation result data including a plurality of operation result data fragments corresponding to a plurality of operation orders. For example, the in-switch operation may be a reduce operation. The reduce operation may be an operation of combining a plurality of operand data fragments according to a predetermined operation rule to generate one operation result data fragment.
[0049] In some embodiments, when a remaining capacity occurs in the first operation buffer, the CXL switch 210 may move an operand data fragment stored in the second operation buffer to the first operation buffer. For example, the CXL switch 210 may generate a first operation result data fragment based on first operand data fragments, and may secure capacity by deleting the first operand data fragments from the first operation buffer. The CXL switch 210 may move, among operand data fragments in the second operation buffer, an operand data fragment having the earliest operation order to the first operation buffer.
[0050] In an embodiment, the CXL switch 210 may perform the in-switch operation after all operand data fragments having the same operation order have been collected. That is, after all operand data fragments having the same operation order among the first to fourth operand data D1, D2, D3, and D4 are stored in the first operation buffer, the CXL switch 210 may initiate the in-switch operation on the operand data fragments having the same operation order stored in the first operation buffer.
[0051] In an embodiment, the CXL switch 210 may sequentially perform a plurality of partial in-switch operations according to an order in which operand data fragments are received. For example, the CXL switch 210 may generate a first operation result data fragment for operand data fragments having a first operation order and included in the first and second operand data D1 and D2 received first, then generate a second operation result data fragment for the first operation result data fragment and an operand data fragment having the first operation order and included in the third operand data D3, and then generate a fourth operation result data fragment for the second operation result data fragment and an operand data fragment having the first operation order and included in the fourth operand data D4.
[0052] In an embodiment, the CXL switch 210 may perform the in-switch operation after all of the first to fourth operand data D1 to D4 have been received.
[0053] In the example of FIG. 2, the CXL switch 210 may provide the operation result data to all of the first to fourth CXL devices 131 to 134. Accordingly, each of the first to fourth CXL devices 131 to 134 may store the same operation result data. This may correspond to an all-reduce operation, which is an example of collective communication.
[0054] In an embodiment, the CXL switch 210 may provide the operation result data so as to be written to a predetermined storage location of each CXL device. For example, an output buffer for storing the operation result data may be pre-allocated in each CXL device, and the CXL switch 210 may write the operation result data to each CXL device based on an address of the output buffer.
[0055] In an embodiment, when a plurality of CXL switches are hierarchically arranged, some of the CXL switches may first generate partial operation result data, and an upper-level switch may generate final operation result data based on the partial operation result data.
[0056] In an embodiment, the operation result data may be stored only in some of the plurality of CXL devices 131 to 134.
[0057] In one embodiment, the operation result data may be divided into a plurality of fragments and distributed to the plurality of CXL devices (131 to 134).
[0058] According to an embodiment, an operation speed may be improved by preferentially storing an operand data fragment having an earlier order in a first operation buffer, and moving an operand data fragment stored in a second operation buffer to the first operation buffer when a capacity becomes available in the first operation buffer.
[0059] FIG. 3 is a diagram of a topology structure in which a plurality of CXL switches and a plurality of CXL devices are connected.
[0060] Referring to FIG. 3, a CXL system 40 may include first to sixth CXL switches 211 to 216 and first through eighth CXL devices 131 to 138. The first to sixth CXL switches 211 to 216 and the first to eighth CXL devices 131 to 138 may be connected in a fat-tree topology. The fat-tree topology may be a topology designed to sufficiently secure the number of connection paths for higher layers or provided between specific layers. The fifth and sixth CXL switches 215 and 216 may be arranged in a first layer, and the first to fourth CXL switches 211 to 214 may be arranged in a second layer.
[0061] The first to fourth CXL switches 211 to 214 may be connected to the first to eighth CXL devices 131 to 138. The first to fourth CXL devices 131 to 134 may be included in a first cache coherent domain CCD1, and the fifth to eighth CXL devices 135 to 138 may be included in a second cache coherent domain CCD2. The cache coherent domain may be a logical or functional area operating to allow the plurality of CXL devices to maintain coherent visibility and coherent data states for memory data. For example, CXL devices belonging to the same cache coherent domain may manage their cache states according to a coherence protocol when accessing a specific memory area, and may operate in such a way that changes to specific data are reflected in other devices within the domain.
[0062] As shown in FIG. 3, the first and second CXL switches 211 and 212 and the first through eighth CXL devices 131 to 138 may be included in a single pod. Although not shown, the pod may be connected to another pod via the fifth and sixth CXL switches 215 and 216. Herein, the pod may be a unit including the plurality of CXL switches and the plurality of CXL devices.
[0063] The first to fourth CXL switches 211 to 214 and the fifth and sixth CXL switches 215 and 216 may communicate via first communication com1. The first communication com1 may be performed via an inter-switch communication protocol, and may use a CXL.io protocol, a CXL.mem protocol, and / or a CXL.cache protocol, but an embodiment is not limited thereto.
[0064] The first to eighth CXL devices 131 to 138 and the first to fourth CXL switches 211 to 214 may communicate via second communication com2. The second communication com2 may be performed via an inter-switch communication protocol, and may use a CXL.io protocol, a CXL.mem protocol, and / or a CXL.cache protocol, but an embodiment is not limited thereto.
[0065] The first to sixth switches 211 to 216 may perform in-switch operations. Each of the first to sixth switches 211 to 216 may correspond to the CXL switch described in FIGS. 1 and 2.
[0066] FIG. 4 is a diagram for describing a CXL system 50 according to an embodiment. Details described with reference to the aforementioned drawings may be omitted.
[0067] Referring to FIG. 4, the CXL system 50 may include a CXL switch 210, a second operation buffer 600, first to third source external devices SED1 to SED3 711 to 713, a destination external device DED 720, and an orchestrator device 300. The CXL switch 210 may include a first operation buffer 503. The number of destination external devices is not limited thereto.
[0068] Each of the first to third source external devices SED1 to SED3711to 713 and the destination external device DED may be a CXL switch or CXL device described above with reference to FIGS. 1 to 3.
[0069] The CXL switch 210 may provide requests for a plurality of operand data fragments to the first to third source external devices SED1 to SED3711 to 713, respectively, in accordance with an operation order. The CXL switch 210 may receive the plurality of operand data fragments from the first to third source external devices SED1 to SED3711 to 713, respectively. Due to the out-of-order completion characteristics of the CXL system 50, a request order and a reception order may be different from each other. The CXL switch 210 may store the operand data fragments in either the first operation buffer 503 or the second operation buffer 600 based on the operation order. For example, the CXL switch 210 may store an operand data fragment having an operation order that is earlier than or equal to the reference order in the first operation buffer 503, and store an operand data fragment having an operation order that is later than the reference order in the second operation buffer 600.
[0070] For example, the CXL switch 210 may receive a trigger message including the operation order from the orchestrator device 300. The trigger message may include identifiers of the first to third source external devices SED1 to SED3711 to 713, identifiers of the destination external device DED 720, an address of the operand data, a size of the operand data, the operation order of the operand data fragments, etc. However, information included in the trigger message is not limited thereto, and some information may be omitted from the trigger message.
[0071] In some embodiments, the operation order of each operand data fragment may be included in a response message including an operand data fragment provided by an source external device.
[0072] In some embodiments, the operation order of each operand data fragment may be determined based on the address of the operand data fragment. For example, an operand data fragment having a relatively low address value may have a relatively earlier operation order.
[0073] In some embodiments, the CXL switch 210 may initiate an in-switch operation by accessing the first to third source external devices SED1 to SED3711 to 713 based on the trigger message.
[0074] In some embodiments, the CXL switch 210 may generate requests to be provided to the first to third source external devices SED1 to SED3711 to 713 based on at least one piece of information included in the trigger message.
[0075] The orchestrator device 300 may be a fabric manager (220 of FIG. 1), another CXL switch, a CXL device, or a host. However, the embodiment is not limited thereto, and the orchestrator device 300 may be a device that controls an in-switch operation based on collective communication of the CXL system 50.
[0076] The CXL switch 210 may receive operand data from the first to third source external devices SED1 to SED3711 to 713 and perform an in-switch operation based on the operand data, thereby generating operation result data.
[0077] In some embodiments, the CXL switch 210 may provide the operation result data to the destination external device DED 720 after all of a plurality of operation result data fragments included in the operation result data are generated. In some embodiments, the CXL switch 210 may provide the generated operation result data to the destination external device DED 720 each time an operation result data fragment is generated.
[0078] FIG. 5 is a diagram illustrating a CXL switch 210 according to an embodiment.
[0079] Referring to FIG. 5, the CXL switch 210 may include an operation circuit 501, an interface circuit 502, a first operation buffer 503, and a control circuit 504. The CXL switch 210 may further include an internal bus 505, and the operation circuit 501, the interface circuit 502, the first operation buffer 503, and the control circuit 504 may be connected to one another through the internal bus 505.
[0080] The interface circuit 502 may be configured to communicate with a plurality of CXL devices and a plurality of CXL switches based on a CXL protocol. In an embodiment, the interface circuit 502 may provide requests for operand data to a plurality of source external devices. In response to the requests, the interface circuit 502 may receive the operand data from the plurality of source external devices. The interface circuit 502 may be capable of communicating with a second operation buffer (e.g., 600 of FIG. 4). For example, the interface circuit 502 may receive an operand data fragment from the second operation buffer, and the operand data fragment received from the second operation buffer may be transferred to the first operation buffer 503. The interface circuit 502 may provide operation result data to a destination external device. In some embodiments, the interface circuit 502 may receive a trigger message from an orchestrator device (e.g., 300 of FIG. 4).
[0081] The first operation buffer 503 may be configured to store operand data and / or operation result data. In some embodiments, the first operation buffer 503 may include a plurality of buffer regions assigned to a plurality of source external devices, respectively. An operand data fragment received from a source external device may be stored in a corresponding buffer region. In some embodiments, an address value of the operand data fragment may correspond to an operation order. For example, an operand data fragment having a relatively earlier operation order may be stored in a buffer region having a relatively small address value, and an operand data fragment having a relatively later operation order may be stored in a buffer region having a relatively large address value.
[0082] The operation circuit 501 may be configured to perform an in-switch operation based on the operand data stored in the first operation buffer 503. The operation circuit 501 may generate an operation result data fragment based on operand data fragments having the same operation order.
[0083] The control circuit 504 may be configured to control operations of the interface circuit 502, the first operation buffer 503, and the operation circuit 501.
[0084] In an embodiment, the control circuit 504 may determine an operation order of a plurality of operand data fragments based on addresses of operand data included in the trigger message. For example, the control circuit 504 may determine that an operand data fragment having a relatively low address value has a relatively earlier operation order.
[0085] In an embodiment, the control circuit 504 may control the received operand data fragment to be stored in the first operation buffer 503 or the second operation buffer based on an operation order of the received operand data fragment. For example, when an operation order of a first operand data fragment is earlier than or equal to a reference order, the control circuit 504 may control the first operand data fragment to be stored in the first operation buffer 503. When an operation order of a second operand data fragment is later than the reference order, the control circuit 504 may control the second operand data fragment to be stored in the second operation buffer.
[0086] In an embodiment, the interface circuit 502 may receive a first operand data fragment having an operation order earlier than an operation order of a second operand data fragment later than the second operand data fragment is received. That is, even when a reception time of an operand data fragment is relatively late, if an operation order thereof is relatively early, the operand data fragment may be stored in the first operation buffer 503 rather than in the second operation buffer.
[0087] In an embodiment, when the operation circuit 501 generates an operation result data fragment, the control circuit 504 may control the operand data fragments used for the operation result data fragment to be deleted from the first operation buffer 503. Thereafter, the control circuit 504 may control an operand data fragment having the earliest operation order in the second operation buffer to be transferred to the first operation buffer 503. Further, the control circuit 504 may increase the reference order to control an operand data fragment having a later operation order to be stored in the first operation buffer 503.
[0088] FIG. 6 is a diagram for describing an in-switch operation according to an embodiment. FIG. 6 may be described with reference to the aforementioned drawings, and redundant descriptions may be omitted.
[0089] Referring to FIG. 6, the CXL switch 210 may request first to third operand data D1 to D3 from the first to third source external devices SED1 to SED3711 to 713. Each of the first to third operand data D1 to D3 may include a plurality of operand data fragments. For example, the first operand data D1 may include a plurality of operand data fragments D1_1 to D1_16, the second operand data D2 may include a plurality of operand data fragments D2_1 to D2_16, and the third operand data D3 may include a plurality of operand data fragments Db_1 to D3_16.
[0090] In DX_Y indicating an operand data fragment, X may indicate an identifier of an source external device, and Y may indicate an operation order. For example, the operand data fragments D1_1, D2_1, and D3_1 may have the same operation order, and an in-switch operation may be performed on D1_1, D2_1, and D3_1 to generate a single operation result data fragment.
[0091] Depending on a response speed, the first to third source external devices SED1 to SED3711 to 713 may provide operand data fragments at different rates. For example, at a timing of FIG. 6, the plurality of operand data fragments D1_1 to D1_16 included in the first operand data D1 may all be provided to the CXL switch 210, some operand data fragments D2_1 to D2_12 of the plurality of operand data fragments D2_1 to D2_16 included in the second operand data D2 may be provided to the CXL switch 210, and one operand data fragment D3_1 of the plurality of operand data fragments D3_1 to D3_16 included in the third operand data D3 may be provided to the CXL switch 210.
[0092] The CXL switch 210 may store operand data fragments in the first operation buffer 503 or the second operation buffer 600 based on the operation order.
[0093] For example, the CXL switch 210 may store the operand data fragments D1_1 to D1_8, D2_1 to D2_8, and D3_1 of which an operation order is earlier than or equal to the reference order in the first operation buffer 503, and store the operand data fragments D1_9 to D1_16 and D2_9 to D2_12 of which an operation order is later than the reference order in the second operation buffer 600. The reference order may be 8, but the embodiment is not limited thereto.
[0094] In some embodiments, the first operation buffer 503 may include first to third buffer regions 510 to 530 and an output buffer region 540. The first to third buffer regions 510 to 530 may be assigned to the first to third source external devices SED1 to SED3711 to 713, respectively. The output buffer region 540 may store operation result data fragments.
[0095] Each of the first to third buffer regions 510 to 530 may store an operand data fragment having an operation order earlier than or equal to the reference order. For example, the first buffer region 510 may store the operand data fragments D1_1 to D1_8. Similarly, the second buffer region 520 may store the operand data fragments D2_1 to D2_8, and the third buffer region 530 may store the operand data fragment D3_1.
[0096] The reference order may be set to a value associated with the number of operand data fragments that can be stored in the first to third buffer regions 510 to 530. In other words, the reference order may be set to a value associated with a size of the first to third buffer regions 510 to 530. For example, as each of the first to third buffer regions 510 to 530 stores eight operand data fragments, the reference order for the first to third buffer regions 510 to 530 may be 8. However, the embodiments are not limited thereto, and the first to third buffer regions 510 to 530 may have different sizes, and a different reference order may be assigned to each of the first to third buffer regions 510 to 530.
[0097] In some embodiments, the second operation buffer 600 may include first to third buffer regions 610 to 630. The first to third buffer regions 610 to 630 may be assigned to first to third source external devices SED1 to SED3711 to 713, respectively.
[0098] Each of the first to third buffer regions 610 to 630 may store an operand data fragment having an operation order later than the reference order. For example, the first buffer region 610 may store the operand data fragments D1_9 to D1_16. In the same manner, the second buffer region 620 may store the operand data fragments D2_9 to D2_12.
[0099] In some embodiments, each of the first to third buffer regions 510 to 530 and the first to third buffer regions 610 to 630 may include first to fourth sub-buffer regions. For example, the first buffer region 510 may include first to fourth sub-buffer regions 511 to 514, and the second buffer region 520 may include first to fourth sub-buffer regions 521 to 524, and the third buffer region 530 may include first to fourth sub-buffer regions 531 to 534. The first buffer region 610 may include first to fourth sub-buffer regions 611 to 614, and the second buffer region 620 may include first to fourth sub-buffer regions 621 to 624, and the third buffer region 630 may include first to fourth sub-buffer regions 631 to 634.
[0100] The first sub-buffer regions 511, 521, 531, 611, 621, and 631 may store operand data fragments having a (4k+1)-th operation order, the second sub-buffer regions 512, 522, 532, 612, 622, and 632 may store operand data fragments having a (4k+2)-th operation order, the third sub-buffer regions 513, 523, 533, 613, 623, and 633 may store operand data fragments having a (4k+3)-th operation order, and the fourth sub-buffer regions 514, 524, 534, 614, 624, and 634 may store operand data fragments having a (4k+4)-th operation order. “k” may be a non-negative integer.
[0101] An operation circuit 501 may include first to fourth sub-operation circuits S_OC1 to S_OC4 551 to 554. The first sub-operation circuit S_OC1 551 may perform an in-switch operation based on operand data fragments of the same operation order, stored in the first sub-buffer regions 511, 521, and 531, to generate an operation result data fragment. The second sub-operation circuit S_OC2 552 may perform an in-switch operation based on operand data fragments of the same operation order, stored in the second sub-buffer regions 512, 522, and 532, to generate an operation result data fragment. The third sub-operation circuit S_OC3 553 may perform an in-switch operation based on operand data fragments of the same operation order, stored in the third sub-buffer regions 513, 523, and 533, to generate an operation result data fragment. The fourth sub-operation circuit S_OC4 554 may perform an in-switch operation based on operand data fragments of the same operation order, stored in the fourth sub-buffer regions 514, 524, and 534, to generate an operation result data fragment.
[0102] In some embodiments, the operation result data fragments may be stored in the output buffer region 540. In an example, after all the operation result data fragments are stored in the output buffer region 540, the operation result data fragments may be provided to the destination external device DED 720. In an example, when the operation result data fragment is stored in the output buffer region 540, the operation result data fragment stored in the output buffer region 540 may be provided to the destination external device DED 720 regardless of storage of the next operation result data fragment.
[0103] The CXL switch 210 may provide the operation result data fragment and a storage request to the destination external device 720. In some embodiments, the storage request may be a first type of request requiring a response. For example, the storage request may include an M2S RwD packet of a CXL.mem protocol. In some embodiments, the storage request may be a second type of request not requiring a response. For example, the storage request may include a transaction layer packet (TLP) of a CXL.io protocol.
[0104] In some embodiments, when the storage request is the first type of request, the CXL switch 210 may store an operation result data fragment in the output buffer region 540 and provide the operation result data fragment to the destination external device DED 720. When the CXL switch 210 receives a response to the storage request, the CXL switch 210 may delete the operation result data fragment from the output buffer region 540. For example, when a response to the storage request is not received within a preset time, the CXL switch 210 may provide the operation result data fragment stored in the output buffer region 540 to the destination external device DED 720.
[0105] In some embodiments, when the storage request is the second type of request, the CXL switch 210 may immediately provide the operation result data fragment to the destination external device DED 720 without storing the operation result data fragment in the output buffer region 540.
[0106] In other words, according to an embodiment, whether the operation result data fragment is to be stored in the output buffer region 540 may be determined according to a type of the storage request.
[0107] The operand data fragments used for the operation result data fragment may be deleted from the first to third buffer regions 510 to 530.
[0108] In some embodiments, when the operand data fragment is deleted from the first operation buffer 503, the reference order may increase. Therefore, an operand data fragment of the next operation order provided from the first to third source external devices SED1 to SED3711 to 713 may be stored in the first operation buffer 503.
[0109] In some embodiments, the operand data fragment having the earliest operation order in the second operation buffer 600 may be moved to the first operation buffer 503. For example, the operand data fragment D1_9 may be moved from the first sub-buffer region 611 to the first sub-buffer region 511, and the operand data fragment D2_9 may be moved from the second sub-buffer region 621 to the second sub-buffer region 521.
[0110] FIG. 7 is a flowchart for describing an operating method of a CXL switch according to an embodiment. FIG. 7 may be described with reference to FIGS. 1 to 6, and redundant descriptions may be omitted.
[0111] Referring to FIG. 7, in operation S710, the CXL switch 210 may provide a request for operand data fragments to a plurality of external devices. For example, an interface circuit 502 may provide a request for the plurality of operand data fragments to the first to third source external devices SED1 to SED3711 to 713, under the control of a control circuit 504.
[0112] In operation S720, the CXL switch 210 may store the received operand data fragment in either the first operation buffer 503 or the second operation buffer 600, based on the operation order of the operand data fragment. For example, the control circuit 504 may determine the operation order of the operand data fragment received via the interface circuit 502 and, based on a determination result, control the operand data fragment to be stored in the first operation buffer 503 or the second operation buffer 600.
[0113] In operation S730, the CXL switch 210 may generate the operation result data based on the operand data fragment stored in the first operation buffer 503. For example, the operation circuit 501 may perform an in-switch operation based on operand data fragments having the same operation order and generate an operation result data fragment. The plurality of operation result data fragments may form operation result data.
[0114] FIG. 8 is a flowchart for describing an operation of storing an operand data fragment according to an embodiment. FIG. 8 is a flowchart describing in detail operation S720 of FIG. 7.
[0115] Referring to FIG. 8, in operation S721, the CXL switch 210 may receive an operand data fragment. For example, the interface circuit 502 may receive the operand data fragment from a source external device.
[0116] In operation S722, the CXL switch 210 may determine whether the operation order of the received operand data fragment is later than the reference order. In some embodiments, the control circuit 504 may determine the operation order based on the address value of the received operand data fragment and compare the determined operation order with the reference order. In some embodiments, the control circuit 504 may also obtain the operation order of the operand data fragment from a message including the received operand data fragment. In some embodiments, the control circuit 504 may receive the operation order of the operand data fragment from the orchestrator device 300 that controls an in-switch operation of the CXL system.
[0117] When the operation order of the received operand data fragment is not later than the reference order (S722=N), in operation S723, the CXL switch 210 may store the received operand data fragment in the first operation buffer 503. On the other hand, when the operation order of the received operand data fragment is later than the reference order (S722=Y), in operation S724, the CXL switch 210 may store the received operand data fragment in the second operation buffer 600.
[0118] Accordingly, the CXL switch 210 may preferentially store the operand data fragment with an earlier operation order in the first operation buffer 503.
[0119] FIG. 9 is a flowchart for describing a buffer management operation according to an embodiment. FIG. 9 is a flowchart for describing an example of an operation included in operation S730 of FIG. 7.
[0120] Referring to FIG. 9, in operation S731, the CXL switch 210 may generate a first operation result data fragment based on first operand data fragment having the same operation order. For example, the operation circuit 501 may perform a reduce operation based on the operand data fragments having the same operation order, stored in the first operation buffer 503.
[0121] In operation S732, the CXL switch 210 may delete the first operand data fragments from the first operation buffer 503. For example, the control circuit 504 may control the first operand data fragments used to generate the first operation result data fragment to be deleted or invalidated from the first operation buffer 503.
[0122] In operation S733, the CXL switch 210 may move an operand data fragment having the earliest operation order among the operand data fragments stored in the second operation buffer 600 to the first operation buffer 503. For example, the control circuit 504 may control the interface circuit 502 to move the operand data fragment stored in the second operation buffer 600 to the first operation buffer 503.
[0123] FIG. 10 is a flowchart for describing an operation of changing a reference order according to an embodiment. FIG. 10 is a flowchart for describing an example of an operation performed after operation S732 of FIG. 9.
[0124] Referring to FIG. 10, in operation S734, the CXL switch 210 may change the reference order. For example, the control circuit 504 may increment the reference order after the operation circuit 501 generates an operation result data fragment and the operand data fragments used in the corresponding operation are deleted from the first operation buffer 503.
[0125] When the reference order changes, the CXL switch 210 may return to operation S722 to determine a storage position of an operand data fragment to be received later, based on the changed reference order. Accordingly, the control circuit 504 may dynamically control storage positions of the operand data fragments based on a use state and an operation progress of the first operation buffer 503.
[0126] Accordingly, when a remaining capacity becomes available in the first operation buffer 503, operand data fragments required for the next operation may be moved to the first operation buffer 503.
[0127] As above, embodiments have been disclosed in the drawings and specification. Although the embodiments have been described using specific terms herein, they are merely used for the purpose of explaining the technical idea of the disclosure, and are not used to limit the scope of the disclosure described in the claims. It would be fully understood by those of ordinary skill in the art that various modifications and other equivalent embodiments are possible from the embodiments. Accordingly, the true technical scope of the disclosure should be defined by the technical spirit of the appended claims.
[0128] It should be understood that embodiments described herein should be considered in a descriptive sense only and not for purposes of limitation. Descriptions of features or aspects within each embodiment should typically be considered as available for other similar features or aspects in other embodiments. While one or more embodiments have been described with reference to the figures, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the following claims.
Claims
1. An operating method of a compute express link (CXL) switch which comprises a first operation buffer and is connected to a plurality of external devices and to a second operation buffer, the operating method comprising:providing, by the CXL switch, requests for a plurality of operand data fragments to the plurality of external devices;storing, by the CXL switch, the plurality of operand data fragments in the first operation buffer or the second operation buffer, based on an operation order of the plurality of operand data fragments; andgenerating, by the CXL switch, operation result data based on operand data fragments stored in the first operation buffer.
2. The operating method of claim 1, wherein the storing, by the CXL switch, of the plurality of operand data fragments in the first operation buffer or the second operation buffer comprises:storing, in the first operation buffer, a first operand data fragment having an operation order that is earlier than or equal to a reference order; andstoring, in the second operation buffer, a second operand data fragment having an operation order that is later than the reference order.
3. The operating method of claim 2, further comprising:when a first operation result data fragment among a plurality of operation result data fragments included in the operation result data is generated based on the first operand data fragment stored in the first operation buffer, deleting the first operand data fragment from the first operation buffer; andchanging the reference order.
4. The operating method of claim 2, wherein the CXL switch provides a request for the first operand data fragment earlier than a request for the second operand data fragment, andwherein the CXL switch receives the first operand data fragment later than the second operand data fragment.
5. The operating method of claim 1, wherein the generating of the operation result data comprises:generating a first operation result data fragment among a plurality of operation result data fragments included in the operation result data, based on first operand data fragments having a same operation order, the first operand data fragments being stored in the first operation buffer;deleting the first operand data fragments from the first operation buffer; andmoving, to the first operation buffer, an operand data fragment having an earliest operation order among operand data fragments stored in the second operation buffer.
6. The operating method of claim 1, wherein the CXL switch determines the operation order based on addresses corresponding to the plurality of operand data fragments.
7. The operating method of claim 1, wherein the first operation buffer comprises a plurality of first buffer regions respectively assigned to the plurality of external devices,the second operation buffer comprises a plurality of second buffer regions respectively assigned to the plurality of external devices, andthe storing of the plurality of operand data fragments in the first operation buffer or the second operation buffer comprises storing each operand data fragment received from a corresponding external device in a first buffer region or a second buffer region assigned to the corresponding external device.
8. A compute express link (CXL) switch which comprises a first operation buffer and is connected to a plurality of external devices and to a second operation buffer, the CXL switch comprising:an interface circuit configured to receive a plurality of operand data fragments from the plurality of external devices and communicatively connected to the second operation buffer;the first operation buffer configured to store at least one of the plurality of operand data fragments;a control circuit configured to control the plurality of operand data fragments to be stored in the first operation buffer or the second operation buffer, based on an operation order of the plurality of operand data fragments; andan operation circuit configured to generate operation result data based on at least one of the plurality of operand data fragments stored in the first operation buffer.
9. The CXL switch of claim 8, wherein the control circuit is further configured to control a first operand data fragment having an operation order that is earlier than or equal to a reference order among the plurality of operand data fragments to be stored in the first operation buffer and a second operand data fragment having an operation order that is later than the reference order among the plurality of operand data fragments to be stored in the second operation buffer.
10. The CXL switch of claim 9, wherein the operation circuit is further configured to generate a first operation result data fragment among a plurality of operation result data fragments included in the operation result data, based on the first operand data fragment stored in the first operation buffer, andthe control circuit is further configured to control the first operand data fragment to be deleted from the first operation buffer when the first operation result data fragment is generated, and control the reference order to be changed.
11. The CXL switch of claim 9, wherein the interface circuit is further configured to receive the first operand data fragment later than the second operand data fragment.
12. The CXL switch of claim 8, wherein the operation circuit is further configured to generate a first operation result data fragment among a plurality of operation result data fragments included in the operation result data, based on first operand data fragments having a same operation order, the first operand data fragments being stored in the first operation buffer, andthe control circuit is further configured to control the first operand data fragments to be deleted from the first operation buffer and control an operand data fragment having an earliest operation order among operand data fragments stored in the second operation buffer to be moved to the first operation buffer.
13. The CXL switch of claim 8, wherein the control circuit is further configured to determine the operation order based on addresses corresponding to the plurality of operand data fragments.
14. The CXL switch of claim 8, wherein the first operation buffer comprises a plurality of buffer regions respectively assigned to the plurality of external devices, andthe control circuit is further configured to control each operand data fragment received from a corresponding external device to be stored in a buffer region assigned to the corresponding external device.
15. A compute express link (CXL) switch connected to a plurality of external devices, the CXL switch comprising:an interface circuit configured to receive a plurality of operand data fragments from the plurality of external devices;a first operation buffer;a second operation buffer;a control circuit configured to control the plurality of operand data fragments to be stored in the first operation buffer or the second operation buffer, based on an operation order of the plurality of operand data fragments; andan operation circuit configured to generate operation result data based on operand data fragments stored in the first operation buffer.
16. The CXL switch of claim 15, wherein the control circuit is further configured to control a first operand data fragment having an operation order that is earlier than or equal to a reference order among the plurality of operand data fragments to be stored in the first operation buffer and a second operand data fragment having an operation order that is later than the reference order among the plurality of operand data fragments to be stored in the second operation buffer.
17. The CXL switch of claim 16, wherein the interface circuit is further configured to receive the first operand data fragment later than the second operand data fragment.
18. The CXL switch of claim 15, wherein the operation circuit is further configured to generate a first operation result data fragment among a plurality of operation result data fragments included in the operation result data, based on first operand data fragments having a same operation order, the first operand data fragments being stored in the first operation buffer, andthe control circuit is further configured to control the first operand data fragments to be deleted from the first operation buffer and control an operand data fragment having an earliest operation order among operand data fragments stored in the second operation buffer to be moved to the first operation buffer.
19. The CXL switch of claim 15, wherein the control circuit is further configured to determine the operation order based on addresses corresponding to the plurality of operand data fragments.
20. The CXL switch of claim 15, wherein the first operation buffer comprises a plurality of first buffer regions respectively assigned to the plurality of external devices, andthe second operation buffer comprises a plurality of second buffer regions respectively assigned to the plurality of external devices, andthe control circuit is further configured to control each operand data fragment received from a corresponding external device to be stored in a first buffer region or a second buffer region assigned to the corresponding external device.
