Apparatus and method for dynamically optimizing parallel computations - Patents.com

By applying Generalized Amdahl's Law to dynamically allocate computational tasks to the most efficient processing elements, the method addresses inefficiencies in parallel computing systems, improving speed and reducing energy consumption and costs.

JP7575404B2Active Publication Date: 2024-10-29ベルンハルト フローヴィッター
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
JP2021564851
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-04-30
Filing Date
2020-04-29
Publication Date
2024-10-29
Estimated Expiration
2040-04-29

AI Technical Summary

Technical Problem

Current parallel computing systems face inefficiencies due to the limitations imposed by Amdahl's Law, which does not account for the heterogeneity of computational tasks and resources, leading to suboptimal resource allocation and increased energy consumption.

Method used

A method for optimizing resource allocation in parallel computing systems by utilizing a Generalized Amdahl's Law (GAL) to dynamically assign computational tasks to the most efficient processing elements, considering the proportion of parallelizable and non-parallelizable code portions and the performance characteristics of different types of processing elements.

Benefits of technology

Enhances the speed and efficiency of parallel computing by optimizing resource allocation, reducing energy consumption, and minimizing investment costs, while allowing for dynamic adjustment to meet performance and energy constraints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007575404000018
    Figure 0007575404000018
  • Figure 0007575404000001
    Figure 0007575404000001
  • Figure 0007575404000002
    Figure 0007575404000002
Patent Text Reader

Abstract

The present invention provides a method for optimizing a parallel computing system containing multiple types of processing elements by applying a generalized Amdahl's law to the system's speedup, the number of processing elements of each type, and the fraction of each parallelizable code portion. The present invention can be used to determine the changes in accelerator processing elements required to obtain a desired speedup.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to optimizing the processing power of parallel computing systems.

[0002] The exponential growth in computing power available in supercomputers and datacenters observed over the past 30 years is primarily the result of increasing parallelism, which allows for increasing computational concurrency on a chip (multiple cores), on a node (multiple CPUs), and at the system level (increasing number of nodes in a system). While on-chip parallelism in part keeps the energy consumption per chip constant as the number of cores increases, the number of CPUs per node and the number of nodes in a system proportionally increase the power requirements and required investment.

[0003] At the same time, it is becoming clear that different computational tasks can be most effectively performed on different types of hardware. Examples of such computational elements are multi-threaded multi-core CPUs, many-core CPUs, GPUs, TPUs or FPGAs. Also, processors with different types of cores are on the horizon, for example CPUs with additional data flow coprocessors such as Intel's Configurable Spatial Accelerators (CSAs). Examples of different categories of scientific computational tasks are matrix multiplication, sparse matrix multiplication, stencil-based simulation, event-based simulation, deep learning problems, among others, while industrial examples are found in workflows in operations research, computational fluid dynamics (CFD), drug design, among others. Data-intensive computations are dominating in highly parallel computing (HPC) and are becoming more and more important in data centers. It is clear that there is a need to utilize the most power-efficient computational elements for a given task.

[0004] Furthermore, as the complexity of computations increases, the combination of methodological aspects with the category of computational tasks will become more and more important: workflows will dominate the work in supercomputing centers, the scalability of individual programs at different levels of parallelism will increase the problem, and the heterogeneity of tasks executed in data centers will dominate the computation. A typical example is the dynamic allocation of (high throughput) deep learning tasks induced by web-based queries, which often includes the extensive use of databases that occur in data centers.

[0005] The combination and interaction of different hardware resources in the sense of a modular supercomputing system as described in WO 2012 / 049247, or different modules in a data center adapted to the different tasks to be performed, clearly represents an enormous technical challenge if the requirements of current and future complex computational problems have to be met.

[0006] Considerations regarding the design of fast cluster-architectures for exascale computing are given in N. Eicker and Th. Lippert, “An accelerated Cluster-Architecture for the Exascale”, PARS '11, PARS-Mitteilungen, Mitteilungen-Gesellschaft für Informatik eV, Parallel-Algorithmen und Rechnerstrukturen, pp. 110-119, where the relevance of Amdahl's Law is discussed.

