Computing device
The computing device with P cores and a network architecture efficiently solves large-scale optimization problems by overlapping reception and interaction calculations, addressing scaling and stability issues in Ising machines.
Patent Information
- Application Number
- JP2021143766
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-09-03
- Publication Date
- 2024-08-13
- Estimated Expiration
- 2041-09-03
AI Technical Summary
Existing Ising machines face challenges in scaling up operations while maintaining computational speed and stability, leading to increased communication overhead that prolongs total calculation time.
A computing device with P computing cores, each connected via a network, where each core is assigned a portion of N oscillators, sequentially calculates first and second variables using a simulated branching algorithm to solve optimization problems, overlapping reception and interaction calculations to minimize communication latency.
The solution enables high-speed solving of large-scale optimization problems without prolonging total calculation time due to communication overhead, enhancing computational efficiency and stability.
Smart Images

Figure 0007532323000008 
Figure 0007532323000009 
Figure 0007532323000010
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE Embodiments of the present invention relate to a computing device. [Background technology]
[0002] The optimization of complex systems in a variety of application fields, including finance, logistics, control, and chemistry, often reduces to a mathematical combinatorial optimization problem: finding a combination of discrete values that minimizes a function of discrete variables, called a cost function.
[0003] In recent years, a special-purpose device called an Ising machine that searches for the ground state of the Ising spin model has been attracting attention. Searching for the ground state of the Ising spin model is called the Ising problem. The Ising problem is a combinatorial optimization problem that minimizes the Ising energy. The Ising energy is a cost function given by a quadratic function of the Ising spin, which is a binary variable. An Ising machine is capable of solving such Ising problems at high speed.
[0004] In addition, many practical combinatorial optimization problems can be converted into Ising problems, and many practical combinatorial optimization problems can be solved quickly by using an Ising machine.
[0005] Ising machines are implemented in hardware, for example, as quantum annealers, coherent Ising machines, and quantum bifurcation machines. Quantum annealers use superconducting circuits to achieve quantum annealing. Coherent Ising machines utilize the oscillation phenomenon of a network formed by optical parametric oscillators. Quantum bifurcation machines utilize the quantum mechanical bifurcation phenomenon in a network of parametric oscillators with the Kerr effect. While these hardware-implemented Ising machines have the potential to achieve significant reductions in calculation time, they also have the problem of being difficult to scale up and operate stably.
[0006] It is also possible to calculate a solution to an Ising problem using computational resources such as widely used digital computers or arithmetic circuits. Digital computers can be operated on a larger scale and with greater stability than quantum annealers, coherent Ising machines, quantum bifurcation machines, and the like. However, Ising machines that use computational resources are limited in their computational scale and speed by the computational resources. In order to improve the computational scale and speed of such Ising machines, the computational resources must be increased. However, increasing the computational resources is not easy due to many technical difficulties, such as the semiconductor manufacturing process.
[0007] On the other hand, an Ising machine that is configured with multiple computing resources using scale-out technology may be able to improve performance in proportion to the number of computing resources. However, since an Ising machine that is configured with multiple computing resources must perform calculations while exchanging information between each computing resource, the total calculation time is lengthened due to the communication overhead between the computing resources. [Prior art documents] [Patent documents]
[0008] [Patent Document 1] Patent Publication No. 2021-43667 [Patent Document 2] JP 2020-46887 A [Patent Document 3] JP 2019-159566 A [Non-patent literature]
[0009] [Non-Patent Document 1] K. Tatsumura, M. Yamasaki, H. Goto,“Scaling out Ising machines using a multi-chip architecture for simulated bifurcation”, Nature Electronics, Mar. 2021, P208-217 [Non-Patent Document 2] Hayato Goto, Kosuke Tatsumura, Alexander R. Dixon, “Combinatorial optimization by simulating adiabatic bifurcations in nonlinear Hamiltonian systems”, Science Advances, Vol. 5, no. 4, eaav2372, 19 Apr. 2019 [Non-Patent Document 3] H. Goto, K. Endo, M. Suzuki, Y. Sakai, T. Kanao, Y. Hamakawa, R. Hidaka, M. Yamasaki, K. Tatsumura, “High-performance combinatorial optimization based on classical mechanics”, Science Advances; 7, eabe7953”,Feb. 2021 Summary of the Invention [Problem to be solved by the invention]
[0010] The problem to be solved by the present invention is to quickly solve a large-scale optimization problem while preventing an increase in total calculation time due to communication overhead. [Means for solving the problem]
[0011] A computing device according to an embodiment outputs a solution to an optimization problem of N (N is an integer of 2 or more) discrete variables. The computing device includes P (P is an integer of 2 or more and less than N) computing cores, each connected to a network. A part of N oscillators is exclusively assigned to each of the P computing cores. The N oscillators correspond one-to-one to the N discrete variables, and their positions and momentums change virtually in one-dimensional directions over time. The P computing cores sequentially calculate N first variables representing the positions of the N oscillators and N second variables representing the momentums for each time step from an initial time to an end time. The P computing cores output values based on the N first variables at the end time as values based on the solution to the optimization problem. A k-th (k is an integer of 1 or more and P or less) computing core among the P computing cores is assigned M (M is an integer of 1 or more and less than N) oscillators among the N oscillators. The k-th computation core calculates, for each time step, M first variables corresponding to the assigned M oscillators among the N first variables, and M second variables corresponding to the M oscillators. The k-th computation core has a receiving circuit, an interaction circuit, a time evolution circuit, and a transmitting circuit. The receiving circuit sequentially receives, for each time step, (NM) first variables in the immediately preceding time step calculated by (P-1) computation cores other than the k-th computation core among the P computation cores, one by one through the network. The interaction circuit calculates, for each time step, M intermediate variables corresponding to the M oscillators based on the N first variables in the immediately preceding time step. The time evolution circuit calculates, for each time step, the M first variables and the M second variables in the target time step based on the M first variables in the immediately preceding time step, the M second variables and the M intermediate variables in the immediately preceding time step. The transmission circuit transmits the M first variables calculated by the time evolution circuit to the (P-1) calculation cores via the network for each time step. The interaction circuit includes an intermediate variable memory that stores the M intermediate variables during calculation. For each time step, the interaction circuit sequentially acquires the N first variables of the immediately preceding time step, one portion at a time, and each time the some of the first variables are acquired, a multiplication and accumulation operation is performed row by row on a portion of coupling coefficients corresponding to the acquired some of the first variables in a predetermined M×N submatrix and the acquired some of the first variables, and each time the some of the first variables are acquired, the interaction circuit cumulatively adds each of the results of the row-by-row multiplication and accumulation operation to a corresponding intermediate variable among the M intermediate variables stored in the intermediate variable memory, and for each time step, the interaction circuit starts an operation using the first of the some of the first variables of the N first variables of the immediately preceding time step before the receiving circuit completes receiving all of the (NM) first variables of the immediately preceding time step.For each time step, the interaction circuitry begins calculating the M intermediate variables before the receiving circuitry has completed receiving all of the (NM) first variables of the immediately preceding time step. and after completing a multiply-and-accumulate operation corresponding to the last part of the first variables among the N first variables, outputting the M intermediate variables to the time evolution circuit. . [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a diagram showing the bifurcation phenomenon of the simulated bifurcation algorithm. [Diagram 2] FIG. 1 is a diagram showing the configuration of a computing device according to an embodiment of the present invention. [Diagram 3] A diagram showing the assignment of first and second variables. [Figure 4] FIG. 2 is a diagram showing a coupling matrix set for P computation cores. [Diagram 5] 1 is a flowchart showing a processing flow of a computing device. [Figure 6] FIG. 11 is a diagram showing a first example of the timing of reception and interaction calculations. [Figure 7] FIG. 11 is a diagram showing a second example of the timing of reception and interaction calculations. [Figure 8] FIG. 2 illustrates the configuration of the kth computation core. [Figure 9] FIG. 13 is a diagram for explaining sequential matrix multiplication processing. [Figure 10] FIG. 1 shows a first example of a network connecting P computational cores. [Figure 11] FIG. 13 is a diagram showing the transmission timing of the first variables of each of the P computation cores. [Figure 12] FIG. 13 shows a second example of a network connecting P computational cores. [Figure 13] FIG. 13 shows a third example of a network connecting P computational cores. [Figure 14] FIG. 13 shows a fourth example of a network connecting P computational cores. [Figure 15] FIG. 2 is a diagram showing the configuration of a calculation core including a transfer circuit according to a first example. [Figure 16] FIG. 13 is a diagram showing the configuration of a calculation core including a transfer circuit according to a second example. [Figure 17]FIG. 13 is a diagram showing the configuration of a calculation core including a transfer circuit according to a third example. [Figure 18] FIG. 13 is a diagram showing the configuration of a calculation core including a transfer circuit according to a fourth example. [Figure 19] FIG. 11 is a diagram showing the processing timing of a calculation core including a transfer circuit of a third example. [Figure 20] FIG. 11 is a diagram showing detailed processing timings of a calculation core including a transfer circuit according to a third example. [Figure 21] FIG. 13 is a diagram showing the processing timing of a calculation core including a transfer circuit according to a fourth example. [Figure 22] FIG. 13 is a diagram showing detailed processing timings of a calculation core including a transfer circuit according to a fourth example. [Diagram 23] FIG. 13 is a diagram showing pseudocode indicating the processing contents by a calculation core. [Figure 24] 11 is a flowchart showing a process flow according to the pseudocode. [Diagram 25] FIG. 2 is a diagram showing a configuration of an interaction circuit according to a first example. [Figure 26] FIG. 4 is a diagram showing the contents of calculation processing of the interaction circuit according to the first example. [Figure 27] FIG. 13 is a diagram showing a configuration of an interaction circuit according to a second example. [Figure 28] FIG. 11 is a diagram showing the contents of calculation processing of an interaction circuit according to a second example. [Figure 29] FIG. 13 is a diagram showing a configuration of an interaction circuit according to a third example. [Diagram 30] FIG. 2 is a diagram showing a configuration of a time evolution circuit together with a first memory and a second memory. [Diagram 31] FIG. 2 shows the configuration of a calculation server. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] (Combinatorial optimization problems) An example of a device used to solve the Ising problem is the Ising machine. Equation (1) expresses the energy of the Ising model.
number
[0014] s i , s j represents the spin, which is a binary variable that can take on a value of either +1 or -1. i represents the i-th spin among N spins. s j represents the j-th spin of N spins. i and j are integers between 1 and N. N represents the number of spins and is an integer greater than or equal to 2. h is an array of bias coefficients representing the force acting on each spin. h i is the bias coefficient that represents the force acting on the i-th spin. J is the matrix of coupling coefficients that represent the force acting between two spins. J is an N × N real symmetric matrix with zeros on the diagonal. J i,j represents the coefficient of the element in the i-th row and j-th column of J. In other words, J i,j is the coupling coefficient that represents the force acting between the i-th spin and the j-th spin.
[0015] The Ising machine uses the energy E expressed by equation (1) as an objective function and calculates a solution that minimizes the energy E as much as possible. The solution (s1, s2, . . . , s N ) is called the optimal solution. However, the solution of the Ising model may not be the optimal solution, but may be an approximate solution in which the energy E is close to the minimum value. In other words, the Ising problem may be a problem of calculating not only the optimal solution but also an approximate solution.
[0016] In addition, a 0-1 combinatorial optimization problem in which the objective function is a quadratic function of a discrete variable (bit) that takes the value of either 0 or 1 is called a 0-1 quadratic programming problem. The discrete variable (bit) is expressed as (1+s i ) / 2 operation, s i In other words, the 0-1 quadratic programming problem is equivalent to the Ising problem expressed by equation (1). Therefore, the 0-1 quadratic programming problem can be converted into an Ising problem and a solution can be calculated by an Ising machine.
[0017] (Simulated Branching Algorithm) Non-Patent Documents 2 and 3 propose a simulated bifurcation algorithm as an algorithm for solving 0-1 combinatorial optimization problems. The simulated bifurcation algorithm can quickly solve large-scale 0-1 combinatorial optimization problems using an Ising model realized by a digital computer. The simulated bifurcation algorithm can also quickly solve large-scale 0-1 combinatorial optimization problems using electronic circuits such as a central processing unit (CPU), a microprocessor, a graphics processing unit (GPU), a field-programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a combination of these circuits.
[0018] The simulated bifurcation algorithm uses N first variables x, each of which corresponds to one of the N hypothetical oscillators. i and N second variables y i In the simulated bifurcation algorithm, each of the N oscillators represents a virtual particle with one-dimensional degree of freedom. That is, each of the N oscillators changes its position and momentum in one dimension. The N oscillators correspond one-to-one to the N spins of the Ising problem. Therefore, the N oscillators correspond one-to-one to the N discrete variables of the combinatorial optimization problem. The first variable x i and the second variable y i are all continuous variables expressed as real numbers. The first variable x i represents the position of the i-th transducer among N transducers. The i-th second variable y i represents the momentum of the i-th oscillator, where i is an integer between 1 and N, and represents an index that identifies each of the N oscillators.
[0019] The basic simulated branching algorithm is to calculate the first variable x i and the second variable y i For this, the simultaneous ordinary differential equations of the following equation (2) are numerically solved.
number
[0020] H is the Hamiltonian of the following equation (3).
number
[0021] The coefficient D is a predetermined constant and corresponds to detuning. The coefficient p(t) corresponds to pumping amplitude, and its value increases monotonically according to the number of updates during calculation of the simulated bifurcation algorithm. t is a variable representing time. The initial value of the coefficient p(t) may be set to 0. K is a predetermined constant and corresponds to a positive Kerr coefficient. Note that K may be 0.
[0022] f i represents the external force and is expressed by the following equation (4).
number
[0023] b in Equation (4) i The formula in parentheses in (3) is the first variable x i The formula in parentheses in equation (3) corresponds to the energy E of the Ising model.
[0024] c is a coefficient, which may be, for example, a constant that is predetermined before performing the calculations, and α(t) is a coefficient that increases with p(t).
[0025] The simulated bifurcation algorithm then calculates the first variable x after increasing the value of p(t) from an initial value (e.g., 0) to a predetermined value. i Based on the sign of iThe simulated bifurcation algorithm calculates the value of x i > 0 then sgn(x i )=1, x i If < 0 then sgn(x i )=-1, we use the sign function for spin s i Calculate the value of
[0026] (simulated branching algorithm calculation) The simulated bifurcation algorithm uses the symplectic Euler method to solve the differential equations given by (2), (3) and (4).
[0027] Here, when using the symplectic Euler method, the differential equations given by equations (2), (3), and (4) can be rewritten as a discrete recurrence formula as shown in equation (5).
number
[0028] t represents time, and Δt represents the time step (unit time, time interval).
[0029] When executing the simulated bifurcation algorithm, a digital computer or an electronic circuit such as an FPGA performs the following operations on each of the N first variables x i and the second variable y i sequentially for each time step from the initial time, and the first variable x i and the second variable y i Then, the digital computer or the electronic circuit such as FPGA updates the N first variables x i The value of is binarized using a sign function to output the values of N spins.
[0030] Note that equation (5) is expressed using time t and time step Δt to show the correspondence with the differential equation. However, when the Symplectic Euler method is executed on a digital computer or an electronic circuit such as an FPGA, the algorithm for computing equation (5) does not need to include time t and time step Δt as explicit parameters. For example, when the time step Δt is set to 1, the algorithm for computing equation (5) does not need to include the time step Δt. For example, when time t is not included as an explicit parameter, the algorithm for computing equation (5) can be expressed as x i (t+Δt) to x i The algorithm executes the process with "t" as the updated value of (t). That is, the algorithm that calculates the formula (5) executes the process with "t" as the parameter that specifies the variable of the time step before the update, and "t+Δt" as the parameter that specifies the variable of the time step after the update.
[0031] Figure 1 shows the first variable x when solving an optimization problem using the basic simulated bifurcation algorithm. i When an optimization problem is solved by a basic simulated bifurcation algorithm, a bifurcation phenomenon occurs in which a system transitions from one stable motion state to two stable motion states as the system parameters change. As shown in Figure 1, as the bifurcation phenomenon progresses, the first variable x i are concentrated near -1 or +1.
[0032] Here, in a dynamical system, the change in the position and momentum of each of multiple oscillators over time is called time evolution. Simulating such time evolution using computational resources is called time evolution simulation. A dynamical system in which N oscillators interact with each other is called an N-body oscillator system. The simulated bifurcation algorithm searches for the ground state of an Ising spin model that corresponds to a combinatorial optimization problem by simulating the time evolution of an N-body oscillator system. The simulated bifurcation algorithm is performed by simulating the time evolution of an N-body oscillator system, i and the second variable y isequentially for each time step from the initial time to the end time, and the first variable x i and the second variable y i This allows the simulated bifurcation algorithm to simulate the time evolution of an N-body oscillator system.
[0033] The simulated bifurcation algorithm also executes an interaction calculation for calculating interactions between oscillators and a time evolution calculation for calculating the time evolution of the oscillators. The simulated bifurcation algorithm executes the interaction calculation and the time evolution calculation for each time step from the initial time to the end time.
[0034] The interaction operation is performed by using N b i This is an operation to calculate b i is called an intermediate variable. In the interaction calculation, the i-th intermediate variable b i The input values required to calculate are the N first variables x i It is.
[0035] The time evolution calculation is x in Eq. (5). i (t+Δt) and y i (t+Δt) is calculated. In the time evolution calculation, the i-th first variable x i (t+Δt) and the i-th second variable y i The input value required to calculate (t+Δt) is the i-th intermediate variable b i , the i-th x calculated in the previous time step i (t), and the i-th y calculated in the previous time step i (t).
[0036] In addition, the simulated bifurcation algorithm may execute a part of the time evolution calculation before the interaction calculation. For example, the simulated bifurcation algorithm may execute the N first variables x iEach of the first variables x may be multiplied in advance by a coefficient that is multiplied by the time evolution operation. For example, the simulated bifurcation algorithm may pre-multiply the constants -c and Δt by the N first variables x i After multiplying each of x, the interaction operation may be performed. i The variable multiplied by -c×Δt is x´ i It can be expressed as x´ i x i Since the coefficient is multiplied by x, the corresponding variable representing the position of the oscillator is x i It's the same.
[0037] A 0-1 combinatorial optimization problem can be solved quickly not only by the basic simulated bifurcation algorithm described above, but also by an improved version of the basic simulated bifurcation algorithm. For example, the simulated bifurcation algorithm calculates the first variable x i and the second variable y i The algorithm may be one in which the order of updates is reversed.
[0038] The simulated bifurcation algorithm may alternately execute a momentum update process and a position update process a predetermined number of times in a time evolution calculation for one time step. The momentum update process is a process for updating a first variable x i The momentum difference δy after a short time shorter than the time step is calculated by the FX function with the input i Calculate the momentum difference δy i The second variable y i The position update process updates the second variable y i The difference in position after a short time, δx, is calculated by the FY function with the input i Calculate the difference in position δx i The first variable x i This is a process of updating the
[0039] In addition, the simulated bifurcation algorithm is such that K in equation (5) is set to 0 and the first variable x iand the second variable y i The simulated bifurcation algorithm may execute the calculation by restricting the range of both or one of the first variable x i The value of sgn(x i ) may be used to binarize the first variable x i and the second variable y i A predetermined operation (e.g., adding a predetermined value, multiplying a predetermined value, adding a random number, multiplying a random number) may be performed on one or both of x and x under a predetermined condition. That is, the simulated bifurcation algorithm performs a time evolution of the first variable x i In this algorithm, the influence of bifurcation phenomena is added to the first variable x i and the second variable y i sequentially for each time step from the initial time to the end time, and the first variable x i and the second variable y i Any algorithm may be used as long as it alternates between updating and .
[0040] (Function block configuration) 2 is a diagram showing the configuration of a computing device 10 according to this embodiment. The computing device 10 uses a simulated branching algorithm to output a solution to an optimization problem of N discrete variables.
[0041] The computing device 10 includes a network 12, P computing cores 14, and a management device 16. P is an integer equal to or greater than 2. That is, the computing device 10 includes a plurality of computing cores 14.
[0042] The network 12 connects the P computation cores 14 to transmit and receive information. Each of the P computation cores 14 is a hardware computation resource. Each of the P computation cores 14 is realized, for example, by a circuit mounted on a semiconductor device. Each of the P computation cores 14 is connected to the network 12.
[0043] The management device 16 is connected to each of the P computation cores 14. The management device 16 acquires information representing an optimization problem from an external device. The management device 16 sets initial information for each of the P computation cores 14 based on the acquired information representing the problem. Then, the management device 16 causes the P computation cores 14 to perform parallel calculations of a simulated branching algorithm to calculate a solution to the optimization problem.
[0044] In response to an instruction from the management device 16, the P calculation cores 14 calculate N first variables x i and N second variables y representing momentum i The P calculation cores 14 calculate the N first variables x i The management device 16 then acquires the calculation results from each of the P calculation cores 14, and outputs a solution to the optimization problem based on the calculation results to an external device.
[0045] FIG. 3 illustrates the first variable x i and the second variable y i FIG.
[0046] Each of the P computation cores 14 is exclusively assigned a part of the N oscillators. That is, each of the N oscillators is assigned to one of the P computation cores 14, and is not assigned to two or more computation cores 14. Each of the P computation cores 14 then calculates a first variable x i and the second variable y i Calculate.
[0047] For example, in the case shown in FIG. 3, (N / P) oscillators are exclusively assigned to each of the P computation cores 14. In this case, P is a divisor of N. The first computation core 14 is assigned to x1 to x (N / P) and y1~y (N / P)The second calculation core 14 calculates x (N / P)+1 ~x 2×(N / P) and y (N / P)+1 ~y 2×(N / P) The P-th calculation core 14 calculates x (P-1)(N / P)+1 ~x N , and y (P-1)(N / P)+1 ~y N Calculate.
[0048] It is not necessary that the same number of oscillators are assigned to each of the P computation cores 14. In other words, a different number of oscillators may be assigned to each of the P computation cores 14.
[0049] In this embodiment, M (M is an integer greater than or equal to 1 and less than N) oscillators are assigned to the k-th (k is an integer greater than or equal to 1 and less than P) computation core 14-k. If the same number of oscillators are not assigned to each of the P computation cores 14, M will be a different value for each computation core 14. In this embodiment, the k-th computation core 14 calculates M first variables x A+1 ~x A+M and M second variables y A+1 ~y A+M Here, A is an arbitrary integer equal to or greater than 0 and less than (NM).
[0050] In addition, each of the P computation cores 14 calculates an intermediate variable b i In order to calculate i For this purpose, each of the P calculation cores 14 calculates the M first variables x i is transmitted via the network 12 to the other computation cores 14.
[0051] Furthermore, each of the P calculation cores 14 calculates, for each time step, a plurality of first variables x calculated by the (P-1) calculation cores 14 other than itself. ivia the network 12. Each of the P calculation cores 14 receives the M first variables x i may be received from the network 12, or may be acquired via a shortcut route formed within the network 12 without going through the network 12.
[0052] FIG. 4 is a diagram showing the coupling matrix J set for the P computation cores 14. As shown in FIG.
[0053] Each of the P computation cores 14 has N×N coupling coefficients J i,j Among them, the intermediate variable b i Further, each of the P calculation cores 14 calculates N bias coefficients h i The intermediate variable b corresponding to the assigned oscillator i The fraction used to calculate is set.
[0054] For example, it is assumed that (N / P=M) oscillators are exclusively assigned to each of the P computation cores 14. In this case, each of the P computation cores 14 is assigned N×M coupling coefficients J i,j An N × M submatrix containing
[0055] For example, a submatrix JG1 of (N / P) rows by N columns from the 1st row to the (N / P)th row of the coupling matrix J is set in the first computation core 14. A submatrix JG2 of the {(N / P)+1}th row to the {2×(N / P)}th row of the coupling matrix J is set in the second computation core 14. A submatrix JGP of the {(P-1)(N / P)+1}th row to the Nth row of the coupling matrix J is set in the Nth computation core 14.
[0056] In addition, Fig. 4 shows the N bias coefficients h i are all zero, and each of the P computation cores 14 has a bias coefficient h i This shows an example in which no calculation is performed on
[0057] 5 is a flowchart showing the flow of processing of the computing device 10. The computing device 10 executes processing, for example, according to the flow shown in FIG.
[0058] First, in S101, the management device 16 sets parameters for solving a 0-1 combinatorial optimization problem in the P computation cores 14. Specifically, the management device 16 sets a coupling matrix J and a bias array h in the P computation cores 14. In this case, the management device 16 sets the intermediate variables b i Similarly, the management device 16 sets a submatrix used to calculate the intermediate variable b corresponding to the assigned oscillator in the bias array h for each of the P calculation cores 14. i Set the subarray used to calculate
[0059] Furthermore, the management device 16 sets D, c, K, Δt representing a time step, T representing an end time, p(t) which is a function, and α(t) which is a function to each of the P computation cores 14. p(t) and α(t) are increasing functions which are 0 when t=initial time (e.g., 0) and 1 when t=end time (T). The computation device 10 may set D, c, K, Δt, T, p(t) and α(t) according to values received from an external device, or may set values which are predetermined and cannot be changed.
[0060] Next, in S102, the management device 16 initializes variables set in each of the P computation cores 14. Specifically, the management device 16 initializes a variable t representing a time step to an initial time (for example, 0). Furthermore, the management device 16 initializes N first variables (x1(t) to x N (t)) and N second variables (y1(t) to y N Each of the N first variables (x1(t) to x(t)) is initialized to an initial value received from an external device, a predetermined fixed value, or a random number. N (t)) and N second variables (y1(t) to y NEach of (t)) is set for an assigned computation core 14 among the P computation cores 14.
[0061] Next, the P calculation cores 14 repeat the loop process between S103 and S108 until t becomes equal to or greater than T. In one loop process, the P calculation cores 14 calculate N first variables (x1(t+Δt) to x N (t+Δt)) for the N first variables (x1(t)~x N (t)), and N second variables (y1(t+Δt)~y N In one loop process, the P calculation cores 14 calculate N second variables (y1(t+Δt) to y N (t+Δt)) for the N first variables (x1(t)~x N (t)) and N second variables (y1(t)~y N (t))
[0062] The previous time (t) is a time step (Δt) before the target time (t+Δt). Therefore, the P calculation cores 14 repeat the loop process between S103 and S108 to calculate the N first variables (x1(t) to x N (t)) and N second variables (y1(t)~y N (t) can be updated sequentially for each time step (Δt) from the initial time (t=0) to the end time (t=T).
[0063] In the loop, the P calculation cores 14 execute the processes of S104 to S107.
[0064] In S104, the P calculation cores 14 calculate the N first variables (x1(t) to x NThe P calculation cores 14 transmit and receive the first variable x i to the other calculation cores 14 via the network 12. Then, each of the P calculation cores 14 transmits the first variable x i via the network 12. Each of the P calculation cores 14 receives the first variable x i may be received via the network 12, or may be acquired via a shortcut route formed within the device itself without going through the network 12.
[0065] Here, each of the P computation cores 14 computes N first variables (x1(t) to x N (t)) is received sequentially, one portion at a time.
[0066] For example, N first variables (x1(t)~x N Assume that a communication period for transmitting and receiving the first variable x (t) is time-divided into P time slots. In this case, each of the P calculation cores 14 is exclusively assigned to one of the P time slots. Each of the calculation cores 14 calculates the first variable x i over the network 12. In this case, each of the P computation cores 14 broadcasts a predetermined number of the transmitted first variables x i As a result, each of the P calculation cores 14 receives the N first variables (x1(t) to x N (t)) can be received sequentially, one portion at a time.
[0067] Also, for example, assume that the network 12 connects P computation cores 14 in a ring configuration. In this case, the P computation cores 14 pass the first variable x i For example, each of the P computation cores 14 transmits the first variable x transmitted from the first computation core 14 to which it is directly connected. i Receive (t) and buffer it, and also buffer the first variable x i (t) to a directly connected second computation core 14 other than the first computation core 14. Then, each of the P computation cores 14 performs such a receiving process and a transmitting process on all N first variables x i Repeat until you receive the N first variables x i Each of the N first variables (x1(t) to x(t)) goes around the ring once. N (t)) can be received sequentially, one portion at a time.
[0068] Subsequently, in S105, the P computation cores 14 execute the interaction calculation. More specifically, each of the P computation cores 14 executes the interaction calculation to obtain an intermediate variable b i This allows the P calculation cores 14 to execute the interaction calculations in parallel.
[0069] The interaction operation includes a matrix multiplication operation and a bias addition operation. i The matrix multiplication process for N (t)) and the intermediate variable b i The N coupling coefficients J in the row corresponding to i,1 ~J i,N This is a process of multiplying and adding the intermediate variable b i The bias addition process for the matrix multiplication is performed by adding the intermediate variable b i The bias coefficient h i The bias coefficient h iWhen is 0, the interaction calculation does not include the bias addition process, and is only the matrix multiplication process.
[0070] Here, each of the P calculation cores 14 sequentially executes a part of the interaction calculation. That is, each of the P calculation cores 14 sequentially executes N first variables (x1(t) to x N (t)), the multiplication and accumulation is repeated for each part of the i Cumulatively add to.
[0071] Furthermore, each of the P calculation cores 14 executes sequential interaction calculations in an overlapping manner with the mutual transmission and reception process of S104. That is, each of the P calculation cores 14 executes the first variable x i Before all of the reception is completed, the intermediate variable b i Start calculation of.
[0072] For example, each of the P computation cores 14 computes N first variables (x1(t) to x N Each time a part of (t) is received, the first variable x i Then, each of the P calculation cores 14 buffers a portion of the first variable x i Execute a partial interaction operation on (t) and store the partial interaction operation result in the corresponding intermediate variable b i Then, each of the P calculation cores 14 stores the following first variable x i Then, each of the P calculation cores 14 receives and buffers the newly received first variable x i A partial interaction operation is performed on (t), and the partial interaction operation result is stored as the intermediate variable b i Each of the P calculation cores 14 performs the above process on the N first variables (x1(t) to x N This is repeated for all of the P calculation cores 14. This allows each of the P calculation cores 14 to execute the interaction calculation in an overlapped manner with the mutual transmission and reception processing in S104.
[0073] After the process of S105 is completed, in S106, the P computation cores 14 execute a time evolution calculation. More specifically, each of the P computation cores 14 calculates an intermediate variable b i , the first variable x at the previous time i (t) and the second variable y at the previous time i (t) is used to calculate the time evolution, and the first variable x i (t+Δt) and the second variable y at the target time i Calculate (t+Δt).
[0074] Next, in S107, the P calculation cores 14 add a time step (Δt) to the previous time (t) to update each of the previous time (t) and the target time (t+Δt).
[0075] Next, in S108, the P computing cores 14 repeat the processes from S104 to S107 until t reaches the end time (T). When t reaches the end time (T), the P computing cores 14 exit the loop process between S103 and S108.
[0076] Next, in S109, each of the P calculation cores 14 calculates the first variable (x i The management device 16 transmits the first variable (x i For example, the management device 16 calculates the value of the corresponding spin according to the sign of the first variable (x i If the sign of (T)) is negative, the corresponding spin is set to -1, and if it is positive, the corresponding spin is set to +1. Then, the management device 16 outputs the calculated values of the multiple spins, or values obtained by converting the calculated values of the multiple spins into discrete variables, as a solution to the combinatorial optimization problem.
[0077] By executing the above-mentioned processes of S101 to S109, the calculation device 10 executes a calculation according to the simulated branching algorithm to obtain N first variables (x1(t) to x N (t)) and N second variables (y1(t)~y N (t) can be calculated.
[0078] FIG. 6 shows the first variable x by the kth calculation core 14-k. i FIG. 13 is a diagram showing a first example of the timing of reception and interaction calculation.
[0079] N first variables x are passed around the ring in a bucket brigade fashion. i When transferring the first variable x1, there are some calculation cores 14 that do not start receiving from the first first variable x1. Therefore, not all of the P calculation cores 14 necessarily receive the first variable x1 in order. However, each of the P calculation cores 14 receives the N×N coupling coefficients J i,j The arrangement of the N first variables x i are rearranged and stored in correspondence with the order of reception. As a result, even if reception does not start from the first first variable x1, each of the P calculation cores 14 can perform processing in the same way as when reception starts from the first first variable x1. In the detailed description, the calculation core 14 that does not start reception from the first first variable x1 will be described in the same way as the calculation core 14 that starts reception from the first first variable x1.
[0080] For example, the k-th calculation core 14-k is assigned M oscillators from (A+1)-th to (A+M)-th among N oscillators. In this case, the k-th calculation core 14-k calculates M intermediate variables b A+1 ~b A+M Calculate.
[0081] For example, each of the P computation cores 14 computes N first variables x i Each of the P calculation cores 14 sequentially receives the first variable xi Temporarily buffer the
[0082] In this case, the k-th calculation core 14-k, during the period in which the first first variable x1 is buffered, A+1,1 Multiply and calculate the multiplication value. Coupling coefficient J A+1,1 is the A+1th intermediate variable b A+1 and the coefficient corresponding to the first variable x1. Then, the k-th calculation core 14-k converts the multiplied value into the intermediate variable b A+1 Add to.
[0083] The k-th calculation core 14-k calculates each of the first variables x i The k-th calculation core 14-k performs the same process in each period in which the N-th first variable x N After completing the process for M intermediate variables b A+1 ~b A+M The output is the M intermediate variables b A+1 ~b A+M Each of is initialized to 0 before the interaction operation.
[0084] By executing the above-mentioned process, the k-th calculation core 14-k calculates N first variables x1 to x N The reception process and the interaction calculation can be executed in an overlapped manner.
[0085] FIG. 7 shows the first variable x by the k-th calculation core 14-k. i FIG. 13 is a diagram showing a second example of the timing of reception and interaction calculation.
[0086] For example, each of the P computation cores 14 computes N first variables x1 to x N Each of the P calculation cores 14 may sequentially receive the L first variables x i Temporarily buffer a set of
[0087] In this case, the k-th calculation core 14-k calculates the first variable x1 through the L-th first variable x L During the buffering period of the first set including A+1,1 Furthermore, the k-th calculation core 14-k calculates a multiplication value obtained by multiplying the second first variable x2 to the L-th first variable x L The k-th calculation core 14-k calculates the multiplication values in the same manner up to the L multiplication values. Then, the k-th calculation core 14-k calculates the sum of the L multiplication values as the intermediate variable b A+1 Add to.
[0088] The k-th calculation core 14-k performs the same processing in each period in which the second and subsequent sets are buffered. After completing the processing for the last set, the k-th calculation core 14-k performs the same processing for the M intermediate variables b A+1 ~b A+M Output.
[0089] By executing the above-mentioned process, the k-th calculation core 14-k calculates the N first variables x1 to x N The reception process and the interaction calculation can be executed in an overlapped manner.
[0090] 8 is a diagram showing the configuration of the k-th calculation core 14-k. The k-th calculation core 14-k includes a receiving circuit 22, a calculation circuit 24, and a transmitting circuit .
[0091] The receiving circuit 22 receives, for each time step, (NM) first variables x in the immediately preceding time step calculated by (P-1) calculation cores 14 other than the k-th calculation core 14-k among the P calculation cores 14. i The receiving circuit 22 sequentially receives M first variables x calculated by the k-th calculation core 14-k at each time step. i N first variables x, including i may all be received over network 12.
[0092] At each time step, the calculation circuit 24 calculates the N first variables x i In this way, the calculation circuit 24 performs an interaction calculation based on M intermediate variables b i Furthermore, the calculation circuit 24 calculates M intermediate variables b i , M first variables x in the immediately preceding time step corresponding to M oscillators assigned to the k-th computational core 14-k. i , and the M second variables y i In this way, the calculation circuit 24 performs a time evolution calculation based on the M first variables x i , and M second variables y at the time step of interest i can be calculated.
[0093] The transmission circuit 26 transmits the M first variables x i to the (P-1) computation cores 14 other than the k-th computation core 14-k among the P computation cores 14 via the network 12. Note that the transmission circuit 26 transmits the M first variables x i may be transmitted over the network 12 to the P computational cores 14, including the kth computational core 14-k.
[0094] The computation circuit 24 includes a coefficient memory 32 , a first memory 34 , a second memory 36 , an interaction circuit 38 , a time evolution circuit 40 , and a transfer circuit 42 .
[0095] The coefficient memory 32 stores N×N coupling coefficients J included in the coupling matrix J. i,j Among them, M intermediate variables b iThe M × N coupling coefficients J used to calculate i,j The coefficient memory 32 stores an M×N submatrix including N bias coefficients h i M intermediate variables b corresponding to M oscillators assigned to the k-th computation core 14-k of i The M bias coefficients h i The M×N coupling coefficients J are stored in the coefficient memory 32. i,j and M bias coefficients h i is preset by the management device 16.
[0096] The first memory 34 stores M first variables x corresponding to M oscillators assigned to the k-th calculation core 14-k. i The M first variables x i is updated by the time evolution circuit 40 at each time step. Also, M first variables x i is initially set to a predetermined fixed value or a random number.
[0097] The second memory 36 stores M second variables y corresponding to the M oscillators assigned to the k-th calculation core 14-k. i The M second variables y i is updated by the time evolution circuit 40 at each time step. Also, M second variables y i is initially set to a predetermined fixed value or a random number.
[0098] The interaction circuit 38 calculates the M×N coupling coefficients J stored in the coefficient memory 32 for each time step. i,j M × N submatrix containing M bias coefficients h i , and the N first variables x in the previous time step i Based on this, M intermediate variables b corresponding to M oscillators assigned to the k-th computation core 14-k are iMore specifically, for each time step, the interaction circuit 38 calculates M first variables x i , and (NM) first variables x in the immediately preceding time step calculated by (P-1) calculation cores 14 other than the k-th calculation core 14-k i Based on this, M intermediate variables b corresponding to M oscillators assigned to the k-th computation core 14-k are i Calculate.
[0099] Here, the interaction circuit 38 calculates, for each time step, N first variables x i Then, the interaction circuit 38 sequentially acquires N first variables x i , and execute the interaction operation sequentially for M intermediate variables b i Calculate.
[0100] The interactive circuit 38 also includes an intermediate variable memory 44. The intermediate variable memory 44 stores N first variables x i M intermediate variables b i Memorize.
[0101] Furthermore, the interaction circuit 38 is configured to, at each time step, determine whether the receiving circuit 22 has received the (NM) first variables x i Before completing the reception of all the M intermediate variables b i As a result, the interaction circuit 38 starts the calculation of the (NM) first variables x i This can be executed overlapped with the reception processing.
[0102] Then, the interaction circuit 38 calculates M intermediate variables b i is supplied to the time evolution circuit 40.
[0103] The time evolution circuit 40 calculates, for each time step, M first variables x i , M second variables y i , and M intermediate variables b i Based on the above, the M first variables x i and M second variables y i The time evolution circuit 40 calculates, for each time step, M first variables x i and M second variables y stored in the second memory 36. i Update.
[0104] The time evolution circuit 40 calculates M first variables x i and M second variables y i For example, the time evolution circuit 40 may calculate M first variables x i and M second variables y i may be calculated.
[0105] The transfer circuit 42 transfers, for each time step, the (NM) first variables x k in the immediately preceding time step calculated by the (P-1) calculation cores 14 other than the k-th calculation core 14-k among the P calculation cores 14. i The receiving circuit 22 transfers the M first variables x calculated by the k-th calculation core 14-k from the receiving circuit 22 to the interaction circuit 38. i N first variables x, including i When receiving N first variables x i The receiving circuit 22 transfers all of the M first variables x calculated by the k-th calculation core 14-k from the receiving circuit 22 to the interaction circuit 38. i If the transfer circuit 42 does not receive the M first variables x i is transferred from the time evolution circuit 40 to the interaction circuit 38 via a shortcut.
[0106] In addition, the transfer circuit 42 transfers the M first variables x calculated by the time evolution circuit 40 at each time step. i is transferred from the time evolution circuit 40 to the transmission circuit 26.
[0107] FIG. 9 is a diagram for explaining the sequential matrix multiplication process in the interaction circuit 38. As shown in FIG.
[0108] The interaction circuit 38 performs an interaction operation by using N first variables x i and a matrix multiplication process with a corresponding submatrix in a coupling matrix J of M rows and N columns is executed sequentially for each time step.
[0109] In this embodiment, the interaction circuit 38 receives from the transfer circuit 42 the N first variables x i Let L first variables x i sequentially for each set of P (S121). L is an integer equal to or greater than 1 and less than N. For example, L is a divisor of N. For example, L may be N / P=M.
[0110] The interaction circuit 38 is configured to calculate the L first variables x i Each time the L first variables x i The M×L coupling coefficients J i,j and the L first variables x i Then, the interaction circuit 38 performs a multiplication and accumulation operation on the L first variables x i Each time the multiplication and accumulation operation is performed for each row, the results are stored in the intermediate variable memory 44 as M intermediate variables b i The corresponding intermediate variable b i Then, the interaction circuit 38 accumulates the N first variables x i The last L first variables x i After completing the multiplication and accumulation operations corresponding to ito the time evolution circuit 40 (S124). As a result, the interaction circuit 38 outputs the N first variables x i , and execute the interaction operation sequentially for M intermediate variables b i can be calculated.
[0111] The time evolution circuit 40 calculates the M intermediate variables b i After completing the interaction operation, the M intermediate variables b i The time evolution circuit 40 stores the M intermediate variables b i After the interaction calculation is completed, the M intermediate variables b i The buffer for storing the M intermediate variables b after completing the interaction operation may be provided in the interaction circuit 38 or may be provided on the path between the interaction circuit 38 and the time evolution circuit 40. i The calculation circuit 24 is provided with a buffer for storing M intermediate variables b i The interaction calculations for calculating {overscore (x)} can begin immediately after completing the interaction calculations in the previous time step.
[0112] Note that the interaction circuit 38 calculates the first L first variables x i Before starting the calculation using the M intermediate variables b i That is, the interaction circuit 38 erases the first L first variables x i Before starting the operation with i The value of is set to 0. This allows the interaction circuit 38 to store the correct value in the intermediate variable memory 44.
[0113] Furthermore, the interaction circuit 38 is configured to, at each time step, determine whether the receiving circuit 22 has received the (NM) first variables x i Before completing the reception of all of the N first variables x iThe first L first variables x i As a result, the interaction circuit 38 starts the interaction calculation using the (NM) first variables x i This can be executed overlapped with the reception processing.
[0114] The calculation time of each of the P computing cores 14 is determined by the computational resources. The communication time for receiving and transmitting is determined by the communication throughput and the communication latency, which is the amount of data transferred per unit time. If the calculation time and the communication time are both constant, the total calculation time of each of the P computing cores 14 becomes shorter as the time during which the calculation time and the communication time overlap becomes longer.
[0115] In this embodiment, each of the P calculation cores 14 calculates the (NM) first variables x i Before completing reception of all the P computation cores 14, the interaction circuit 38 starts the interaction calculation. Then, each of the P computation cores 14 executes the reception process and the interaction calculation in an overlapped manner. Therefore, the computation device 10 according to this embodiment can prevent the total computation time of each of the P computation cores 14 from being prolonged due to communication overhead. As a result, the computation device 10 according to this embodiment can solve a large-scale optimization problem at high speed.
[0116] In particular, when the processing time of the interaction calculation is longer than the communication time, the computing device 10 according to the present embodiment can completely eliminate the influence of the communication time on the total operation time of the computing core 14.
[0117] 10 is a diagram showing a first example of the network 12 connecting the P computation cores 14. The network 12 may be, for example, a crossbar network. The network 12 may also be a shared bus. As a result, each of the P computation cores 14 transmits a first variable x iThat is, each of the P computation cores 14 can broadcast the first variable x i can be received directly.
[0118] The network 12 may include an Ethernet switch, an Infin Band switch, or the like. The network 12 may include a router, a distribution device, or the like. In this case, the router, the distribution device, or the like, transmits the first variable x i Temporarily buffer the first buffered variable x i can be broadcast to the P computation cores 14.
[0119] The network 12 assigns a first variable x i As long as the network 12 can broadcast the P computation cores 14, it may be a network of another type, not limited to a crossbar network or a shared bus. For example, the network 12 may be wiring that connects the P computation cores 14 to each other. In this case, the network 12 can greatly reduce the communication latency between the computation cores 14.
[0120] FIG. 11 shows the first variable x of each of the P computation cores 14 when connected by the network 12 of the first example. i FIG. 13 is a diagram showing the transmission timing of
[0121] When the network 12 is a crossbar network or a shared bus or the like in which each of the P computing cores 14 can broadcast, the N first variables x i The communication period during which the M first variables x are transmitted and received is divided into a plurality of time slots. Each of the P calculation cores 14 is exclusively assigned one of the plurality of time slots. Then, the transmission circuit 26 of each of the P calculation cores 14 transmits the calculated M first variables x ito each of the P calculation cores 14 via the network 12. The transmission circuit 26 broadcasts the calculated M first variables x i may be broadcast to (P-1) of the P computation cores 14 excluding itself.
[0122] Thus, when the network 12 is a crossbar network or the like in which each of the P computational cores 14 can broadcast, the N first variables x i Each of the P computation cores 14 is assigned to one of a plurality of time slots obtained by dividing the communication period, and is transmitted through the network 12 in the assigned time slot. Thus, each of the P computation cores 14 is assigned to one of the (NM) first variables x i , or N first variables x i can be received sequentially, part by part.
[0123] 12 is a diagram showing a second example of the network 12 connecting the P computation cores 14. The network 12 may be a ring network that connects the P computation cores 14 in a ring format. In this way, the network 12 can transmit the first variable x calculated by each of the P computation cores 14. i can be transferred cyclically to all P computational cores 14.
[0124] When the network 12 is a ring network, the P computation cores 14 compute the N first variables x i During the communication period in which N first variables x i Each portion is sent and received using a bucket brigade method.
[0125] For example, if the network 12 is a ring network, the receiving circuit 22 of each of the P computing cores 14 receives N first variables x i The first M variables x i (NM) first variables x excludingi Each of the receiver circuits 22 of the P computation cores 14 receives part of each of the M first variables x i N first variables x, including i may be received from the adjacent first computation core 14.
[0126] When the network 12 is a ring network, the transmission circuit 26 of each of the P computation cores 14 further transmits the M first variables x i to an adjacent second computation core 14 different from the first computation core 14 among the P computation cores 14. Furthermore, the transmission circuit 26 of each of the P computation cores 14 transmits the (NM) first variables x i to the second calculation core 14. Note that, during the communication period, the transmission circuit 26 of each of the P calculation cores 14 transmits the first variable x i When the second calculation core 14 receives the first variable x i to the second computational core 14 or not.
[0127] Such a network 12 receives a first variable x transmitted from each of the P computational cores 14. i By making one round of the process, N first variables x i By transmitting in this manner, each of the P computation cores 14 can receive the (NM) first variables x i , or N first variables x i can be received sequentially, part by part.
[0128] 13 is a diagram showing a third example of the network 12 connecting the P computation cores 14. The network 12 may be a multiple ring network connecting the P computation cores 14 in a ring format.
[0129] For example, the network 12 may include a first ring network and a second ring network, where each of the P computing cores 14 communicates in full duplex mode.
[0130] The first ring network connects the P computation cores 14 along a ring-shaped first path and cyclically transfers data in a first direction along the first path. The second ring network connects the P computation cores 14 along the first path and cyclically transfers data in a second direction opposite to the first direction along the first path.
[0131] The first ring network and the second ring network have the same first variable x i Alternatively, one of the first ring network and the second ring network transfers N first variables x i The first group of variables is transferred, and the other group is transferred to the N first variables x i The second group of variables may be transferred other than the first group of variables.
[0132] By being connected by such a network 12, the P computation cores 14 can achieve a faster communication throughput compared to the second example. i After starting to send the first N variables x i In addition, the first ring network and the second ring network have the same N first variables x i When the P calculation cores 14 transfer the N first variables x i All transfers can be completed.
[0133] Fig. 14 is a diagram showing a fourth example of the network 12 connecting P computational cores 14. The network 12 may be configured to include three or more ring networks that connect the P computational cores 14 in a ring format. For example, the network 12 may be connected by a plurality of two-dimensional torus-shaped ring networks as shown in Fig. 13.
[0134] In this case, the P calculation cores 14 transmit a predetermined number of first variables x to adjacent calculation cores 14 in a vertical ring network. i After sending, a predetermined number of first variables x i The process of sending is repeated.
[0135] By being connected by such a network 12, each of the P calculation cores 14 can receive the first variable x calculated by the other calculation cores 14. i Therefore, by being connected by such a network 12, the P calculation cores 14 can receive the N first variables x i All transfers can be completed.
[0136] 15 is a diagram showing a configuration of a calculation core 14 including a transfer circuit 42 of a first example. For example, the network 12 is a crossbar network or a shared bus, and the first variable x i In the case of multicast transmission, the transfer circuit 42 may have the configuration of the first example shown in Fig. 15. That is, the transfer circuit 42 transfers N first variables x i is directly transferred to the interaction circuit 38, and the M first variables x i may be directly transferred to the transmission circuit 26.
[0137] In this case, the receiving circuit 22 receives M first variables x i N first variables x, including i via the network 12. The interaction circuit 38 then receives the N first variables x i All of the above are sequentially acquired from the receiving circuit 22.
[0138] 16 is a diagram showing a configuration of a calculation core 14 including a transfer circuit 42 of a second example. For example, when the network 12 is a crossbar network or a shared bus, the first variable x i In the case where the time evolution circuit 40 is used for multicast transmission, the transfer circuit 42 may have a configuration of the second example shown in Fig. 16. That is, the transfer circuit 42 may have a configuration including a first multiplexer 46. The first multiplexer 46 multiplexes M first variables x i and the (NM) first variables x received by the receiving circuit 22 i The transfer circuit 42 of the second example time-multiplexes the M first variables x i is also transferred to the transmission circuit 26.
[0139] For example, the first multiplexer 46 may be configured to multiplex (NM) first variables x i The first variable x i Before being received by the receiving circuit 22, the M first variables x calculated by the time evolution circuit 40 i to the interaction circuit 38. Such a transfer circuit 42 can shorten the time until the interaction circuit 38 starts to perform an operation. As a result, such a transfer circuit 42 can speed up the time when the interaction circuit 38 completes the operation.
[0140] 17 is a diagram showing a configuration of a calculation core 14 including a transfer circuit 42 of a third example. For example, the network 12 is a ring network, and P calculation cores 14 transfer N first variables x i 17. That is, the transfer circuit 42 may be configured to include a second multiplexer 48. The second multiplexer 48 multiplexes M first variables x i and the (NM) first variables x received by the receiving circuit 22 iThe transfer circuit 42 of the third example time-multiplexes the N first variables x i directly to the interaction circuit 38.
[0141] In this case, the receiving circuit 22 receives M first variables x i N first variables x, including i via the network 12. The interaction circuit 38 then receives the N first variables x i All of the above are sequentially acquired from the receiving circuit 22.
[0142] 18 is a diagram showing a configuration of a calculation core 14 including a transfer circuit 42 of the fourth example. For example, if the network 12 is a ring network, and P calculation cores 14 transfer N first variables x i 18. That is, the transfer circuit 42 may be configured to include a third multiplexer 50. The third multiplexer 50 receives M first variables x i and the (NM) first variables x received by the receiving circuit 22 i and are time multiplexed and supplied to both the transmission circuit 26 and the interaction circuit 38.
[0143] For example, the third multiplexer 50 multiplexes (NM) first variables x i The first variable x i Before being received by the receiving circuit 22, the M first variables x calculated by the time evolution circuit 40 i to the interaction circuit 38. Such a transfer circuit 42 can shorten the time until the interaction circuit 38 starts to perform an operation. As a result, such a transfer circuit 42 can speed up the time when the interaction circuit 38 completes the operation.
[0144] Fig. 19 is a diagram showing the processing timing of each of two computation cores 14 including a transfer circuit 42 of the third example. Fig. 20 is a diagram showing the detailed processing timing of one computation core 14 including a transfer circuit 42 of the third example. Note that, although Fig. 19 shows an example in which all computation cores 14 operate at the same timing, the operation timing of each computation core 14 may be shifted. The timing chart of Fig. 20 shows the timing assuming that the latency for data movement within the computation core 14, the latency for data passing through the receiving circuit 22, and the latency for data passing through the transmitting circuit 26 are zero.
[0145] As shown in FIG. 19 and FIG. 20, the receiving circuit 22 receives N first variables x i The receiving circuit 22 sequentially receives M (here, M=L=N / P) first variables x i The interaction circuit 38 temporarily buffers and outputs the N first variables x i are obtained sequentially for every M pieces.
[0146] The interaction circuit 38 calculates the N first variables x i After receiving all the M intermediate variables b i to the time evolution circuit 40. The time evolution circuit 40 then outputs the M first variables x i After calculating, the calculated M first variables x i The transmission circuit 26 outputs the M first variables x i to the adjacent computation core 14 via the network 12.
[0147] Furthermore, the transmitting circuit 26 transmits the M first variables x i When receiving, the first M variables x i , and the M first variables x iIn this way, the P calculation cores 14 transmit the N first variables x i can be sent and received.
[0148] Here, when the calculation core 14 includes the transfer circuit 42 of the third example, the receiving circuit 22 receives the M first variables x i After the first M first variables x are transmitted over the network 12 and communication latency between the computation cores 14 has elapsed, i Receive.
[0149] When the calculation core 14 includes the transfer circuit 42 of the third example, the interaction circuit 38 transfers the first M first variables x i Initiate an interaction operation on
[0150] In addition, L COMM represents the communication latency between the computing cores 14. JX is the first variable x i After all of the acquisitions are completed, the interaction circuit 38 calculates the M intermediate variables b i This indicates the time until the output is TE The interaction circuit 38 calculates M intermediate variables b i Then, the time evolution circuit 40 outputs M first variables x i P indicates the time until the output. c The time evolution circuit 40 calculates M intermediate variables b i Then, we get the M first variables x i , and until the receiving circuit 22 outputs the first N first variables x i After obtaining the M intermediate variables b i This represents the processing speed until the output.
[0151] Fig. 21 is a diagram showing the processing timing of each of the two computation cores 14 including the transfer circuit 42 of the fourth example. Fig. 22 is a diagram showing the detailed processing timing of one computation core 14 including the transfer circuit 42 of the fourth example. Note that, although Fig. 21 shows an example in which all the computation cores 14 operate at the same timing, the operation timing of each computation core 14 may be shifted. The timing chart of Fig. 22 shows the timing assuming that the latency for data movement within the computation core 14, the latency for data passing through the receiving circuit 22, and the latency for data passing through the transmitting circuit 26 are zero.
[0152] When the calculation core 14 includes the transfer circuit 42 of the fourth example, the interaction circuit 38 transfers the M first variables x i is obtained directly from the time evolution circuit 40.
[0153] Therefore, the interaction circuit 38 receives the first M first variables x from the adjacent calculation cores 14 in the process for each time step. i Before receiving the M first variables x i The receiving circuit 22 also has an internal buffer, and can start processing the M first variables x i Until the interaction operation for is completed, the first M variables x i Buffer the
[0154] The calculation core 14 including the transfer circuit 42 of the fourth example can shorten the processing time for one time step, compared to the case where the calculation core 14 includes the transfer circuit 42 of the third example.
[0155] 23 is a diagram showing a pseudo code 52 illustrating a process flow of the calculation core 14 including the transfer circuit 42 of the fourth example. FIG. 24 is a flowchart showing a process flow of the calculation core 14 when processing is executed according to the pseudo code 52.
[0156] When the calculation core 14 includes the transfer circuit 42 of the fourth example, the calculation core 14 executes the processes shown in FIGS.
[0157] In the pseudocode 52 and the flowchart, t is a variable representing time. Δt is a constant representing a time step. i is an index for identifying M oscillators assigned to the computation core 14 among the N oscillators. j is an index for identifying the N oscillators.
[0158] b i is stored in the intermediate variable memory 44 and is an intermediate variable during the calculation of the interaction operation. i is an intermediate variable that is stored in the interaction circuit 38, the time evolution circuit 40, or a buffer provided between the interaction circuit 38 and the time evolution circuit 40, and is the final calculation result of the interaction calculation.
[0159] x j is the first variable. j x j The first variable is multiplied by a constant (Δt×c). j is a second variable. When the process according to the pseudocode 52 is executed, each of the P calculation cores 14 transmits x′ j Send.
[0160] First, in S201, the calculation core 14 initializes parameters. S201 corresponds to the processing from the first line to the sixth line of the pseudo code 52. Specifically, in the first line, the calculation core 14 sets t to 0. In the second line, the calculation core 14 divides N by P to calculate M, which represents the number of virtual oscillators allocated by the calculation core 14. In the third to sixth lines, the calculation core 14 calculates M b 1~ b M , and M b´ 1~ b´ M Initialize each of to 0.
[0161] Next, the calculation core 14 executes a loop between S202 and S214. The loop between S202 and S214 corresponds to the 7th and 31st lines of the pseudocode 52. Specifically, in the first loop, the calculation core 14 assigns 0 to ncycle, which is a variable representing the number of repetitions, adds 1 to ncycle for each repetition, and exits the loop when ncycle becomes equal to or greater than Nstep, which represents a preset number of repetitions.
[0162] Next, in the loop between S202 and S214, the calculation core 14 executes the loop between S203 and S211. The loop process between S203 and S211 corresponds to the 8th and 25th lines of the pseudocode 52. Specifically, the calculation core 14 assigns 1 to j in the first loop, adds 1 to j for each iteration, and exits the loop when j becomes larger than N.
[0163] In the loop between S203 and S211, first, in S204, the calculation core 14 checks whether the time evolution circuit 40 is x' i is being output. S204 corresponds to the 9th line of the pseudo code 52. Specifically, the calculation core 14 determines whether j is greater than M.
[0164] Time evolution circuit 40 is x´ i If x' is not being output (No in S204), in S205, the calculation core 14 i S205 corresponds to line 16 of the pseudocode 52. Specifically, the calculation core 14 receives x' j The value received by the receiving circuit 22 is substituted into
[0165] Time evolution circuit 40 is x i If y is being output (Yes in S204), the processing in S206 and S207 is executed. j Replying to @sarah_mcdonald j S206 corresponds to line 11 of pseudo code 52.
[0166] In S207, the time evolution circuit 40 calculates y j , x j and x´ j S206 corresponds to lines 12, 13, and 14 of the pseudocode 52. In line 12, the time evolution circuit 40 updates x j By j The FX function that updates j In the 13th line, the time evolution circuit 40 updates y j By x j The FY function updates x j In line 14, the time evolution circuit 40 updates x j Multiply by dt×c to get x´ j Calculate.
[0167] Following the process of S205 or S207, the calculation core 14 executes S208 and S209 to S210 in parallel. In S208, the calculation core 14 calculates x′ received in S205 for each of i=1 to i=M. j The corresponding coupling coefficient J i,j Multiply by the corresponding b i S208 corresponds to lines 18 to 21 of the pseudocode 52. Specifically, the calculation core 14 assigns 1 to i on line 18, adds 1 to i every time the cumulative addition is performed, and ends the cumulative addition process when i becomes larger than M.
[0168] In S209, the calculation core 14 calculates x' j The neighboring computing core 14 to which x' is sent j Determine whether or not x' has arrived. j If x' has not arrived (No in S209), in S210, the calculation core 14 j to the adjacent calculation core 14. If it has arrived (Yes in S209), the calculation core 14 skips the process of S210. S209 to S210 correspond to lines 22 to 24 of the pseudo code 52. Specifically, when j is greater than M×(P−1), the calculation core 14 transmits x′ j to the adjacent computation core 14.
[0169] When the loop between S203 and S211 is completed, the calculation core 14 advances the process to S212. In S212, the calculation core 14 adds Δt to t to update t. S212 corresponds to the 26th line of the pseudocode 52.
[0170] Next, in S213, the calculation core 14 calculates M b' i and M b i S213 corresponds to lines 27 to 29 of the pseudocode 52. Specifically, the calculation core 14 updates b' i 2 i Substitute, then, b i As a result, the calculation core 14 assigns the value stored in the intermediate variable memory 44 to the intermediate variable b', which is the final calculation result of the interaction calculation. i The data can be transferred to a buffer that stores the data.
[0171] Then, the calculation core 14 repeats the loop between S202 and S214 Nstep times, and then ends this flow.
[0172] 25 is a diagram showing a configuration of an interaction circuit 38 according to a first example. In the interaction circuit 38 according to the first example, each of P calculation cores 14 calculates N first variables x1 to x N Let L first variables x i (L is 1 or more and less than N) for sequential reception. The same is true for the interaction circuits 38 and thereafter according to the second and third examples.
[0173] The interaction circuit 38 according to the first to third examples is configured to execute a matrix multiplication process as an interaction operation, but not execute a bias addition process. That is, the interaction circuit 38 according to the first to third examples executes an intermediate variable b i to the bias coefficient h i The configuration does not add
[0174] The interaction circuit 38 according to the first example has M product-sum circuits 60-1 to 60-M, M cumulative-sum circuits 62-1 to 62-M, and an aggregation circuit 64.
[0175] Each of the M product-sum circuits 60-1 to 60-M corresponds one-to-one to the M oscillators assigned to the calculation core 14. Each of the M product-sum circuits 60-1 to 60-M includes L multipliers 66 and a first adder 68. Each of the L multipliers 66 is a multiplier that is used by the interaction circuit 38 to calculate the L first variables x1 to x L Each time we obtain a set of L first variables x1~x L The first variable x of the corresponding i and the corresponding coupling coefficient J included in the coupling matrix J stored in the coefficient memory 32. i,j The first adder 68 adds all the multiplication results of the L multipliers 66. Then, the first adder 68 outputs a product sum value obtained by adding all the multiplication results of the L multipliers 66.
[0176] Each of the M product-sum circuits 60-1 to 60-M according to the first example is a first variable x1 to x2. L In the first example, each of the M product-sum circuits 60-1 to 60-M performs a multiply-and-accumulate operation on L first variables x1 to xm in a plurality of clocks. L It may be a circuit that performs a multiply-and-accumulate operation on
[0177] Each of the M cumulative sum circuits 62-1 to 62-M corresponds one-to-one to the M oscillators assigned to the calculation core 14. Each of the M cumulative sum circuits 62-1 to 62-M includes a second adder 70 and a register 72. Each of the M cumulative sum circuits 62-1 to 62-M calculates L first variables x1 to x LEach time a set of the sum of products is acquired, the second adder 70 acquires a sum of products value from a corresponding one of the M sum of products circuits 60-1 to 60-M. Each time a sum of products value is acquired from a corresponding sum of products circuit 60, the second adder 70 adds the acquired sum of products value to a value stored in the register 72, and writes the result back to the register 72. The register 72 stores a value, and each time a sum of products value is acquired from a corresponding sum of products circuit 60, the stored value is updated.
[0178] The registers 72 included in each of the M cumulative sum circuits 62-1 to 62-M function as the intermediate variable memory 44. That is, in this example, the intermediate variable memory 44 includes M registers 72. The registers 72 included in each of the M cumulative sum circuits 62-1 to 62-M store N first variables x i M intermediate variables b i Remember.
[0179] The aggregation circuit 64 calculates the N first variables x i After the calculations for all of the M intermediate variables b are completed, the values stored in the M registers 72 functioning as the intermediate variable memory 44 are read out and the M intermediate variables b 1~ b M In this case, the aggregation circuit 64 outputs M intermediate variables b 1~ b M are aggregated in a time-division manner and supplied to a time evolution circuit 40.
[0180] In addition, when the time evolution circuit 40 is operated in parallel by a plurality of circuits, the interaction circuit 38 may be provided with a plurality of aggregation circuits 64. In this case, each of the plurality of aggregation circuits 64 calculates M intermediate variables b 1~ Among b2, the corresponding intermediate variables b i and supplies it to one of the multiple circuits included in the time evolution circuit 40.
[0181] Fig. 26 is a diagram showing the contents of the calculation process of the interaction circuit 38 according to the first example shown in Fig. 25. The interaction circuit 38 according to the first example having the configuration shown in Fig. 25 calculates L first variables x i Each time, the L first variables x i The M row × L column submatrix corresponding to the obtained L first variables x i The multiplication and accumulation can be performed for each row.
[0182] The interaction circuit 38 according to the first example then calculates L first variables x i In this way, the interaction circuit 38 according to the first example accumulates the product-sum values of N first variables x i While performing sequential multiplication and accumulation for each L item, M intermediate variables b i can be stored in the intermediate variable memory 44.
[0183] 27 is a diagram showing a configuration of the interaction circuit 38 according to the second example. The interaction circuit 38 according to the second example has (M / 2) product-sum circuits 60-1 to 60-M / 2, (M / 2) cumulative-sum circuits 62-1 to 62-(M / 2), and an aggregation circuit 64.
[0184] Each of the (M / 2) product-sum circuits 60-1 to 60-M / 2 corresponds exclusively to two of the M oscillators assigned to the calculation core 14.
[0185] Each of the (M / 2) product-sum circuits 60-1 to 60-M / 2 has the same configuration as the product-sum circuit 60 according to the first example. However, each of the (M / 2) product-sum circuits 60-1 to 60-M / 2 has L first variables x1 to x L Specifically, in the first cycle, each of the (M / 2) product-sum circuits 60-1 to 60-M / 2 sequentially outputs two product-sum values for L first variables x1 to x L and the L coupling coefficients J in the row corresponding to one of the two corresponding oscillators in the coupling matrix J. i,jIn the second cycle, each of the (M / 2) product-sum circuits 60-1 to 60-M / 2 performs a product-sum operation on the L first variables x1 to x L and the L coupling coefficients J included in the row corresponding to the other of the two corresponding oscillators in the coupling matrix J. i,j and are multiplied and accumulated.
[0186] Each of the (M / 2) cumulative sum circuits 62-1 to 62-M / 2 corresponds exclusively to two of the M oscillators assigned to the calculation core 14.
[0187] Each of the (M / 2) cumulative sum circuits 62-1 to 62-M / 2 includes a second adder 70, a first register 72-1, and a second register 72-2. Each of the (M / 2) cumulative sum circuits 60-1 to 60-M / 2 calculates L first variables x1 to x L Each time a set of (M / 2) product-sum circuits 60-1 to 60-M / 2 is acquired, two product-sum values are sequentially acquired from a corresponding one of the (M / 2) product-sum circuits 60-1 to 60-M / 2. In the first cycle, the second adder 70 adds the acquired product-sum value to the value stored in the first register 72-1, and writes the result again to the first register 72-1. In the second cycle, the second adder 70 adds the acquired product-sum value to the value stored in the second register 72-2, and writes the result again to the second register 72-2.
[0188] A first register 72-1 and a second register 72-2 included in each of the (M / 2) cumulative sum circuits 62-1 to 62-M / 2 function as an intermediate variable memory 44.
[0189] The aggregation circuit 64 calculates the N first variables x i After the calculations for all of the M intermediate variables b are completed, the values stored in the first register 72-1 and the second register 72-2 that function as the intermediate variable memory 44 are read out to obtain the M intermediate variables b 1~ b M to the time evolution circuit 40.
[0190] 28 is a diagram showing the contents of the calculation process of the interaction circuit 38 according to the second example shown in FIG. 27. The interaction circuit 38 according to the second example having the configuration shown in FIG. 27 calculates L first variables x i Each time the interaction circuit 38 acquires L first variables x i The (M / 2) × L submatrix corresponding to the obtained L first variables x i The multiplication and accumulation can be performed for each row.
[0191] The interaction circuit 38 according to the second example is configured to calculate L first variables x i Each time we obtain two multiplication and addition values, we store them in a different intermediate variable b i Therefore, the interaction circuit 38 according to the second example accumulates the N first variables x i While performing sequential multiplication and accumulation for each L item, M intermediate variables b i is stored in the intermediate variable memory 44.
[0192] The interaction circuit 38 according to the second example has (M / 2) product-sum circuits 60-1 to 60-M / 2 and (M / 2) cumulative sum circuits 62-1 to 62-M / 2, but may have (M / 4) product-sum circuits 60-1 to 60-M / 4 and (M / 4) cumulative sum circuits 62-1 to 62-M / 4. In this case, each of the (M / 4) product-sum circuits 60-1 to 60-M / 4 is connected to the L first variables x i Each time the M / 4 cumulative sum circuits 62-1 to 62-M / 4 are acquired, four cycles of product-sum calculation processing are executed. In this case, each of the (M / 4) cumulative sum circuits 62-1 to 62-M / 4 includes a first register 72-1 to a fourth register 72-4. The interaction circuit 38 may have a configuration having other numbers of product-sum circuits 60 and cumulative sum circuits 62.
[0193] 29 is a diagram showing a configuration of an interaction circuit 38 according to a third example. The interaction circuit 38 according to the third example has M product-sum circuits 60-1 to 60-M and M cumulative-sum circuits 62-1 to 62-M. The interaction circuit 38 according to the third example does not have an aggregation circuit 64, as compared with the interaction circuit 38 according to the first example.
[0194] In the third example, M registers 72 included in M cumulative sum circuits 62-1 to 62-M are connected in series. The M registers 72 function as shift registers that transfer stored values to the registers 72 adjacent in the serial direction.
[0195] Then, the N first variables x i After the operations for all of the M intermediate variables b 1~ b M are sequentially supplied to the time evolution circuit 40.
[0196] The M registers 72 may be arranged in multiple columns and connected to each other. In this case, the M registers 72 function as multiple shift registers that transfer the stored values to adjacent registers in the serial direction for each column. Then, the N first variables x i After the operations for all of the M intermediate variables b 1~ b M are sequentially supplied to the time evolution circuit 40 with a predetermined parallelism.
[0197] The interaction circuit 38 according to the third example has M intermediate variables b 1~ b M can be sequentially supplied to the time evolution circuit 40. Note that the interaction circuit 38 may have a configuration in which the first register 72-1 and the second register 72-2 included in each of the (M / 2) cumulative sum circuits 62-1 to 62-M / 2 in the second example are all connected in series to function as a shift register.
[0198] FIG. 30 is a diagram showing the configuration of the time evolution circuit 40 together with the first memory 34 and the second memory 36. As shown in FIG.
[0199] The time evolution circuit 40 includes a buffer circuit 82 , a pre-processing circuit 84 , a function operation circuit 86 , and a post-processing circuit 88 .
[0200] The buffer circuit 82 receives the M intermediate variables b i The buffer circuit 82 may be provided outside the time evolution circuit 40, or may be provided at the output stage of the interaction circuit 38.
[0201] The pre-processing circuit 84 calculates the M intermediate variables b i For example, the pre-processing circuit 84 performs a predetermined arithmetic operation on each of the M intermediate variables b i Multiply each of the M intermediate variables b i When no arithmetic processing is performed for each of the above, the time evolution circuit 40 does not include the pre-processing circuit 84.
[0202] The function calculation circuit 86 calculates M intermediate variables b i When the time evolution circuit 40 does not include the pre-processing circuit 84, the function calculation circuit 86 obtains the intermediate variable b i Get the.
[0203] Furthermore, the function calculation circuit 86 calculates M intermediate variables b i The first variable x of the previous time step i from the first memory 34. At the same time, the function calculation circuit 86 reads out M intermediate variables b i The second variable y i from the second memory 36. Then, the function calculation circuit 86 calculates the M first variables x iand M second variables y i Calculate.
[0204] For example, the function calculation circuit 86 calculates the intermediate variable b i and the first variable x of the previous time step i The second variable y i Calculate.
number
[0205] Furthermore, following the calculation shown in equation (6), the function calculation circuit 86 calculates the second variable y i The first variable x of the target time step is calculated by performing the calculation shown in Eq. (7) using i Calculate.
number
[0206] The function calculation circuit 86 may reverse the order of calculations of the formulas (6) and (7). That is, the function calculation circuit 86 may reverse the order of calculations of the second variable y i The first variable x of the target time step is calculated by performing the calculation shown in Eq. (7) using i Then, the intermediate variable b i and the first variable x at the time step of interest i The second variable y i may be calculated.
[0207] In addition, the function calculation circuit 86 calculates FX(x i ) and FY(y i In this case, the function calculation circuit 86 may repeat the position update process using FX(x i ) and FY(y i ) is an infinitesimal time δt shorter than the time step. The momentum update process isi ) by calculating the momentum difference δy i Calculate the momentum difference δy i to the second variable y i The location update process is a process of adding to FY(y i ) to calculate the difference in position after a small time δt. i Calculate the difference in position δx i the first variable x i In this case, the function operation circuit 86 repeats the momentum update process and the position update process the number of times obtained by dividing dt by δt.
[0208] In addition, the function calculation circuit 86 sets K in the formula (6) to 0 and the first variable x i The value range of the first variable x may be limited to a predetermined range (for example, from −1 to +1). i The value of sgn(x i ) may be used for binarization.
[0209] The post-processing circuit 88 calculates the M first variables x i and M second variables y i The post-processing circuit 88 obtains M first variables x i and M second variables y i For example, the post-processing circuit 88 performs a predetermined arithmetic process or a predetermined operation on each of the M first variables x i and M second variables y i The post-processing circuit 88 may perform a predetermined operation (for example, adding a predetermined value, multiplying a predetermined value, or adding or multiplying a random number) on one or both of the M first variables x i and M second variables y i , no operations or manipulations may be performed on each of the
[0210] Then, the post-processing circuit 88 calculates the M first variables x i In addition, the post-processing circuit 88 stores M second variables y i is stored in the second memory 36.
[0211] Further, the post-processing circuit 88 calculates the M first variables x i to the transfer circuit 42. As a result, the post-processing circuit 88 transfers the calculated M first variables x i can be provided to other computational cores 14 and interaction circuitry 38.
[0212] Note that the function calculation circuit 86 calculates the M first variables x i may be multiplied by c and Δt, respectively. This allows the function calculation circuit 86 to execute the process of multiplying dt×c in equation (6) prior to the interaction calculation.
[0213] 31 is a diagram showing the configuration of the calculation server 103. Each of the P calculation cores 14 may be an information processing device such as the calculation server 103.
[0214] The calculation server 103 includes, for example, a communication circuit 131, a memory 132, processors 133a to 133d, a storage 134, and a host bus adapter 135. The communication circuit 131, the memory 132, the processors 133a to 133d, the storage 134, and the host bus adapter 135 are connected to each other via a bus 136.
[0215] The communication circuit 131 transmits and receives data to and from each device connected to the network 102. The communication circuit 131 is, for example, a NIC (Network Interface Card) of a wired LAN. However, the communication circuit 131 may be another type of communication circuit, such as a wireless LAN. The memory 132 is a memory accessible from the processors 133a to 133d. The memory 132 is, for example, a volatile memory, such as a DRAM or an SRAM. The memory 132 may include other types of memory, such as a non-volatile memory. The processors 133a to 133d share data via the memory 132. The memory 132 may not be composed of all the memories of the calculation server 103. For example, a part of the memory of the calculation server 103 may be a local memory that can be accessed only from any of the processors 133a to 133d.
[0216] The processors 133a to 133d are electronic circuits that execute calculation processing. The processors 133a to 133d may be, for example, any of a CPU, a GPU, an FPGA, and an ASIC, or a combination of these. The processors 133a to 133d may be a CPU core or a CPU thread. When the processors 133a to 133d are CPUs, the number of sockets provided in the calculation server 103 is not particularly limited. The processors 133a to 133d may be connected to other components of the calculation server 103 via a bus such as PCI express.
[0217] 31, the calculation server 103 includes four processors 133a to 133d. However, the number of processors included in one calculation server 103 is not limited to four.
[0218] The storage 134 stores various data including the programs of the calculation server 103, data required for executing the programs, and data generated by the programs. Here, the programs include both the OS and applications. The storage 134 may be a volatile memory and a non-volatile memory, or a combination of these. The volatile memory is, for example, a DRAM or an SRAM. The non-volatile memory is, for example, a NAND flash memory, a NOR flash memory, a ReRAM, or an MRAM. The storage 134 may also include a hard disk, an optical disk, a magnetic tape, or an external storage device.
[0219] The host bus adapter 135 realizes data communication with other calculation servers 103. The host bus adapter 135 is connected to the switch 105 via the cable 104. The host bus adapter 135 is, for example, an HCA (Host Channel Adaptor). The host bus adapter 135, the cable 104, and the switch 105 form an interconnect capable of realizing high throughput, thereby improving the speed of parallel calculation processing.
[0220] The present invention is not limited to the above-described embodiment as it is, and in the implementation stage, the components can be modified and embodied without departing from the gist of the invention. In addition, various inventions can be formed by appropriate combinations of the multiple components disclosed in the above-described embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, components from different embodiments may be appropriately combined. [Explanation of symbols]
[0221] 10 Computing equipment 12 Network 14 Computational Cores 16 Management device 22 Receiving circuit 24 Calculation circuit 26 Transmitting circuit 32 coefficient memory 34 First Memory 36 Second Memory 38 Interaction circuit 40 Time-evolving circuits 42 Transfer Circuit 44 Intermediate variable memory 46 First Multiplexer 48 Second Multiplexer 50 3rd multiplexer 52 Pseudocode 60 Multiply and accumulate circuits 62 Cumulative sum circuit 66 Multiplier 68 First Adder 70 Second adder 72 Registers 82 Buffer circuit 84 Pre-processing circuit 86 Function Calculation Circuit 88 Post-processing circuit
Claims
1. A computing device that outputs solutions to optimization problems involving N discrete variables (where N is an integer greater than or equal to 2), Each has P computing cores connected to the network (where P is an integer between 2 and N, and greater than or equal to 2), Each of the P computing cores is exclusively allocated a portion of the N oscillators. The N oscillators correspond one-to-one with the N discrete variables, and their position and momentum virtually change over time in a one-dimensional direction. The P computing cores sequentially calculate N first variables representing the position and N second variables representing the momentum of the N oscillators at each time step from the initial time to the end time. The P computing cores output the values based on the N first variables at the end time as values based on the solution to the optimization problem. The kth computing core (where k is an integer between 1 and P) among the P computing cores is: Of the N oscillators mentioned above, M oscillators (where M is an integer between 1 and N) are assigned. At each of the aforementioned time steps, M first variables corresponding to the M oscillators assigned from the N first variables, and M second variables corresponding to the M oscillators are calculated. The k-th computing core is, A receiving circuit sequentially receives, in part, each of the (N-M) first variables calculated in the previous time step by (P-1) computing cores other than the kth computing core among the P computing cores, via the network for each time step. An interaction circuit that calculates M intermediate variables corresponding to the M oscillators based on the N first variables in the immediately preceding time step for each of the aforementioned time steps, A time evolution circuit that calculates the M first variables and M second variables in the target time step based on the M first variables, the M second variables, and the M intermediate variables in the immediately preceding time step for each of the aforementioned time steps, A transmission circuit that transmits the M first variables calculated by the time evolution circuit to the (P-1) computing cores via the network at each of the aforementioned time steps, It has, The interaction circuit includes an intermediate variable memory that stores the M intermediate variables during the calculation, At each of the aforementioned time steps, the interaction circuit, The N first variables from the immediately preceding time step are acquired sequentially, one by one, Each time a portion of the first variable is obtained, a sum-of-products operation is performed row by row on a portion of the connection coefficients corresponding to the obtained portion of the first variable from a predetermined M × N submatrix, and on the obtained portion of the first variable. Each time a portion of the first variable is obtained, the sum-of-products calculation result for each row is cumulatively added to the corresponding intermediate variable among the M intermediate variables stored in the intermediate variable memory. The interaction circuit, at each time step, starts a calculation using the first portion of the N first variables from the previous time step before the receiving circuit has finished receiving all of the (N-M) first variables from the previous time step. Furthermore, at each of the time steps, the interaction circuit, Before the receiving circuit completes receiving all (N-M) first variables for the immediately preceding time step, it starts calculating the M intermediate variables. After completing the sum-of-products operation corresponding to the last of the N first variables, the M intermediate variables are output to the time evolution circuit. computing device.
2. The k-th computing core further has a coefficient memory that stores the pre-set M × N submatrices. The computing device according to claim 1.
3. The k-th computing core is, A first memory that stores the M first variables, A second memory that stores the M second variables, It further possesses, At each of the aforementioned time steps, the time evolution circuit updates the M first variables stored in the first memory and updates the M second variables stored in the second memory. The computing device according to claim 1 or 2.
4. The interaction circuit, at each time step, before starting the calculation using the first part of the first variables, erases the M intermediate variables stored in the intermediate variable memory. A computing device according to any one of claims 1 to 3.
5. A computing device that outputs a solution to an optimization problem of N discrete variables (where N is an integer of 2 or more), Each has P computing cores connected to the network (where P is an integer between 2 and N, and greater than or equal to 2), Each of the P computing cores is exclusively allocated a portion of the N oscillators. The N oscillators correspond one-to-one with the N discrete variables, and their position and momentum virtually change over time in a one-dimensional direction. The P computing cores sequentially calculate N first variables representing the position and N second variables representing the momentum of the N oscillators at each time step from the initial time to the end time. The P computing cores output the values based on the N first variables at the end time as values based on the solution to the optimization problem. The kth computing core (where k is an integer between 1 and P) among the P computing cores is: Of the N oscillators mentioned above, M oscillators (where M is an integer between 1 and N) are assigned. At each of the aforementioned time steps, M first variables corresponding to the M oscillators assigned from the N first variables, and M second variables corresponding to the M oscillators are calculated. The k-th computing core is, A receiving circuit sequentially receives, in part, each of the (N-M) first variables calculated in the previous time step by (P-1) computing cores other than the kth computing core among the P computing cores, via the network for each time step. An interaction circuit that calculates M intermediate variables corresponding to the M oscillators based on the N first variables in the immediately preceding time step for each of the aforementioned time steps, A time evolution circuit that calculates the M first variables and M second variables in the target time step based on the M first variables, the M second variables, and the M intermediate variables in the immediately preceding time step for each of the aforementioned time steps, A transmission circuit that transmits the M first variables calculated by the time evolution circuit to the (P-1) computing cores via the network at each of the aforementioned time steps, It has, The interaction circuit includes an intermediate variable memory that stores the M intermediate variables during the calculation, At each of the aforementioned time steps, the interaction circuit starts calculating the M intermediate variables before the receiving circuit has finished receiving all of the (N-M) first variables from the previous time step. The intermediate variable memory has M registers corresponding to the M intermediate variables, Each of the M registers is written with the intermediate value of the corresponding intermediate variable. The M registers are connected in series and function as shift registers that transfer the stored values to adjacent registers in the series direction, or they are arranged in multiple columns and connected column by column and function as multiple shift registers that transfer the stored values to adjacent registers in the series direction for each column. The interaction circuit causes the M registers to function as the shift register or the plurality of shift registers, and supplies the M intermediate variables to the time evolution circuit. computing device.
6. At each of the time steps, the interaction circuit, The N first variables from the immediately preceding time step are acquired sequentially, one by one, Each time a portion of the first variable is obtained, a sum-of-products operation is performed row by row on a portion of the connection coefficients corresponding to the obtained portion of the first variable from a predetermined M × N submatrix, and on the obtained portion of the first variable. Each time a portion of the first variable is obtained, the sum-of-products calculation result for each row is cumulatively added to the corresponding intermediate variable among the M intermediate variables stored in the intermediate variable memory. The interaction circuit, at each time step, starts a calculation using the first portion of the N first variables from the previous time step, before the receiving circuit has finished receiving all of the (N-M) first variables from the previous time step. The computing device according to claim 5.
7. The k-th computing core further comprises a coefficient memory that stores the M × N submatrices set in advance. The computing device according to claim 6.
8. The k-th computing core is A first memory that stores the M first variables, A second memory that stores the M second variables, It further possesses, At each of the aforementioned time steps, the time evolution circuit updates the M first variables stored in the first memory and updates the M second variables stored in the second memory. The computing device according to claim 6 or 7.
9. The interaction circuit, after completing a sum-of-products operation corresponding to the last of the N first variables at each time step, outputs the M intermediate variables to the time evolution circuit. A computing device according to any one of claims 6 to 8.
10. The interaction circuit clears the M intermediate variables stored in the intermediate variable memory before starting an operation using the first part of the first variables at each time step. The computing device according to claim 9.
11. Each of the P computing cores is assigned one of a plurality of time slots obtained by dividing the communication period into time slots during the communication period in which the N first variables are sent and received at each time step. The transmission circuit broadcasts the M first variables calculated within the allocated time slot to the (P-1) computing cores via the network. A computing device according to any one of claims 1 to 10.
12. The receiving circuit receives the M first variables calculated by the time evolution circuit via the network. The interaction circuit sequentially acquires all of the N first variables from the receiving circuit for each time step. The computing device according to claim 11.
13. The k-th computing core further includes a first multiplexer that time-multiplexes the M first variables calculated by the time evolution circuit and the (N-M) first variables received by the receiving circuit and supplies them to the interaction circuit. The interaction circuit sequentially acquires all of the N first variables from the first multiplexer for each time step. The computing device according to claim 11.
14. The network connects the P computing cores by one or more ring networks. The P computing cores each process N first variables x at each time step. i During the communication period in which data is sent and received, N first variables x i Send and receive it in parts using a bucket brigade method. A computing device according to any one of claims 1 to 13.
15. The k-th computing core further includes a second multiplexer that time-multiplexes the M first variables calculated by the time evolution circuit and the (N-M) first variables received by the receiving circuit and supplies them to the transmitting circuit. The receiving circuit receives all of the N first variables from the immediately preceding time step via the network. At each of the aforementioned time steps, the interaction circuit sequentially acquires all of the N first variables from the receiving circuit for the immediately preceding time step. The computing device according to claim 14.
16. The k-th computing core further includes a third multiplexer that time-multiplexes the M first variables calculated by the time evolution circuit and the (N-M) first variables received by the receiving circuit and supplies them to the transmitting circuit. At each of the aforementioned time steps, the interaction circuit sequentially obtains the N first variables from the immediately preceding time step from the third multiplexer. The computing device according to claim 14.
17. The interaction circuit further includes an aggregation circuit that, at each time step, aggregates each of the M intermediate variables stored in the intermediate variable memory in a time-division manner and supplies them to the time evolution circuit. A computing device according to any one of claims 1 to 16.
18. Each of the P computing cores is mounted on a semiconductor device. A computing device according to any one of claims 1 to 17.
19. The network is a bus shared by the P computing cores. The computing device according to claim 18.
Citation Information
Patent Citations
Arithmetic processing device
JP2018092325A
Calculation device
JP2019159566A
Computer
JP2020046887A
Calculation device, display device, and program
JP2020154524A
Information processing device, program, information processing method, and electronic circuit
JP2021043667A
