Runtime determination and communication of implementable capabilities in heterogeneous processing engine architecture
By dynamically identifying the achievable capabilities of processing engines and selecting the best engine, the problem of insufficient performance under power constraints in computing systems is solved, achieving more efficient computing performance and power utilization.
Patent Information
- Application Number
- CN202311850033.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-27
- Filing Date
- 2023-12-29
- Publication Date
- 2024-09-27
AI Technical Summary
As complexity and power constraints increase in computing systems, it is difficult for existing technologies to dynamically identify the optimal processing engine to achieve the highest performance and power efficiency, resulting in insufficient computing speed and computing power.
By dynamically determining the achievable capabilities of each processing engine based on current operating conditions and using the thread scheduler to select the best processing engine to execute the workload, it ensures that the most appropriate engine is selected under different power budgets.
It achieves faster computing speed and higher computing power, improves system performance and power efficiency, and adapts to different data processing needs.
Smart Images

Figure CN118708307A
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate generally to the field of computing, and more particularly to selecting one of multiple processing engines having different capabilities to execute a workload. Background Art
[0002] The complexity of computing systems continues to grow rapidly. Today's computing systems can include multiple heterogeneous processing engines that provide different capabilities, such as high performance, energy efficiency, task efficiency, etc. For example, some processing engines may perform better for different tasks, such as integer, floating point, or vector instruction threads. Other processing engines may be better suited to running power-constrained workloads. The operating system assigns the workload to the best processing engine based on the different capabilities of the available processing engines and the type of workload to be executed, however, system software typically makes static assumptions about the relative power and capabilities of the various processing engines available in the system.
[0003] As computing systems become more complex, more chips on a package increase power constraints and thermal sensitivity. To address power constraints and thermal conditions, computer systems can dynamically adjust the frequency and power of different processing engines, thereby changing the relative capabilities of one or more processing engines. A dynamic solution is needed that optimally identifies the current system configuration and operating conditions to achieve the highest performance and power efficiency, allowing end users with different data processing needs to experience faster computing speeds and higher levels of centralized computing power. Summary of the invention
[0004] According to one embodiment of the present disclosure, a method is provided, comprising: determining a first achievable capability of a first processing engine based on a current operating condition; determining a second achievable capability of a second processing engine based on the current operating condition, wherein the first achievable capability is different in magnitude from the second achievable capability; and selecting one of the first processing engine and the second processing engine to execute a workload; wherein the selection is based on the first achievable capability and the second achievable capability.
[0005] According to one embodiment of the present disclosure, a computer-readable storage medium is provided, including computer-readable instructions, which implement the above method when executed.
[0006] According to one embodiment of the present disclosure, there is provided a device, comprising: a first processing engine having a first achievable capability; a second processing engine having a second achievable capability, wherein the first achievable capability is different in magnitude from the second achievable capability; and a thread scheduler for determining the best processing engine among the first processing engine and the second processing engine to execute a workload, wherein the thread scheduler is used to determine the best processing engine based on the first achievable capability and the second achievable capability.
[0007] According to one embodiment of the present disclosure, a device is provided, comprising: a device for determining a first achievable capability of a first processing engine based on a current operating condition; a device for determining a second achievable capability of a second processing engine based on the current operating condition, wherein the first achievable capability is different in magnitude from the second achievable capability; and a device for selecting one of the first processing engine and the second processing engine to execute a workload; wherein the device for selecting is based on the first achievable capability and the second achievable capability. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The embodiments will be easily understood by the following detailed description in conjunction with the accompanying drawings. For ease of description, similar reference numerals represent similar structural elements. In the figures of the accompanying drawings, the embodiments are shown by way of example and not limitation.
[0009] Figure 1 A computing system according to various embodiments is shown.
[0010] Figure 2 Another computing system is shown in accordance with various embodiments.
[0011] Figure 3 Shown are power / performance curves for two processing engines in accordance with various embodiments.
[0012] Figure 4 A flow diagram is shown that may enable the determination and communication of capabilities in accordance with various embodiments.
[0013] Figure 5 A process performed by a thread scheduler according to various embodiments is shown. DETAILED DESCRIPTION
[0014] Embodiments described herein may include apparatus, systems, techniques, and / or processes for computing systems with heterogeneous processing engines. The heterogeneous processing engines may have different capabilities, which may change dynamically during system operation, for example, due to changes in the power budget, frequency, voltage, etc. of each processing engine. By dynamically exposing and updating the runtime capabilities of each processing engine based on the current operating conditions, the operating system or system software can select the best processing engine for a given task, thereby providing users with more performance, power efficiency, and a better experience.
[0015] In the following description, various aspects of the illustrative implementation will be described using terms commonly used by those skilled in the art to convey the essence of their work to other technicians in the field. However, it is obvious to those skilled in the art that the embodiments of the present disclosure can be practiced with only some of the described aspects. For the purpose of explanation, specific numbers, materials and configurations are given to provide a comprehensive understanding of the illustrative implementation. It will be obvious to those skilled in the art that the embodiments of the present disclosure can be practiced without specific details. In other cases, well-known features are omitted or simplified to avoid confusing the illustrative implementation.
[0016] In the detailed description below, reference is made to the accompanying drawings forming a part of this document, wherein the same numerals represent the same parts throughout, and embodiments of the subject matter of the present disclosure are shown by way of example in the accompanying drawings. It should be understood that other embodiments may be utilized and structural or logical changes may be made without departing from the scope of the present disclosure. Therefore, the following detailed description should not be considered restrictive, and the scope of the embodiments is defined by the appended claims and their equivalents.
[0017] For purposes of this disclosure, the phrase "A and / or B" means (A), (B), or (A and B). For purposes of this disclosure, the phrase "A, B, and / or C" means (A), (B), (C), (A and B), (A and C), (B and C), or (A, B, and C).
[0018] The description may use perspective-based descriptions, such as top / bottom, inside / outside, over / under, etc. Such descriptions are merely for facilitating discussion and are not intended to limit the application of the embodiments described herein to any particular orientation.
[0019] The specification may use the phrases "in an embodiment" or "in multiple embodiments", which may refer to one or more of the same or different embodiments. In addition, the terms "including", "comprising", "having", etc. used in relation to the embodiments of the present disclosure are synonymous.
[0020] The term "coupled" and its derivatives may be used herein. "Coupled" may mean one or more of the following. "Coupled" may mean that two or more elements are in direct physical or electrical contact. However, "coupled" may also mean that two or more elements are in indirect contact with each other, but still cooperate or interact with each other, and may mean that one or more other elements are coupled or connected between the elements referred to as being coupled to each other. The term "directly coupled" may mean that two or more elements are in direct contact.
[0021] As used herein, the term "module" may refer to an application-specific integrated circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group) and / or memory (shared, dedicated, or group) that executes one or more software or firmware programs, a combinational logic circuit, and / or other appropriate components that provide the described functionality, are part of, or include the above.
[0022] Figure 1 A computing system according to various embodiments is shown. The system 100 can be any type of computing platform, from a small portable device such as a smartphone, a tablet computer, etc. to a large device such as a client system, a desktop or workstation system, a server system, etc. The system 100 includes a communication channel 102, and one or more input / output (I / O) devices 104 and one or more cores 106 communicate with a memory 108 through the communication channel 102. A core-to-mesh (C2M) unit 112 is coupled to the core 106. The C2M unit 112 operates to process a request for a memory transaction from the core 106 and send the corresponding transaction to the memory 108. The C2M unit 112 can further process the memory transaction from the core, for example, by mapping a virtual address to a physical address, etc. to generate a corresponding memory transaction sent to the memory 108 through the communication channel 102.
[0023] According to some embodiments, the I / O devices 104 and the cores 106 may be heterogeneous, i.e., different processing engines. The cores 106 have been referred to as processing engines, but it should be understood that according to some embodiments, additional logic and circuits may also be included in the cores 106. Examples of I / O devices 104 and cores 106 may include any type of processing engine, such as a central processing unit (CPU), a graphics processing unit (GPU), a large computing system or a small microcontroller, various peripheral component interconnect express (PCIe) devices, a phase-locked loop (PLL) unit, an input / output (I / O) unit, an application-specific integrated circuit (ASIC) unit, a field programmable gate array unit, a graphics card, an accelerator, a three-dimensional integrated circuit (3D IC), a neural network, a video processing core, a matrix core, a computing accelerator, etc. Note that some I / O devices 104 and / or cores 106 may include a processor complex, which may include one or more cores or processing engines. Some processing engines of the system 100 may be optimized to run integer, floating point, or vector instructions, and / or power-constrained workloads. Some processing engines of system 100 may include computing accelerators capable of addressing machine learning inference tasks.
[0024] One or more of the processing engines of system 100 may be large processing engines designated to run foreground and / or high-performance applications. Another of the processing engines of system 100 may be a small computing engine designated to run low-priority background processes. Additionally, another of the processing engines may be on a low-power domain of system 100, also processing low-priority background processes.
[0025] In an embodiment, each core 106 and C2M 112 is a component of a system on chip (SoC). In an embodiment, multiple cores 106 and one or more C2Ms 112 are components of a SoC. In an embodiment, most components of system 100 are in a single package with multiple chips or multiple systems.
[0026] The mesh to memory (mesh to memory, M2M) unit 122 receives and processes memory transactions of the memory controller 124 received from the communication channel 102. These received memory transactions may originate from any of the I / O devices 104 and the core 106, and may originate from other devices not shown. The memory controller 124 controls memory access to the memory 108. The memory 108 may be implemented as a shared virtual memory (SVM). In an embodiment, the memory access controller 124 and the M2M 122 are components of the SoC. In an embodiment, the memory 108, the memory controller 124, and the M2M 122 are components of the SoC. In an embodiment, the memory controller 124, the M2M 122, the core 106, and the C2M 112 are components of a system on chip (SoC).
[0027] According to various embodiments, the memory controller 124 may be used to control one or more different memory system clock domains or channels, each memory system clock domain or channel being used to service a different combination of processing engine types.
[0028] Although the configuration of system 100 has been described, alternative embodiments may have different configurations. Figure 1 , but alternative embodiments may include additional components that facilitate operation of system 100 .
[0029] Reference now Figure 2 , a block diagram of a representative computing system according to various embodiments is shown. The computing system 200 can be any type of computing platform, from a small portable device such as a smartphone, a tablet computer, etc. to a large device such as a client system, such as a desktop or workstation system, a server system, etc.
[0030] like Figure 2 As shown, computing system 200 includes a first core domain 210 having a plurality of first cores 212a-212d. In an example, these cores may be low-power cores, such as in-order cores. In turn, these cores are coupled to a cache memory 215 of core domain 210. In addition, computing system 200 includes a second core domain 220. Figure 2 In the illustration of , the second core domain 220 has a plurality of second cores 222a-222d. In an example, these cores may be cores with higher power consumption than the first core 212. In an embodiment, the second cores may be out-of-order cores. In turn, these cores are coupled to the cache memory 225 of the core domain 220. Note that although Figure 2 The example shown includes 4 cores in each domain, but it is understood that in other examples, there may be more or fewer cores in a given domain. In examples, the cores may be on different dies and / or may be virtual cores.
[0031] Further references Figure 2 , a graphics domain 230 is also provided, which may include one or more graphics processing units (GPUs) configured to independently perform graphics and other workloads, such as provided by one or more cores of core domains 210 and 220. For example, in addition to providing graphics and display rendering operations, GPU domain 230 may also be used to provide display support for various screen sizes.
[0032] As shown, each domain is coupled to a coherent interconnect 240, which in an embodiment may be a cache coherent interconnect structure, which in turn is coupled to an integrated memory controller 250. In some examples, the coherent interconnect 240 may include a shared cache memory, such as an L3 cache. In an embodiment, the memory controller 250 may be a direct memory controller to provide multiple communication channels with off-chip memory, such as multiple channels of DRAM (not shown for ease of illustration).
[0033] In different examples, the number of core domains may be different. For example, for a low-power SoC suitable for incorporation into a mobile computing device, there may be a limited number of core domains, such as Figure 2 As shown. Further, in such a low-power SoC, the core domain 220 including higher power cores may have a smaller number of such higher power cores. For example, in one implementation, two cores 222 may be provided to enable operation at a reduced power consumption level. In addition, different core domains may also be coupled to an interrupt controller to enable dynamic exchange of workloads between different domains.
[0034] In other embodiments, there may be a greater number of core domains and additional optional logic, as the computing system may be scaled to higher performance (and power) levels to incorporate other computing devices, such as desktops, servers, high performance computing systems, base stations, and the like. As one such example, four core domains may be provided, each with a given number of out-of-order cores. Furthermore, one or more accelerators may be provided in addition to optional GPU support to provide optimized hardware support for specific functions (e.g., network services, network processing, switching, and the like). Furthermore, there may be input / output interfaces to couple such accelerators to off-chip components.
[0035] Computing system 100 and computing system 200 may include multiple heterogeneous processing engines that handle different applications with different performance requirements. Each core may operate at a different frequency and voltage level and have a different power budget, each of which may be dynamically adjusted according to the needs of the computing system. In addition, the relative capabilities of the processing engines may change periodically during the operation of the computing system. According to various embodiments, the various capabilities of the processing engines may include performance, energy efficiency, effective cache size, memory bandwidth and / or latency, etc. Other capability change events may occur during runtime, such as dynamically adjusting the core microarchitecture by shutting down execution units, changing the size of the out-of-order window, etc. to meet the power budget and other system constraints.
[0036] According to various embodiments, the capacity of each processing engine may be periodically determined taking into account current operating conditions and changes in the capacity delivered to the operating system of the computing system. Performance is the product of the work that can be completed per clock cycle (instructions per cycle (IPC)) and the operating frequency. The power budget is the product of the switch capacitance (Cdyn), the frequency, and the square of the operating voltage plus any leakage current that occurs. The following formulas illustrate these relationships:
[0037] Performance = Frequency * IPC
[0038] Power = ((Cdyn*frequency*voltage^2)+leakage)
[0039] According to various embodiments, the power budget may change during system operation due to many factors, including but not limited to the number of active processing engines utilizing the system power budget, user power input, thermal conditions of the computing system, etc. For each processing engine, Cdyn, leakage, and the frequency / voltage relationship are known, allowing the firmware to convert the available power budget into an achievable frequency. The voltage squared in the power formula means that power is a quadratic function of frequency, while performance is linear with frequency. Therefore, at a given power budget, a first processing engine may have the ability to outperform a second processing engine for a particular task. At a different power budget, a second processing engine may have the ability to outperform the first processing engine for a particular task.
[0040] Figure 3 1 shows power / performance curves for two processing engines according to various embodiments. As shown, the relationship between power budget and achievable performance is mapped into a first processing engine curve 302 and a second processing engine curve 304. As shown, when the power budget is low and constrained, the performance of the second processing engine is better than the first processing engine. When the power budget is high and unconstrained, the performance of the first processing engine is better than the second processing engine. Figure 3As shown, the scaling of power budget from 0 to 5 and performance from 0 to 12 are arbitrary normalized values and do not necessarily correlate to Watts, instructions per cycle, etc. Although shown as a power budget versus achievable performance curve, any capability (e.g., energy efficiency, memory latency / bandwidth, etc.) may be defined in terms of a power budget and utilized in accordance with various embodiments.
[0041] For computing systems with different types of processing engines, the IPC, switch capacitance, and frequency / voltage curves may be different for each processing engine, and therefore the power vs. capability curve may also be different for each processing engine. In addition, the relative capabilities of two processing engines are not constant, and the relative capabilities may be a function of the available power budget. At low available power budgets, more efficient computing elements may be able to provide higher performance, while at high available power budgets, computing elements with more raw performance capabilities may provide higher performance. Other features of each processing engine may also change during runtime operation.
[0042] As more and more logic is added to a package within a fixed platform design point, computing systems become increasingly power constrained and are therefore more likely to run into scenarios where the relative capabilities of processing engines change during system operation. According to various embodiments, it is advantageous to enable an operating system and / or system software to access the current and dynamic relative capabilities of processing engines so that the best processing engine can be selected for a particular workload. The power budget available to the processing engines is tracked over time and converted to achievable capabilities.
[0043] According to various embodiments, achievable frequencies may be converted to achievable capabilities, which may then be standardized across all processing engines. These standardized capabilities may be made available to the operating system or system software via an achievable capabilities table such as that shown in Table 1. Such a table may be updated when the relative capabilities of each computing engine change significantly.
[0044] Table 1 below shows an example achievable capability table according to some embodiments. Standardized achievable capabilities are listed for each processing engine. Standardized achievable capabilities for each processing engine are listed for each workload class. According to some embodiments, class 0 can be used for tasks that are primarily integer instructions, class 1 can be used for tasks that are primarily floating point instructions, class 2 can be used for tasks that are primarily vector instructions, and class 3 can be used for tasks that are not extended with higher performance. In this way, operating or system software can consult the achievable capability table when determining the best processing engine to assign a particular class of workload tasks. Although energy efficiency, performance, and other capabilities are shown in Table 1, fewer or more capabilities may be included in the achievable capability table according to various embodiments.
[0045]
[0046]
[0047] Table 1.
[0048] *Energy efficiency, **Performance capability, ***Other capabilities
[0049] According to some embodiments, the workload class may be determined based on computation and memory access of an instruction stream, which may include instruction set composition, hardware resource usage, and / or cache performance. According to some embodiments, the workload class may change over time. In addition, the duration of a particular workload class may not be static. According to some embodiments, an adaptive mechanism for determining and updating workload class information may be used. Such a mechanism may be part of the firmware and / or may include a hardware-firmware function.
[0050] The achievable capability table can be stored in the system memory and periodically updated during system operation based on the current operating conditions and power budget constraints. Periodically performing calculations to determine the achievable capabilities can be triggered by a set time period, such as every 10ms, or alternatively, triggered by changing power constraints and power budgets. The achievable capability table can provide relative performance, energy efficiency capabilities, and / or other capabilities for each processing engine in the computing system. Other capabilities may include memory bandwidth constraints, user preferences, and other dynamic operating conditions, which the operating system software can use when determining the best processing engine to allocate workloads and tasks. Although shown as a table, according to various embodiments, the capability data can be stored in any accessible form and used to make workload allocation determinations.
[0051] According to various embodiments, the capability of each processing engine may depend on the achievable frequency and relative IPC ratio for each workload class. The achievable frequency depends on the available power budget, which is a function of the power / power delivery / temperature constraints imposed on the computing system and the power consumed by other processing engines in the computing system. Note that there may be many different power-related constraints on a computing system. As the power consumption of other processing engines in the computing system increases, the power budget available for the processing engine decreases, and thus the achievable frequency decreases. Therefore, the achievable frequency and achievable capability of each processing engine changes during system operation.
[0052] In accordance with various embodiments, the capabilities of each processing engine may depend on, and may change based on, other system conditions (in addition to, or including, the achievable frequency and / or power budget), such as thermal conditions, throughput requirements, user preferences, etc.
[0053] According to some embodiments, the available power budget is monitored by the power management firmware during system operation. The power balancing algorithm can periodically allocate the power budget to each processing engine. The power management firmware can convert the available power budget to an achievable frequency by solving the frequency in the power equation.
[0054] Frequency = (Power – Leakage) / ((Cdyn*V^2)
[0055] Figure 4 A flow chart of determining and communicating achievable capabilities according to various embodiments is shown. Flowchart 400 may be executed by a power manager operated by system software or device software. Current operating conditions affect multiple power constraint inputs 402, 404, and 408 that will be used to determine achievable capabilities. Such power constraints may include the maximum power or current that may be consumed, power constraints due to operating temperature constraints, and the like. For given power constraints 402, 404, and 408, processing engine power budgets 412, 414, and 418 are determined in similar units of measurement, such as in available watts, respectively. The most constraining power budget 424 of the processing engine is determined by a minimum function 422. Based on the most constraining power budget 424, the highest achievable frequency is determined (step 426). Based on the highest achievable frequency, the achievable capabilities of each workload class are determined (step 428). These steps are repeated for each processing engine in the computing system. If the achievable capability value of the processing engine has changed to above a nominal level, such as a specific threshold, the newly calculated data is loaded and made available to the system software and, for example, stored in a system memory (block 430).
[0056] According to some embodiments, the achievable capabilities may be calculated for each processing engine whenever the power budget is rebalanced. Alternatively, the achievable capabilities may be recalculated based on a set period of time, such as every 15 ms. When the relative capabilities change significantly, the achievable capabilities table is updated with the new capabilities, and the operating system and / or system software uses the updated information in the table when selecting where to schedule software threads.
[0057] Figure 5A process performed by a thread scheduler according to various embodiments is shown. The thread scheduler receives a workload to be assigned to a processing engine (step 502). The thread scheduler determines the best processing engine to be assigned to the workload by consulting, for example, a runtime achievable capability table (step 504). The runtime achievable capability table contains the achievable capabilities of multiple processing engines based on the current operating conditions and power budget. The achievable capabilities can be a set of performances based on the workload type. The achievable capability table can be updated periodically to reflect the current achievable capabilities during the operation of the computing system. The achievable capability table can include varying capabilities, including performance, energy efficiency, memory bandwidth performance, and other such capabilities that can be used to select the best processing engine to assign the workload. After making a determination, the thread scheduler assigns the workload to the best processing engine (step 506).
[0058] Various embodiments may include any suitable combination of the above embodiments, including alternative (or) embodiments of the embodiments described above in combination (and) (e.g., "and" may be "and / or"). In addition, some embodiments may include one or more articles of manufacture (e.g., non-transitory computer-readable media) having instructions stored thereon, which when executed result in the actions of any of the above embodiments. In addition, some embodiments may include an apparatus or system having any suitable means for performing the various operations of the above embodiments.
[0059] The above description of the illustrated embodiments, including what is described in the Abstract, is not intended to be exhaustive or to limit the embodiments to the precise forms disclosed. Although specific embodiments are described herein for illustrative purposes, various equivalent modifications are possible within the scope of the embodiments, as those skilled in the art will appreciate.
[0060] These modifications may be made to the embodiments in light of the above detailed description. The terms used in the following claims should not be interpreted as limiting the embodiments to the specific implementations disclosed in the specification and claims. On the contrary, the scope of the present invention will be determined entirely by the appended claims, which will be interpreted in accordance with established principles of claim interpretation.
[0061] Example
[0062] The following example relates to further embodiments. An example may be a method comprising: determining a first achievable capability of a first processing engine based on a current operating condition; determining a second achievable capability of a second processing engine based on the current operating condition, wherein the first achievable capability is different in magnitude from the second achievable capability; and selecting one of the first processing engine and the second processing engine to execute a workload; wherein the selection is based on the first achievable capability and the second achievable capability.
[0063] An example may include storing the first achievable capability in the achievable capability table when the first achievable capability differs from a previous achievable capability by more than a threshold amount.
[0064] An example may include redetermining the first achievable capability and the second achievable capability based on new operating conditions.
[0065] Examples may include where determining the first achievable capability is performed periodically during operation of the system.
[0066] Examples may include where determining the first achievable capability is performed when an available power budget changes.
[0067] Examples may include, where determining the first achievable capability includes: determining current power constraints; determining available power budgets for each current power constraint; selecting a most constraining power budget from the available power budgets; determining an achievable frequency for the most constraining power budget; and determining the first achievable capability based on the achievable frequency.
[0068] Examples may include where determining the first achievable capacity is determined for multiple categories of workloads.
[0069] Examples may include where the multiple categories of workloads include at least one of integer instruction workloads, floating point instruction workloads, and vector instruction workloads.
[0070] Examples may include where the first achievable capability includes at least one of a performance capability, an energy efficiency capability, and a memory bandwidth capability.
[0071] An example may include an apparatus comprising: a first processing engine having a first achievable capability; a second processing engine having a second achievable capability, wherein the first achievable capability is different in magnitude from the second achievable capability; and a thread scheduler for determining an optimal processing engine of the first processing engine and the second processing engine to execute a workload, wherein the thread scheduler is for determining the optimal processing engine based on the first achievable capability and the second achievable capability.
[0072] Examples may include a power manager to: determine current power constraints, determine available power budgets for each current power constraint, select a most constraining power budget from the available power budgets, determine an achievable frequency for the most constraining power budget, and determine a first achievable capacity based on the achievable frequency.
[0073] Examples may include where the power manager periodically updates the first achievable capability and the second achievable capability when current power constraints change.
[0074] Examples may include where the first achievable capability includes data values for each of a plurality of categories of workloads.
[0075] Examples may include where the multiple categories of workloads include one of an integer instruction workload, a floating point instruction workload, and a vector instruction workload.
[0076] Examples may include where the first achievable capability includes at least one of a performance capability, an energy efficiency capability, and a memory bandwidth capability.
[0077] Another example may include an apparatus including means for performing one or more elements of a method described in or related to any example herein, or any other method or process described herein.
[0078] Another example may include one or more non-transitory computer-readable media comprising instructions such that when the instructions are executed by one or more processors of an electronic device, the electronic device performs one or more elements of a method described in or related to any example herein, or any other method or process described herein.
[0079] Another example may include an apparatus including logic, modules, or circuits for performing one or more elements of a method described in or related to any example herein, or any other method or process described herein.
[0080] Another example may include a method, technique, or process as described in or related to any example or portion thereof herein.
[0081] Another example may include an apparatus comprising: one or more processors and one or more computer-readable media, the computer-readable media comprising instructions that, when executed by the one or more processors, cause the one or more processors to perform a method, technique, or process as described or related to any example or portion thereof herein.
[0082] Another example may include a signal as described in or related to any example or portion thereof herein.
[0083] It is understood that various combinations of the above examples are possible.
[0084] Note that the terms "circuit" and "circuitry" are used interchangeably herein. As used herein, these terms and the term "logic" are used to refer to analog circuits, digital circuits, hard-wired circuits, programmable circuits, processor circuits, microcontroller circuits, hardware logic circuits, state machine circuits, and / or any other type of physical hardware components, either alone or in any combination. Embodiments may be used in many different types of systems. For example, in one embodiment, a communication device may be arranged to perform the various methods and techniques described herein. Of course, the scope of the present invention is not limited to communication devices, and instead, other embodiments may be directed to other types of devices for processing instructions, or one or more machine-readable media, including instructions that, in response to execution on a computing device, cause the device to perform one or more of the methods and techniques described herein.
[0085] Embodiments may be implemented in code and may be stored on a non-temporary storage medium on which instructions are stored that can be used to program a system to perform instructions. Embodiments may also be implemented in data and may be stored on a non-temporary storage medium that, if used by at least one machine, causes the at least one machine to manufacture at least one integrated circuit to perform one or more operations. Further embodiments may be implemented in a computer-readable storage medium that includes information that will configure the SoC or other processor to perform one or more operations when manufactured into the SoC or other processor. Storage media may include, but are not limited to, any type of disk, including a floppy disk, an optical disk, a solid-state drive (SSD), a compact disk read-only memory (CD-ROM), a compact disk rewritable memory (CD-RW) and a magneto-optical disk, a semiconductor device, such as a read-only memory (ROM), a random access memory (RAM) (such as a dynamic random access memory (DRAM), a static random access memory (SRAM)), an erasable programmable read-only memory (EPROM), a flash memory, an electrically erasable programmable read-only memory (EEPROM), a magnetic card or an optical card, or any other type of medium suitable for storing electronic instructions.
[0086] While the present disclosure has been described with respect to a limited number of implementations, those skilled in the art having the benefit of this disclosure will appreciate numerous modifications and variations thereof. The appended claims are intended to cover all such modifications and variations.
Claims
1. A method comprising: determining a first achievable capability of the first processing engine based on a current operating status; determining a second achievable capability of a second processing engine based on the current operating status, wherein the first achievable capability is different in magnitude from the second achievable capability; and One of the first processing engine and the second processing engine is selected to execute a workload; wherein the selection is based on the first achievable capability and the second achievable capability.
2. The method according to claim 1, further comprising: When the first achievable capability differs from a previous achievable capability by more than a threshold amount, the first achievable capability is stored in an achievable capability table.
3. The method according to claim 1, further comprising: The first achievable capability and the second achievable capability are re-determined based on a new operating condition.
4. The method according to claim 1, wherein: Determining the first achievable capability is performed periodically during operation of the system.
5. The method according to claim 1, wherein: Determining the first achievable capability is performed when an available power budget changes.
6. The method according to claim 1, wherein: Determining the first achievable capability includes: determining current power constraints; determining an available power budget for each of the current power constraints; selecting a most constraining power budget from among the available power budgets; determining an achievable frequency for the most constraining power budget; and The first achievable capability is determined based on the achievable frequency.
7. The method according to claim 1, wherein: The first achievable capability is determined for multiple types of workloads.
8. The method according to claim 7, wherein: The multiple types of workloads include at least one of integer instruction workloads, floating point instruction workloads, and vector instruction workloads.
9. The method according to any one of claims 1 to 8, wherein: The first achievable capability includes at least one of a performance capability, an energy efficiency capability, and a memory bandwidth capability.
10. A computer-readable storage medium comprising computer-readable instructions, which when executed implement the method according to any one of claims 1 to 9.
11. An apparatus comprising: a first processing engine having a first achievable capability; a second processing engine having a second achievable capability, wherein the first achievable capability is different in magnitude from the second achievable capability; and A thread scheduler is configured to determine an optimal processing engine of the first processing engine and the second processing engine to execute a workload, wherein the thread scheduler is configured to determine the optimal processing engine based on the first achievable capacity and the second achievable capacity.
12. The apparatus according to claim 11, further comprising: A power manager is configured to: determine current power constraints, determine an available power budget for each of the current power constraints, select a most restrictive power budget from the available power budgets, determine an achievable frequency for the most restrictive power budget, and determine the first achievable capacity based on the achievable frequency.
13. The device according to claim 12, wherein: The power manager periodically updates the first achievable capability and the second achievable capability when the current power constraint changes.
14. The device according to claim 12, wherein: The first achievable capability includes a data value for each of a plurality of types of workloads.
15. The device according to claim 14, wherein: The plurality of types of workloads include one of an integer instruction workload, a floating point instruction workload, and a vector instruction workload.
16. The device according to any one of claims 11 to 15, wherein: The first achievable capability includes at least one of a performance capability, an energy efficiency capability, and a memory bandwidth capability.
17. A device comprising: means for determining a first achievable capability of a first processing engine based on a current operating condition; means for determining a second achievable capability of a second processing engine based on the current operating condition, wherein the first achievable capability is different in magnitude from the second achievable capability; and Means for selecting one of the first processing engine and the second processing engine to execute a workload; wherein the means for selecting is based on the first achievable capability and the second achievable capability.
18. The apparatus of claim 17, further comprising: Means for storing the first achievable capability in an achievable capability table when the first achievable capability differs from a previous achievable capability by more than a threshold amount.
19. The apparatus of claim 17, further comprising: Means for redetermining the first achievable capability and the second achievable capability based on new operating conditions.
20. The apparatus of claim 17, wherein: The means for determining the first achievable capability is configured to be performed periodically during operation of the system.
21. The apparatus of claim 17, wherein: The means for determining the first achievable capability is configured to be performed when a change in available power budget occurs.
22. The apparatus according to claim 21, wherein The means for determining the first achievable capability comprises: means for determining a current power constraint; means for determining an available power budget for each of said current power constraints; means for selecting a most restrictive power budget from among the available power budgets; means for determining an achievable frequency for said most constraining power budget; and Means for determining the first achievable capability based on the achievable frequency.
23. The apparatus of claim 22, wherein: The means for determining the first achievable capability is used to determine the first achievable capability for multiple types of workloads.
24. The apparatus of claim 23, wherein: The multiple types of workloads include at least one of integer instruction workloads, floating point instruction workloads, and vector instruction workloads.
25. Apparatus according to any one of claims 17 to 24, wherein: The first achievable capability includes at least one of a performance capability, an energy efficiency capability, and a memory bandwidth capability.