[0007] The original version of Amdahl's Law (AL), as discussed in Gene Amdahl, “Validity of the Single Processor Approach to Achieving Large-Scale Computing Capabilities”, AFIPS Conference Proceedings, Band 30, 1967, p.483-485, defines an upper bound on the rate of acceleration S of solving a problem by parallel computing in a highly idealized setting. AL states that "in parallelization, if p is the fraction of a system or program that can be parallelized, and 1-p is the fraction that remains a permutation, then the maximum speedup achievable using k processors is

number

[0008] Amdahl's original example involved a scalar part of a computational problem and a parallel code part, both of which are executed on computational elements of the same technology type. In numerically dominated applications, such code parts can be reasonably specified as a ratio of the number of floating-point operations (flops), while for other types of operations such as integer arithmetic, an equivalent definition can be given. A non-parallelizable scalar code part s can be characterized by the number of scalar flops divided by the total number of flops that occur during the execution of the code, i.e. s = number of scalar flops / total number of flops Similarly, a parallel code portion p that can be distributed to k computational elements for parallel execution is characterized by the number of parallelizable flops divided by the total number of flops that occur during the execution of the code, i.e. p = number of parallelizable flops / total number of flops Let us assume that.

[0009] Therefore, as introduced above, s=1-p. It is clear that the execution time of the scalar part is proportional to s since it can only be calculated on one computational element, but the execution time of part p can be calculated in a time proportional to 1 / k of p when the load can be distributed to k computational elements. Therefore, the acceleration S is:

number

[0010] This formula is called AL. As k approaches infinity, i.e., if the parallel code portion is assumed to be infinitely scalable, the asymptotic growth rate S a of,

number

[0011] From AL it becomes apparent that the percentage of s needs to be reduced to get a reasonable rate of increase.

[0012] The present invention provides a method for allocating resources of a parallel computing system processing one or more computing applications, the parallel computing system comprising a predetermined number of different types of processing elements, i.e. a predetermined number of at least a first type of processing elements and a predetermined number of at least a second type of processing elements, the method comprising: determining, for each computing application, for each type of processing element, parameters representative of a portion of the application code for the application that can be processed in parallel by that type of processing element; determining, using the parameters obtained for the processing of the application, by at least the first type of processing elements and at least the second type of processing elements, a degree to which a predicted processing time for the application changes by varying the number of one or more types of processing elements; and allocating at least the first type of processing elements and at least the second type of processing elements to the one or more computing applications such that utilization of the processing elements of the parallel computing system is optimized.

[0013] In another aspect, the invention provides a method of designing a parallel computing system having a plurality of different types of processing elements, including a plurality of at least a first type of processing elements and a plurality of at least a second type of processing elements, the method comprising: determining, for each type of processing element, a parameter representative of a proportion of corresponding processing tasks that can be processed in parallel by that type of processing element; (i) determining a point at which the processing speed of the system for an application does not change with the number of processing elements of that type in an equation related to the processing speed, the parameters of the first type of processing elements and the second type of processing elements, the number of first type of processing elements, the number of processing elements of that type, and the cost of the first type of processing elements and the second type of processing elements; and (ii) for a desired change in processing time in the parallel computing system, using the determined parameters for each type of processing element to determine a sufficient change in the number of processing elements required to obtain the desired change in processing time; and building the parallel computing system using the determined optimal number.

[0014] In yet another aspect, the present invention provides a method of allocating resources of a parallel computing system processing one or more computing applications, the parallel computing system including a plurality of different types of processing elements including a plurality of at least a first type of processing elements and a plurality of at least a second type of processing elements, the method including: determining, for the computing application, for each type of processing element, parameters representative of a portion of the application code for the application that can be processed in parallel by that type of processing element; determining, using the parameters obtained for processing the application, by the at least the first type of processing elements and the at least the second type of processing elements, a degree to which a predicted processing time for the application changes by varying the number of one or more types of processing elements; and allocating the at least the first type of processing elements and the at least the second type of processing elements to the computing application such that utilization of the processing elements of the parallel computing system is optimized.

[0015] In yet another aspect, the present invention provides a method for designing a parallel computing system including a plurality of processing elements, the parallel computing system including a plurality of at least a first type of processing elements and a plurality of a second type of processing elements, the method comprising: d and setting a first parallelizable portion p of a first concurrency distributed across a first number of processing elements of a first type. d and determining a parallelizable portion p of a second parallelism distributed across a second number of processing elements of a second type. h and determining the value k d ,p d ,p h and using S to determine a second number of processing elements of a second type required to provide the desired increased speed S of the parallel computing system.

[0016] The present invention provides techniques that can be used as a basic method for building modular supercomputers and data centers with interacting computer modules, as well as methods for dynamic operational control of resource allocation in modular systems. The present invention can be used to optimize the design of modular computing and data analysis systems, as well as to optimize the dynamic adjustment of hardware resources in a given modular system.

[0017] The invention can be easily extended to a situation involving a large number of smaller parallel computing systems connected via the Internet to a central system in a data center, a situation that is called edge computing, where the edge computing systems are the basis for the conditions regarding the lowest possible energy consumption and low communication speeds with high latency in interacting with the data center.

[0018] A method is provided for optimizing the effectiveness of parallel and distributed computing with respect to energy, operational and investment costs, as well as performance and other possible criteria. The invention follows a new Generalized Form of Amdahl's Law (GAL). GAL applies to situations where a computational workflow (usually including various interacting programs) or a given single program, respectively, exhibits various parallelisms of its parts or program portions. The method is particularly useful for, but not limited to, computational problems where most of the program portions of the problem can be efficiently executed on fast computing elements, e.g. GPUs, and are scalable to many fine-grained based computing elements, while other program portions, whose performance is limited by the dominant parallelism, are best executed on powerful computing elements, e.g. represented by the cores of today's multi-threaded CPUs.

[0019] Using GAL, a modular supercomputer system or an entire data center consisting of several modules can be designed in an optimal way considering constraints such as investment budget, energy consumption or time to solution, while also mapping the computational problem in an optimal way on the appropriate computational hardware. Depending on the execution properties of the computational process, the resource mapping can be dynamically adjusted by the operation of GAL.

[0020] A preferred embodiment of the invention will now be described, by way of example only, with reference to the accompanying drawing which shows a schematic layout of a parallel computing system. [Brief description of the drawings]

[0021] [Figure 1] FIG. 1 shows a parallel computing system 100 including a plurality of computing nodes 10 and a plurality of booster nodes 20.

[0022] To illustrate an application of the present invention, a description will be given with reference to Fig. 1. Fig. 1 illustrates a parallel computing system 100 including a plurality of computing nodes 10 and a plurality of booster nodes 20. The computing nodes 10 are interconnected with each other, and the booster nodes 20 are also interconnected with each other. A communication infrastructure 30 connects the computing nodes 10 and the booster nodes 20. Each of the computing nodes 10 may be a rack unit equipped with a multi-core CPU chip, and each of the booster nodes 20 may be a rack unit equipped with a multi-core GPU chip.

[0023] In a real situation, when executing a given workflow or individual programs, we will face more than two parallelisms (as used above). i , i=1...n occur, each of which is a different code part p i (i=1 may define scalar parallelism from above). All such program parts contribute to the maximum number of cores k iThis means that k i If the number of computational elements is more than k, i This means that there is no improvement associated with the minimum computation time for that piece of code beyond this. Under these conditions, the above setting of AL:

number

number

[0024] To determine the asymptotic analysis corresponding to the GAL, we first consider all parallel k i can be assumed to be scalable to infinity. The theoretically achievable maximum asymptotic growth rate S a In this case,

number

[0025] Clearly, this is a limiting case, and in practice a computing system can only approximate it. <dのとき

number

number

[0026] In this ideal case, the possible speedup is the sum of the dominant concurrency k dis completely determined by

[0027] On a computing platform provided by a heterogeneous processor, heterogeneous computing node, or modular supercomputer, for example realized by the Cluster Booster system of WO 2012 / 049247, computing elements with different computing characteristics are available. Essentially, in such a situation, different code parts can be assigned to the optimal computing elements and the optimal number of such computing elements for each problem setting.

[0028] To take a useful example, a modular supercomputer can consist of a number of standard CPUs connected by a supercomputer network, and a number of GPUs (together with the hosting (or managing) CPUs required for computation) also connected by a high-speed network. The two networks are assumed to be interlinked and are ideally, but not necessarily, of the same type. An important observation is that today's CPUs and GPUs exhibit very different frequencies in terms of the base speed of their basic computational elements, usually called cores. The difference can be as large as a factor f, where the difference between CPUs and GPUs can be 20≦f≦100, with more or less differences. Similar considerations apply to the other technologies discussed above.

[0029] The present invention exploits this difference in a general sense: Let us suppose that there is a factor f>1 in the peak performance between the computational elements of system C and those of system B. In C we can take a cluster of CPUs, and in B a cluster of "boosters" or GPUs (where the latter are GPUs that do not manage the CPUs, but are devices with computational elements (cores) that matter for our consideration).

[0030] Given a factor f for the peak performance when two different computational elements are involved, the high-performance computational element on system C (usually a small number of computational elements are available) is assigned low parallelism for i≦d, while the scalable code part is assigned to the low-performance computational element on system B (where many are available). We assign f=1 to the latter and measure the performance against the peak performance of the computational element on system B. This means that

number

[0031] Thus, in the asymptotic limit, ignoring similarly less dominant parallelism, the speedup of GAL for systems with different computational elements is

number

[0032] As a result, the dominant parallelism is serviced by powerful compute elements, while scalable parallelism benefits from being able to leverage a much larger number of less powerful (and therefore much cheaper and much less power-hungry) compute elements.

[0033] Thus, on the one hand, GAL provides a design basis and, on the other hand, a dynamic operating basis for optimal parallel execution of tasks exhibiting various concurrency demands in data centers, supercomputer facilities and supercomputing systems.

[0034] In addition to the GAL, the computation speed of a module is determined by the memory and I / O performance characteristics of the processing elements used, the characteristics of the communication systems on the module, and the characteristics of the communication systems between the modules.

[0035] In practice, these functions have different effects for different applications. Therefore, in a first approximation, these characteristics must be taken into account. A depends on the application. The coefficient can be dynamically determined during the execution of the code, allowing to dynamically change the distribution characteristics of the tasks according to the GAL. It can also be determined in advance on some test CPUs and GPUs, respectively, if the purpose is to design a system.

[0036] To describe two modular systems C with low dominant parallelism (d) and B with high dominant parallelism (h), we reduce the GAL to a coupling factor η A can be taken into account in

number

[0037] Given the above formula, the actual objective is to optimize the multiplication rate S. Here, the goal can be thought of as the design of modular systems required for future supercomputing or data centers, as well as the dynamically optimized allocation of resources to operational modular computing systems, i.e., the execution of workflows or modular programs. The formula can be applied to many other objectives.

[0038] Determining the parameters for running a particular program on a modular computing system is straightforward, where the parameters of equation (1) can be determined in advance or immediately during execution to determine a modular system or a configuration of partitions on the system that is optimized for a given application.

[0039] When designing a modular supercomputer or modular datacenter, one can choose the average characteristics of a given portfolio or consider the specific characteristics of the critical codes, depending on the supercomputing or datacenter preferences. The result is a set of average parameters or specific parameters p d ,p h ,η A Constraints, e.g. cost or energy consumption, can also be taken into account.

[0040] To illustrate the idea of ​​optimizing modular architectures, in the following we describe and exercise simple conditions by explicitly performing such optimizations. The considerations made here can be easily generalized to consider more complex conditions by including more than two modules, characteristics of higher order networks or processors, or properties of programs.

[0041] Here, to illustrate the simple example, the investment budget can be fixed to K as a constraint, but as shown, other constraints can also be considered, such as energy consumption, time to solution, throughput, etc. For simplicity, we denote the cost of a module and its interconnections by the number of computational elements and their cost k, respectively. d ,k h and c d ,c h Assuming that the θ is roughly proportional to K=c d k d +c h k h (Formula 2) Follow.

[0042] Inserting equation (2) into equation (1), we get

number

[0043] dS / dk d = 0, an optimal solution can be found that maximizes the multiplication rate. This solution allows determining the optimal number of (in this case) two different types of computational elements (e.g., in terms of CPU and GPU computational cores), namely:

number

[0044] This simple design model can be easily generalized to an extended cost model and can be adapted to more complex conditions including other constraints as well. It is applicable to a variety of different computational elements integrated into a module that is a parallel computer.

[0045] In fact, the dynamic adjustment of the allocation of resources to a given computational task involves a recipe similar to that previously used, the difference being that in this case the overall dimensions of the architecture are fixed.

[0046] A typical problem in a data center is how much more resource is required to double (or any factor of) a given ramp rate while still meeting time to resolution or a particular service level agreement. This problem can be answered directly using equation (1).

[0047] Again, we consider an illustrative and simple example. The starting point here is a set of k d The computing elements may be pre-allocated partitions, the size of which may be pre-selected by the user or determined by any other criteria.

[0048] One problem to be solved is to determine the number of computing elements k required for a corresponding partition of a module B of a modular computing system or data center to achieve a pre-allocated growth rate S. h The question is how much the parameter p d ,p h ,η A We assume that k and f are either known a priori or can be determined during iterative execution of the code. In the latter case, adjustments can be made dynamically during execution of the modular code. As mentioned before, k d is assumed to be a fixed quantity for the problem formulation. A fixed number k on module B h One could also start from constraints derived from the real cost of operations, or from the real cost of computations. Again, the approach can be easily extended to more complex problems or to include more different types of computational elements.

[0049] From a straightforward transformation of equation (1),

number

[0050] A second related issue is how to determine whether the rate of increase S can be reduced to S under possible constraints on changes to the service level agreement on time to resolution. old From the desired S new In this case, applying equation (1), we get

number

[0051] Again, resource allocation can be dynamically adapted. The formula can be easily extended to more complex conditions.

[0052] Obviously, the partition on C can be adjusted as needed. Furthermore, it is also possible to balance resource usage across two (or more) modules in case one resource is scarce or not used.

[0053] The computational nodes 10 can be considered to correspond to a cluster of C, the CPUs mentioned above, and the booster nodes 20 can be considered to correspond to a cluster of B, the GPUs. As indicated above, the invention is not limited to a system of only two types of processing units. Other processing units can also be added to the system, for example a cluster of tensor processing units TPUs, or a cluster of quantum processing units QPUs.

[0054] Applications of the invention related to modular supercomputing can be based on any suitable communication protocol, such as MPI (e.g., Message Passing Interface) or other variations that essentially enable communication between two or more modules.

[0055] The data center architecture considered for the application of the present invention is that of a configurable decomposed infrastructure in the sense of modules, much like a modular supercomputer. Such an architecture will provide a level of flexibility, scalability and predictable performance that is difficult to achieve and cost-prohibitive for a system consisting of fixed building blocks with repeated configurations of CPU, GPU, DRAM and storage, respectively. The application of the present invention on such a configurable decomposed data center architecture can be based on any suitable virtualization protocol. Virtual servers can be composed of such resource modules consisting of computation (CPU), acceleration (GPU), storage (DRAM, SDD, parallel filing system) and network. The virtual servers can be provisioned and reprovisioned for a selected optimization strategy or a specific SLA, applying the GAL concept and its possible extensions. This can be done dynamically.

[0056] A wide variety of variations of edge computing are provided that utilize static or mobile computing elements at the edge that interact with a core system. Application of the present invention allows for optimization of communication between edge elements and a central computing module, similar to or extending the discussion above.

Claims

1. 1. A method of allocating resources of a parallel computing system for processing one or more computing applications, the parallel computing system including two different types of processing elements, a predetermined number of at least a first type of processing elements and a predetermined number of at least a second type of processing elements, the first type of processing elements having a higher processing power than the second type of processing elements, the method comprising: For each computing application, determining, for each type of processing element, parameters representing a portion of application code for said computing application that can be processed in parallel by that type of processing element; using the parameters obtained for processing the computing application by the at least a first type of processing elements and the at least a second type of processing elements to determine an extent to which a predicted processing time for the computing application changes by varying the number of the two types of processing elements; and allocating the at least a first type of processing elements and the at least a second type of processing elements to one or more computing applications such that utilization of the processing elements of the parallel computing system is optimized; A method comprising:

2. 2. The method of claim 1, wherein the first type of processing element has a higher processing capability than the second type of processing element, the determined parameters for the first type of processing element are parallelizable code portions of a lower scalability code portion of an application, and the determined parameters for the second type of processing element are parallelizable code portions of a higher scalability code portion of an application.

3. The method of claim 1 or 2, wherein the first type of processing element is a CPU and the second type of processing element is a GPU.

4. A method as described in any one of claims 1 to 3, wherein the utilization is optimized with respect to performance or with respect to cost.

5. The method of claim 4, wherein the optimization of the utilization with respect to cost is at least one of the cost of operation of the parallel computing system, energy consumption costs, and thermal cooling costs.

6. 4. The method according to claim 1, wherein a service level agreement for providing an agreed time for resolution is used as a constraint for determining the required number of processing elements.

7. The utilization of the processing elements is expressed by the formula [0010] It is optimized by manipulating where S is the acceleration factor, p d is the parallelizable part of the code section with dominant concurrency, p h is a parallelizable part of a code section with parallelism that has higher scalability than the dominant parallelism, k d is the number of processing elements of the first type, k h is the number of processing elements of the second type, η A is the adjustment factor, f is the relative processing speed factor, 7. The method according to any one of claims 1 to 6.

8. the parallel computing system includes one or more additional types of processing elements; a parameter representative of the proportion of corresponding processing tasks that can be processed in parallel by processing elements of each further type is determined for each further type; 8. The method according to any one of claims 1 to 7.

9. 1. A method of allocating resources of a parallel computing system for processing one or more computing applications, the parallel computing system including two different types of processing elements including a plurality of at least a first type of processing elements and a plurality of at least a second type of processing elements, the first type of processing elements having a higher processing power than the second type of processing elements, the method comprising: For each computing application, determining, for each type of processing element, parameters representing a portion of application code for said computing application that can be processed in parallel by that type of processing element; using the parameters obtained for processing the computing application by the at least a first type of processing elements and the at least a second type of processing elements to determine an extent to which a predicted processing time for the computing application changes by varying a number of one or more types of processing elements; and allocating the at least a first type of processing elements and the at least a second type of processing elements to the computing applications such that utilization of the processing elements of the parallel computing system is optimized; A method comprising:

10. The step of assigning is represented by the formula [0025] This is done following the operation of where S is the acceleration factor, p d is the parallelizable part of the code section with dominant concurrency, p h is a parallelizable part of a code section with parallelism that has higher scalability than the dominant parallelism, k d is the number of processing elements of the first type, k h is the number of processing elements of the second type, η A is the adjustment factor, f is the relative processing speed factor, 10. The method of claim 9.

11. 11. The method of claim 9 or 10, wherein the parallel computing system comprises at least one further type of processing element, and one or more further types of processing elements are assigned to the one or more computing applications.

12. 12. The method of claim 9, wherein a service level agreement calling for a particular level of service is used as a constraint for determining allocation of processing element resources to the one or more computing applications.

Citation Information

Patent Citations

  • Global compiler for heterogeneous multiprocessor

    JP2007328416A

  • Virtual server regulating system, virtual server control device and program

    JP2012198843A

  • Computer cluster configurations for handling computational tasks, and methods for operating them.

    JP2013539881A

  • Rolling Resource Credits for Scheduling Virtual Computer Resources

    JP2017526999A

  • Parallel processing systems and method

    US20030195938A1