CPU instruction switching device, CPU instruction switching method, and program

The CPU instruction switching device dynamically switches between CPU instructions and offloads processing to accelerators, addressing the inefficiencies in power management and performance by utilizing a combination of interface absorption and load management units, thereby reducing power consumption while maintaining performance.

WO2024218950A1PCT designated stage expired Publication Date: 2024-10-24NT T INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/015820
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-20
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Current CPU instruction switching methods fail to efficiently manage power consumption while achieving required computational performance, as they lack a mechanism for selective use of power control functions across different arithmetic units in SoCs, leading to excessive power usage and performance gaps.

Method used

A CPU instruction switching device that dynamically switches between general-purpose and extended instructions, and offloads processing to accelerators, utilizing an interface difference absorption unit, load amount acquisition unit, arithmetic unit characteristic recording unit, and arithmetic processing execution location determination unit to minimize power consumption while maintaining performance.

Benefits of technology

The solution reduces power consumption while achieving the required computational performance by dynamically switching between arithmetic units based on performance and power characteristics, optimizing the use of power-saving functions within the SoC.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023015820_24102024_PF_FP_ABST
    Figure JP2023015820_24102024_PF_FP_ABST
Patent Text Reader

Abstract

A CPU instruction switching device (100) comprises: an interface difference absorption unit (110) that absorbs a difference in an instruction due to a difference in arithmetic units and absorbs a difference in forms of request offloaded from an APL (1); an arithmetic processing offload unit (120) that adjusts an instruction to the format of an arithmetic unit to be used and causes the relevant arithmetic unit to execute the instruction; a load amount acquisition unit (130) that acquires a current load amount or a delay requirement of an arithmetic unit using a CPU extension instruction and an accelerator (13); an arithmetic unit characteristic recording unit (140) that acquires and records performance characteristics, power characteristics, and power saving functions of each arithmetic unit; and an arithmetic processing execution location determination unit (150) that determines the arithmetic unit or accelerator having the lowest power consumption, among the arithmetic units capable of satisfying the required arithmetic performance, and instructs the arithmetic processing offload unit (120) to switch.
Need to check novelty before this filing date? Find Prior Art

Description

CPU instruction switching device, CPU instruction switching method and program

[0001] The present invention relates to a CPU instruction switching device, a CPU instruction switching method, and a program.

[0002] CPU machine language instructions are divided into general-purpose instructions, FPU (Floating Point Unit) instructions, SIMD (Single Instruction Multiple Data) instructions, and system instructions. General-purpose instructions are widely used from operating systems to general applications, and perform operations using integers. FPU instructions are instructions related to floating-point operations, and perform operations using binary floating point, including arithmetic operations, square roots, trigonometric functions, and exponential functions. SIMD is a function for simultaneously performing operations on multiple integers and binary floating points, and the instruction set for this purpose is the SIMD instruction set. System instructions are instructions for controlling the CPU, and are used in creating programs for the OS itself and around the OS, but are not used in normal application programs.

[0003] In recent years, there has been an increasing demand for high-performance processing that is difficult for general-purpose instructions of a central processing unit (CPU), such as encoding / decoding processing in a virtual radio access network (vRAN) and parallel operations in audio and video media processing. In response to this demand, some recent CPUs are equipped with an SIMD extension instruction set (e.g., Intel SSE / AVX512) ("Intel" is a registered trademark) for high-performance execution of specific processing, in addition to the instruction set required for basic CPU operations.

[0004] In addition, some processors have accelerators (hereinafter referred to as ACCs) built into their chips (SoCs: System on Chip) to execute specific processes with high performance (for example, the ACC200 in the Intel Xeon processor). In this way, technologies are becoming widespread that use extended instructions or dedicated processors built into chips to execute some processes and achieve high performance even in processes that are difficult to handle with general-purpose CPU instructions.

[0005] FIG. 31 is a diagram illustrating an overview of a processor chip with extended instructions. The processor chip SoC 11 includes multiple CPU cores 12 and an accelerator 13. The CPU core 12 includes a general-purpose instruction processor 12a and an extended instruction processor 12b. The general-purpose instruction processor 12a is a processor that executes general-purpose instructions. Hereinafter, all non-SIMD instructions are treated as general-purpose instructions, and the term "general-purpose instructions" also includes FPU instructions. The extended instruction processor 12b is a processor that executes SIMD instructions (e.g., L1 processing) such as AVX512. The accelerator 13 is an on-chip accelerator, such as an ACC for FEC (Forward Error Correction) on a Sapphire Rapids processor.

[0006] This section describes the technologies required for SoCs. Figure 32 is an image diagram showing an example of the performance / power consumption of each arithmetic unit in a processor chip (SoC) with an accelerator built in and an arithmetic unit with extended instructions that can be used within the SoC. The horizontal axis of Figure 32 represents the processable load, and the vertical axis represents the power consumption. In SoCs, a CPU and an accelerator may be mounted on a single chip. As shown in Figure 32, the power consumption of each arithmetic unit is ranked in ascending order as follows: general-purpose CPU instructions, extended CPU instructions (extended instruction arithmetic unit 12b in Figure 31), and the on-chip accelerator (accelerator 13 in Figure 31).

[0007] The above-mentioned CPU general-purpose instructions (hereinafter referred to as general-purpose instructions), CPU extended instructions (hereinafter referred to as extended instructions), and on-chip accelerator processing each have different performance and power consumption characteristics. For example, processing using general-purpose instructions consumes less power than processing using extended instructions, but has lower maximum processing performance. On the other hand, processing using on-chip accelerators is capable of high-load processing, but consumes more power. It is necessary to use these methods appropriately to achieve the required computing performance while minimizing power consumption. Note that performance and power consumption characteristics vary greatly depending on the type of SoC and the number of instructions executed.

[0008] In the OpenIoT (Internet of Things) environment, service integration technologies and other technologies are expected to enable the creation of a wide variety of applications. By utilizing more advanced hardware, the performance of running applications can be expected to improve. However, this requires programming and configuration tailored to the hardware on which the applications will run. This hurdle is high, requiring extensive technical knowledge, such as CUDA (Compute Unified Device Architecture) and OpenCL (Open Computing Language). OpenCL is an open API (Application Programming Interface) that allows for unified handling of all computing resources (not limited to CPUs and GPUs (Graphics Processing Units)) without being tied to specific hardware.

[0009] Non-Patent Document 1 describes a programming model for executing processing using an accelerator.

[0010] Non-Patent Document 2 describes the CUDA Toolkit (registered trademark), a development environment for creating high-performance GPU-accelerated applications. The CUDA Toolkit enables developers to develop, optimize, and deploy applications on GPU-accelerated embedded systems, desktop workstations, enterprise data centers, cloud-based platforms, and HPC supercomputers.

[0011] OPEN STANDARD FOR PARALLEL PROGRAMMING OF HETEROGENEOUS SYSTEMS, OpenCL 3.0, [online], [Retrieved April 11, 2023], Internet: https: / / www.khronos.org / opencl / CUDA, [online], [Retrieved April 11, 2023], Internet: https: / / developer.nvidia.com / cuda-toolkit

[0012] A conventional technique involves using a fixed arithmetic unit to execute the same type of processing, but this technique has the following problems. Here, the arithmetic unit is an accelerator built into the processor chip (SoC) or an arithmetic unit with extended instructions that can be used within the SoC. (1) Using a fixed arithmetic unit leads to excessive power consumption and failure to achieve performance requirements. (2) Since the power control functions of the arithmetic units built into each SoC type vary and have different functions, it is necessary to use these power control functions appropriately. However, there is no mechanism to use these power control functions appropriately.

[0013] FIG. 33 is a diagram specifically explaining the problem (1) above. FIG. 34 is a diagram specifically explaining the problem (2) above. In explaining FIGS. 33 and 34, the same components as those in FIG. 31 are assigned the same reference numerals. The left diagram of FIG. 33 is a schematic diagram of a process in which a part of the process calculated by the CPU is executed by the general-purpose instruction arithmetic unit 12a. The right diagram of FIG. 33 is a schematic diagram of a process in which a part of the process calculated by the CPU is offloaded to the accelerator 13. The server systems shown in FIGS. 33 and 34 have hardware (HW) 10, an OS (Operating System) 20, middleware 30, and an application (APL) 1.

[0014] 33, APL1 always executes process X in the general-purpose instruction arithmetic unit 12a. Under high load, even if the performance requirements can be met by using extended instructions or an accelerator, there are cases where the performance requirements cannot be met.

[0015] As shown in the right diagram of Fig. 33, APL1 always executes process Y using the accelerator 13. Even when the load is low, the accelerator 13 may be used, resulting in constantly high power consumption.

[0016] In the server system shown in FIG. 34, the power control unit 14 mounted on the SoC 11 is not selectively used depending on the usage status of the arithmetic unit, and there is no mechanism for minimizing power consumption.

[0017] The present invention has been made in view of the above background, and an object of the present invention is to reduce the power consumption of a computing unit while achieving the required computing performance.

[0018] In order to solve the above-mentioned problems, a CPU instruction switching device is provided that instructs a computing unit to execute a CPU general-purpose instruction or a CPU extended instruction of an application, and offloads specific processing of the application to an accelerator, the CPU instruction switching device comprising: an interface difference absorption unit that absorbs differences in instructions due to differences in computing units and differences in the form of requests offloaded from the application; an arithmetic processing offload unit that causes the relevant computing unit to execute instructions that the interface difference absorption unit has adjusted to the format of the computing unit to be used; a load amount acquisition unit that acquires the current load amount or delay requirement of the accelerator and the computing unit that uses the CPU extended instruction; an arithmetic unit characteristic recording unit that acquires and records the performance characteristics, power characteristics, and power-saving functions of each of the computing units; and an arithmetic processing execution location determination unit that receives the load amount or the delay requirement from the load amount acquisition unit, reads the performance characteristics, power characteristics, and power-saving functions from the arithmetic unit characteristic recording unit, determines the computing unit or the accelerator with the lowest power consumption among the computing units that can satisfy the required arithmetic performance, and instructs the arithmetic processing offload unit to switch.

[0019] According to the present invention, it is possible to reduce the power consumption of the computing unit while achieving the required computing performance.

[0020] FIG. 1 is a schematic configuration diagram of a server system according to a first embodiment of the present invention. FIG. 2 is a diagram explaining the operation of an interface difference absorption unit of a CPU instruction switching device according to the first embodiment of the present invention. FIG. 3 is a flowchart showing the operation of the interface difference absorption unit of a CPU instruction switching device according to the first embodiment of the present invention. FIG. 4 is a diagram explaining the operation of a load amount acquisition unit of a CPU instruction switching device according to the first embodiment of the present invention. FIG. 5 is a flowchart showing the operation of the load amount acquisition unit of a CPU instruction switching device according to the first embodiment of the present invention. FIG. 6 is a diagram explaining the operation of an arithmetic unit characteristics recording unit of a CPU instruction switching device according to the first embodiment of the present invention. FIG. 7 is a flowchart showing the operation of the arithmetic unit characteristics recording unit of a CPU instruction switching device according to the first embodiment of the present invention. FIG. 8 is a diagram explaining the operation of an arithmetic processing execution location determination unit of a CPU instruction switching device according to the first embodiment of the present invention. FIG. 9 is a flowchart showing the operation of the arithmetic processing execution location determination unit of a CPU instruction switching device according to the first embodiment of the present invention. FIG. 10 is a diagram explaining the operation of an intra-SoC arithmetic unit power control unit of a CPU instruction switching device according to the first embodiment of the present invention. FIG. 11 is a flowchart showing the operation of an intra-SoC arithmetic unit power control unit of a CPU instruction switching device according to the first embodiment of the present invention. FIG. 1 is a flowchart showing the operation of an arithmetic processing execution location determination unit of a CPU instruction switching device according to a second embodiment of the present invention. FIG. 2 is a diagram explaining the operation of an intra-SoC arithmetic unit power control unit of a CPU instruction switching device according to a second embodiment of the present invention. FIG. 3 is a flowchart showing the operation of an intra-SoC arithmetic unit power control unit of a CPU instruction switching device according to a second embodiment of the present invention. FIG. 4 is a schematic configuration diagram of a server system according to a third embodiment of the present invention. FIG. 5 is a diagram explaining the operation of an arithmetic instruction issue unit of a CPU instruction switching device according to a third embodiment of the present invention. FIG. 6 is a flowchart showing the operation of the arithmetic instruction issue unit of a CPU instruction switching device according to a third embodiment of the present invention. FIG. 7 is a diagram explaining the operation of a load amount acquisition unit of a CPU instruction switching device according to a third embodiment of the present invention.1 is a flowchart showing the operation of a load amount acquisition unit of a CPU instruction switching device according to a third embodiment of the present invention. FIG. 2 is a diagram explaining the operation of an arithmetic unit characteristics recording unit of a CPU instruction switching device according to the third embodiment of the present invention. FIG. 3 is a flowchart showing the operation of the arithmetic unit characteristics recording unit of a CPU instruction switching device according to the third embodiment of the present invention. FIG. 4 is a diagram explaining the operation of an arithmetic processing execution location determination unit of a CPU instruction switching device according to the third embodiment of the present invention. FIG. 5 is a flowchart showing the operation of the arithmetic processing execution location determination unit of a CPU instruction switching device according to the third embodiment of the present invention. FIG. 6 is a diagram explaining the operation of an intra-SoC arithmetic unit power control unit of a CPU instruction switching device according to the third embodiment of the present invention. FIG. 7 is a flowchart showing the operation of an intra-SoC arithmetic unit power control unit of a CPU instruction switching device according to the third embodiment of the present invention. FIG. 8 is a hardware configuration diagram showing an example of a computer that realizes the functions of a CPU instruction switching device in a server system according to each embodiment of the present invention. FIG. 9 is a diagram showing an overview of a processor chip having extended instructions. FIG. 10 is an image diagram showing an example of performance / power consumption for each arithmetic unit in an accelerator built into a processor chip (SoC) or in an arithmetic unit having extended instructions that can be used within an SoC. FIG. 11 is a diagram specifically explaining the problem.

[0021] A server system and the like in an embodiment for carrying out the present invention (hereinafter referred to as "the present embodiment") will be described below with reference to the drawings. (First Embodiment) [Overall Configuration] Fig. 1 is a schematic configuration diagram of a server system according to a first embodiment of the present invention. Components that are the same as those in Figs. 31 and 33 are assigned the same reference numerals. As shown in Fig. 1, a server system 1000 has hardware (HW) 10, an OS 20, middleware 30 which is high-speed data communication middleware, a CPU instruction switching device 100, and an APL 1.

[0022] In this embodiment, the CPU instruction switching device 100 is arranged in the middleware 30, but some or all of the functions of the CPU instruction switching device 100 may be arranged in a location other than the middleware 30, such as the hardware 10 or the APL 1. An example in which some of the functions of the CPU instruction switching device 100 are arranged in the hardware 10 will be described in the second embodiment (FIGS. 12 to 18), and an example in which some of the functions of the CPU instruction switching device 100 are arranged in the APL will be described in the third embodiment (FIGS. 19 to 29).

[0023] [Hardware 10] The hardware 10 includes a processor chip SoC 11, which includes a CPU core 12, an accelerator 13, and a power control unit 14.

[0024] The CPU core 12 includes a general-purpose instruction processor 12 a and a user-defined instruction processor 12 b. The general-purpose instruction processor 12 a processes general-purpose instructions. The user-defined instruction processor 12 b processes SIMD instructions (e.g., L1 processing) such as AVX512.

[0025] The accelerator 13 is an accelerator (chip-embedded accelerator) within the SoC 11, such as an ACC for forward error correction (FEC) on a Sapphire Rapids processor. The accelerator 13 is a calculation unit hardware that performs specific calculations at high speed. Specifically, the accelerator 13 is a programmable logic device (PLD) such as a GPU or FPGA.

[0026] The power control unit 14 receives instructions from the SoC arithmetic unit power control unit 160 and controls the power of the accelerator 13. For example, when the usage rate of the accelerator 13 decreases, the power control unit 14 reduces the frequency of the accelerator 13. Furthermore, when the accelerator 13 is completely inactive, the power control unit 14 stops the clock supply to the accelerator 13.

[0027] [Middleware 30] The middleware 30 is a high-speed data communication layer including CUDA, OpenCL BBDEV API, etc. For example, the middleware 30 is the CUDA Toolkit (registered trademark) for using an NVIDIA (registered trademark) GPU, or OpenCL (registered trademark) for calculations using a heterogeneous processor. In addition, the BBDEV API (registered trademark) provides accelerator I / O functions for processing wireless access signals as a Development Kit (library).

[0028] [CPU instruction switching device 100] The CPU instruction switching device 100 comprises an interface difference absorption unit 110, an arithmetic processing offload unit 120, a load amount acquisition unit 130, an arithmetic unit characteristics recording unit 140, an arithmetic processing execution location determination unit 150, and an SoC arithmetic unit power control unit 160.

[0029] <Interface Difference Absorption Unit 110> The interface difference absorption unit 110 absorbs differences in instructions due to differences in arithmetic units and differences in the request format offloaded from the APL1.

[0030] The interface difference absorbing unit 110 receives information on the computing unit to be used (used computing unit information) from the computing processing execution part determining unit 150, and adjusts the command received from the APL1 into a format that can be executed by the relevant computing unit.

[0031] The interface difference absorption unit 110 adjusts the instructions received from APL1 into a format that can be executed by the computing unit to be used, and passes the adjusted instructions to the computation offload unit 120. For example, when APL1 continues to issue instructions that use the general-purpose instruction computing unit 12a, and the interface difference absorption unit 110 switches to the user-extended instruction computing unit 12b, the interface difference absorption unit 110 changes the general-purpose instructions to user-extended instructions and passes them to the computation offload unit 120.

[0032] <Analysis processing offload unit 120> The arithmetic processing offload unit 120 causes the relevant arithmetic unit to execute the command adjusted to the format of the arithmetic unit to be used by the interface difference absorption unit 110. The arithmetic processing offload unit 120 switches between arithmetic units based on the performance / power consumption characteristics and the load status.

[0033] The arithmetic processing offload unit 120 causes the arithmetic processing unit to execute the instruction that has been adjusted to the format of the arithmetic processing unit to be used by the interface difference absorption unit 110. When the arithmetic processing offload unit 120 receives an instruction to switch arithmetic processing units from the arithmetic processing execution location determination unit 150, it can dynamically switch the arithmetic processing unit that executes the instruction.

[0034] The arithmetic processing offload unit 120 receives a request for arithmetic processing from the APL 1 and causes the accelerator 13 in the SoC 11 to execute the requested processing. When a switching instruction is received from the arithmetic processing execution location determination unit 150, the arithmetic processing offload unit 120 switches the execution location of the arithmetic processing to the extended instruction calculation unit 12 b or the general-purpose instruction calculation unit 12 a in the CPU core 12.

[0035] <Load Amount Acquisition Unit 130> The load amount acquisition unit 130 acquires the current load amount or delay requirement of the accelerator 13 and the arithmetic unit that uses the CPU extended instruction. The load amount acquisition unit 130 continues to acquire the load amount of the server system 1000 and the currently required processing amount. The load amount acquisition unit 130 passes the acquired load amount to the calculation processing execution location determination unit 150. The load amount acquisition unit 130 acquires the current load amount and delay requirement of the accelerator 13 in the SoC 11 and the calculation that uses the extended instruction, and notifies the calculation processing execution location determination unit 150.

[0036] <Calculation unit characteristics recording unit 140> The calculation unit characteristics recording unit 140 acquires and records the performance characteristics and power characteristics of the calculation units (general-purpose instruction calculation unit 12a, extended instruction calculation unit 12b) in the SoC 11, and information on power-saving functions available in the SoC 11. The information on the performance characteristics and power consumption characteristics is used by the calculation processing execution location determination unit 150. The information on available power-saving functions is used by the intra-SoC calculation unit power control unit 160. This information is stored in a shared memory (not shown) that can be read by the calculation processing execution location determination unit 150 and the intra-SoC calculation unit power control unit 160.

[0037] <Calculation Processing Execution Location Determination Unit 150> The calculation processing execution location determination unit 150 receives the load amount or the delay requirement from the load amount acquisition unit 130, reads out the performance characteristics, power characteristics, and power saving function from the calculator characteristic recording unit 140, and determines the calculator or accelerator with the lowest power consumption among the calculators that can satisfy the required calculation performance, and instructs the calculation processing offloading unit 120 to switch.

[0038] The calculation processing execution location determination unit 150 receives the required calculation performance from the load amount acquisition unit 130 and reads out the performance characteristics and power consumption characteristics from the calculation characteristic recording unit. The calculation processing execution location determination unit 150 determines to use the calculator with the lowest power consumption among the calculators that can satisfy the required calculation performance, and instructs the calculation processing offloading unit 120 to switch. Also, the calculation processing execution location determination unit 150 passes the information of the calculator that will no longer be used to the SoC internal calculator power control unit 160 and instructs power control.

[0039] <SoC Internal Calculator Power Control Unit 160> The SoC internal calculator power control unit 160 minimizes power consumption using the power saving function available within the SoC. The SoC internal calculator power control unit 160 performs power control of the unused calculator based on the information of the calculator that has become unused received from the calculation processing execution location determination unit 150 and the information of the available power saving function received from the calculator characteristic recording unit 140.

[0040] Hereinafter, the operation of the CPU instruction switching device 100 configured as described above will be described. (Features and Operation Image) The CPU instruction switching device 100 (FIG. 1) pre-records the calculation performance and power characteristics of each calculation unit (calculator characteristic recording unit 140), and switches the calculation unit so that the processing can be executed by the calculation unit with the lowest power consumption among the calculation units that can satisfy the calculation performance required by the APL1, and executes the processing (calculation processing execution location determination unit 150 and calculation processing offloading unit 120).

[0041] In the CPU instruction switching device 100, the arithmetic processing offload unit 120 switches between arithmetic units based on performance / power consumption characteristics and load conditions. In the CPU instruction switching device 100, the interface difference absorption unit 110 absorbs differences in instructions due to differences in arithmetic units and differences in the request format offloaded from APL1.

[0042] In the CPU instruction switching device 100, the SoC arithmetic unit power control unit 160 minimizes power consumption by using power-saving functions available within the SoC. The SoC arithmetic unit power control unit 160 also minimizes power consumption by controlling the power of arithmetic units that are no longer needed within the SoC in conjunction with arithmetic unit switching. The operation of each functional unit of the CPU instruction switching device 100 will be described in detail below with reference to configuration diagrams and flowcharts of the relevant functional units.

[0043] [Operation of Interface Difference Absorption Unit 110] Figure 2 is a diagram explaining the operation of the interface difference absorption unit 110 of the CPU instruction switching device 100. Components that are the same as those in Figure 1 are assigned the same reference numerals. The interface difference absorption unit 110 (Figure 2) receives information about the arithmetic unit to be used (information about the arithmetic unit to be used) from the arithmetic processing execution location determination unit 150 (Figure 2), and adjusts the instructions received from APL1 into a format that can be executed by the relevant arithmetic unit. This makes it possible to allocate processing to a different arithmetic unit within the middleware, even if APL1 continues to issue instructions to use a fixed arithmetic unit.

[0044] The interface difference absorption unit 110 adjusts the instructions received from APL1 into a format that can be executed by the computing unit to be used, and passes the adjusted instructions to the computation offload unit 120. For example, when APL1 continues to issue instructions that use the general-purpose instruction computing unit 12a, and the interface difference absorption unit 110 switches to the user-extended instruction computing unit 12b, the interface difference absorption unit 110 changes the general-purpose instructions to user-extended instructions and passes them to the computation offload unit 120.

[0045] 3 is a flowchart showing the operation of the interface difference absorption unit 110 in FIG. 2. This is a data processing flow during APL1 operation, and this processing is performed continuously while APL1 is running. In step S11, APL1 executes processing on the CPU using general-purpose instructions that do not use extended instructions or the accelerator 13. Many instructions of APL1 are usually executed using general-purpose instructions.

[0046] In step S12, when the APL1 executes processing that requires an extended instruction or the accelerator 13, it passes the instruction to be executed and the data to be processed. This instruction and data are received by the interface difference absorption unit 110. The extended instruction calculator 12b and accelerator 13 that execute the extended instruction can perform parallel operations, which the CPU is particularly weak at, with high performance. Examples of extended instructions are as follows: - An example of an extended instruction is the "streaming SIMD extended instruction," which is applicable to a variety of parallel operations. - The accelerator 13 may also be applicable to a variety of parallel operations. - Meanwhile, in recent years, extended instructions and accelerators 13 specialized for specific parallel operations have also come into existence. - Example: Extended instruction for executing encryption and decryption: AES-NI - Example: Accelerator 13 specialized for encoding / decoding processing of error correction codes for communications: ACC200

[0047] In step S13, the interface difference absorption unit 110 checks the arithmetic unit that will execute the processing, as determined by the arithmetic processing execution location determination unit 150, and checks whether the format of the instructions and data in the relevant arithmetic unit matches the format of the instructions and data received from APL1.

[0048] Here, APL1 transfers commands and data assuming that processing will be performed by a fixed arithmetic unit. Therefore, when the arithmetic unit to be executed is switched, interface differences occur. The interface for each arithmetic unit is set in advance by the operator according to the processing content of APL1.

[0049] The above describes an example in which the interfaces are different. When encoding / decoding (FEC processing) for error correction in highly parallel communications is performed by the accelerator 13, it is only necessary to store the FEC processing instructions and data in a memory shared with the accelerator 13. On the other hand, when performing the processing using SIMD instructions, which are extended instructions, data must be stored in a specific register and extended instructions must be issued for that data. When performing the processing using general-purpose instructions, general-purpose instructions must be issued by loop processing for consecutive data. In this way, differences in the format in which data is stored, the instructions to be issued, and the number of instructions must be accommodated.

[0050] In step S14, the interface difference absorption unit 110 determines whether the instruction formats match. If the instruction formats do not match (S14: No), in step S15 the interface difference absorption unit 110 corrects the instruction format received from APL1 so that it can be executed by the arithmetic unit determined by the arithmetic processing execution location determination unit 150. If the instruction formats match (S14: Yes), the process proceeds to step S16. In step S16, the interface difference absorption unit 110 passes the relevant data and the instruction to be executed to the arithmetic processing offload unit 120.

[0051] In step S17, the computation offload unit 120 receives the instruction to be executed and the data to be computed. In step S18, the computation offload unit 120 executes the instruction on the data to be computed using the computing unit determined by the computation execution location determination unit 150.

[0052] When executed by the arithmetic units (extended instruction arithmetic unit 12b, general-purpose instruction arithmetic unit 12a) in the CPU core 12, the instruction can be executed on data present in the memory used by the middleware. On the other hand, when executed by the accelerator 13 in the SoC 11, the instruction and data must be stored in a memory shared with the accelerator 13. In step S18, these are combined and described as "execute the relevant instruction on the data to be processed."

[0053] In step S19, when the processing is completed, the computation offload unit 120 returns the processing result to the APL 1. Similarly, when an instruction is executed by an arithmetic unit (extended instruction arithmetic unit 12b, general-purpose instruction arithmetic unit 12a) in the CPU core 12, the processing result is stored in the memory used by the middleware 30 (FIG. 2), and is then passed to the APL 1. On the other hand, when the instruction is executed by the accelerator 13, the processing result is stored in the memory shared between the accelerator 13 and the middleware 30, and the computation offload unit 120 reads it out and passes it to the APL 1.

[0054] In step S20, APL1 continues processing after the end of the operation using the extension instruction or the accelerator 13. As described above, the flow in Fig. 3 is a data processing flow during operation of APL1, and is performed continuously while APL1 is running.

[0055] The CPU instruction switching device 100 is equipped with an interface difference absorption unit 110, which makes it possible to allocate processing to another arithmetic unit within the middleware 30 even if APL1 continues to issue instructions to use a fixed arithmetic unit.

[0056] [Operation of the Load Amount Acquisition Unit 130] Figure 4 is a diagram illustrating the operation of the load amount acquisition unit 130 of the CPU instruction switching device 100. Components that are the same as those in Figure 1 are assigned the same reference numerals. The load amount acquisition unit 130 (Figure 4) continues to acquire the system load amount and the currently required processing amount. The load amount acquisition unit 130 passes the acquired load amount to the computation processing execution location determination unit 150 (Figure 4). The load amount acquisition unit 130 acquires the current load amount and delay requirements of computations that use the accelerator 13 or extended instructions within the SoC 11, and notifies the computation processing execution location determination unit 150.

[0057] Examples of information to be acquired Examples of information to be acquired include the amount of computation per second offloaded from APL1, CPU usage rate (when using the computing unit in CPU core 12), and delay requirements of APL1. Acquisition method Acquisition methods include acquiring the processing amount from the computation processing offload unit 120, acquiring the CPU usage rate from the OS, and acquiring delay requirements from APL1 (requiring modification of APL1).

[0058] Fig. 5 is a flowchart showing the operation of the load amount acquisition unit 130 in Fig. 4. Fig. 5 shows the flow from when the load amount acquisition unit 130 acquires the load amount to when it passes the load amount to the computation processing execution location determination unit 150. This process is performed continuously while APL1 is running. In step S21, the load amount acquisition unit 130 acquires the data processing amount and delay requirements from APL1 and the computation processing offload unit 120.

[0059] The processing amount received by the load amount acquisition unit 130 and examples of acquisition thereof will be described below. Acquisition example (1): Receives load amount and performance requirements from APL1. APL1 periodically passes the load amount and performance requirements to the computation offload unit 120 via shared memory (however, modifications to APL1 are required). Example of processing amount unit: load amount (bps) Examples of performance requirements: throughput (bps), delay requirement (μsec, etc.)

[0060] Acquisition example (2): The load amount passed from APL1 is received from the arithmetic processing offload unit 120 or the interface difference absorption unit 110. The load amount (bps) is periodically acquired via the shared memory.

[0061] Acquisition example (3): Method of referencing CPU usage rate and accelerator 13 usage rate. Acquire the CPU usage rate of the CPU core 12 that is executing extended instructions and general-purpose instructions, and the usage rate of the accelerator 13 in the SoC 11.

[0062] In step S22, the load acquisition unit 130 passes the acquired load to the computation processing execution part determination unit 150. This passing is performed via a shared memory.

[0063] The frequency with which the load amount is passed to the computation execution location determination unit 150 will now be described. The frequency with which the data processing amount is received is set in advance by the operator. Example (1): The CPU usage rate is referenced once every 10 μsec (in the case of acquisition example (3)). The memory shared with the computation offload unit 120 is read once every 20 μsec (in the case of acquisition example (2)).

[0064] The read information may be shared immediately or in batches with the calculation processing execution part determination unit 150. Example (2) The average value of 10 CPU usage rates read once every 10 μsec is shared once every 100 μsec.

[0065] In step S23, the arithmetic processing execution part determination unit 150 reads the relevant data from the shared memory.

[0066] [Operation of the Calculator Characteristics Recording Unit 140] Figure 6 is a diagram illustrating the operation of the Calculator Characteristics Recording Unit 140 of the CPU instruction switching device 100. Components that are the same as those in Figure 1 are assigned the same reference numerals. The Calculator Characteristics Recording Unit 140 (Figure 6) acquires and records the performance characteristics, power consumption characteristics, and available power-saving functions of the Calculators (general-purpose instruction Calculator 12a, extended instruction Calculator 12b) within the SoC 11. Information on the performance characteristics and power consumption characteristics (performance / power characteristic information) is used by the arithmetic processing execution location determination unit 150. Information on available power-saving functions is used by the intra-SoC Calculator Power Control Unit 160.

[0067] The arithmetic unit characteristics recording unit 140 acquires and records the performance / power characteristics of each arithmetic unit and the power-saving functions available within the SoC 11. The relevant information is stored in a shared memory (not shown) that can be read by the arithmetic processing execution location determination unit 150 and the intra-SoC arithmetic unit power control unit 160.

[0068] - Example of a method for acquiring performance / power characteristics Methods for acquiring performance / power characteristics include: an operator statically specifies the characteristics before the system starts, the computing unit characteristics recording unit 140 acquires processor information from the OS, estimates the performance / power characteristics, acquires the performance and power during processing in each computing unit, and updates them as appropriate. - Example of a method for acquiring power-saving functions for computing units in an SoC Methods for acquiring power-saving functions for computing units in an SoC include: an operator statically specifies the characteristics before the system starts, and the computing unit characteristics recording unit 140 acquires processor information (such as C-state information for the CPU core 12) from the OS.

[0069] Fig. 7 is a flowchart showing the operation of the arithmetic unit characteristics recording unit 140 of Fig. 6. Fig. 7 shows the flow from when the arithmetic unit characteristics recording unit 140 acquires and records arithmetic unit characteristics. This process is executed at the time of initialization when the CPU instruction switching device 100 starts operating. In step S31, the arithmetic unit characteristics recording unit 140 (Fig. 6) acquires information about the installed arithmetic units, the performance and power characteristics of each arithmetic unit, and information about power-saving functions that can be executed by each arithmetic unit.

[0070] The following describes each piece of information acquired by the arithmetic unit characteristics recording unit 140 and an example of how to acquire it. (1) Information on the installed arithmetic units The type of the extended instruction arithmetic unit 12b (FIG. 6) can be acquired by reading CPU information from the OS. In some cases, this information can be acquired by reading the CPU information of the accelerator 13 in the SoC 11, and in other cases, it can be acquired by reading whether a module for using the accelerator 13 is enabled.

[0071] (2) Performance and power characteristics of each computing unit Performance characteristics: Maximum throughput that each computing unit can process and delay time required for processing per data amount (bytes) Power characteristics: Power consumption within the SoC or server for each utilization rate of each computing unit, and power consumption within the SoC or server for each data processing amount (bps)

[0072] - Performance characteristic acquisition method (1): The operator specifies the throughput and delay time at startup. - Performance characteristic acquisition method (2): At startup, the computing unit characteristics recording unit 140 executes processing using test data and acquires the delay time / performance. - For example, in the case of a system that performs error correction encoding / decoding processing (FEC processing), the test data to be processed by FEC is processed using each computing unit, and the delay time and throughput during this process are measured.

[0073] Method (1) of acquiring power characteristics: The operator specifies the power characteristics of each computing unit. Method (2) of acquiring power characteristics: At startup, the computing unit characteristics recording unit 140 executes processing using test data and measures the power consumed for each usage rate.

[0074] (3) Information on the power control unit 14 that can be executed by each arithmetic unit: CPU core 12 (general-purpose / extended instruction arithmetic unit 12b): Information on the minimum frequency and the CPU idle state that can be entered, obtained from the OS 20 (FIG. 6). Accelerator 13: There are available power control units 14 (e.g., clock gating, power off, frequency fluctuation, etc.) and values ​​(e.g., minimum frequency fluctuation). In this case, it may be possible to obtain this information from the OS 20. If it cannot be obtained from the OS 20, the operator must statically specify it at startup.

[0075] Returning to the flow of Figure 7, in step S32, the arithmetic unit characteristics recording unit 140 stores information on performance and power characteristics in a memory shared with the arithmetic processing execution location determination unit 150, and stores information on power saving functions that can be executed by each arithmetic unit in a memory shared with the SoC arithmetic unit power control unit 160.

[0076] [Operation of the arithmetic processing execution location determination unit 150] Figure 8 is a diagram explaining the operation of the arithmetic processing execution location determination unit 150 of the CPU instruction switching device 100. Components that are the same as those in Figure 1 are assigned the same reference numerals. The arithmetic processing execution location determination unit 150 (Figure 8) receives the load amount and delay requirements from the load amount acquisition unit 130 (Figure 8), and reads out the performance characteristics and power consumption characteristics from the arithmetic unit characteristics recording unit 140. The arithmetic processing execution location determination unit 150 selects the arithmetic unit with the lowest power consumption among the arithmetic units that can satisfy the required arithmetic performance, and instructs the arithmetic processing offload unit 120 to switch (arithmetic unit switching instruction).

[0077] The arithmetic processing execution location determination unit 150 also passes information about the arithmetic units that will no longer be used (arithmetic unit usage information) to the intra-SoC arithmetic unit power control unit 160, and instructs power control. That is, the arithmetic processing execution location determination unit 150 notifies the intra-SoC arithmetic unit power control unit 160 of information about the arithmetic units that will be used when instructing switching and the arithmetic units that have become inoperative (arithmetic unit usage information), and triggers intra-SoC power control.

[0078] Examples of information to be notified to the SoC arithmetic unit power control unit 160 Examples of information to be notified to the SoC arithmetic unit power control unit 160 include information on the accelerator 13 that has become inoperable due to switching of processing to the arithmetic unit within the CPU core 12, and information on the CPU core 12 that has become inoperable due to switching of processing to the accelerator 13.

[0079] Fig. 9 is a flowchart showing the operation of the arithmetic processing execution location determination unit 150 of Fig. 8. Fig. 9 shows the flow up to when the arithmetic processing execution location determination unit 150 instructs arithmetic unit switching. This process is performed continuously while APL1 is running. In step S41, the arithmetic processing execution location determination unit 150 (Fig. 8) reads the load amount and delay requirements from the memory shared with the load amount acquisition unit 130.

[0080] In step S 42 , the arithmetic processing execution part determination unit 150 reads the performance / power characteristic information for each arithmetic unit from the arithmetic unit characteristic recording unit 140 .

[0081] In step S43, the arithmetic processing execution location determination unit 150 determines whether it is necessary to switch arithmetic units based on the load amount, delay requirements, and performance / power characteristic information of the arithmetic units, based on arithmetic unit switching determination logic. The arithmetic unit switching determination logic will be described later in the supplementary explanation.

[0082] If there is no need to switch the computing unit (S44: No), the processing of this flowchart ends. If there is a need to switch the computing unit (S44: Yes), in step S45, the computing process execution location determination unit 150 writes information about the computing unit to be switched to (used computing unit information) in the memory shared with the interface difference absorption unit 110.

[0083] In step S46, the arithmetic processing execution location determination unit 150 writes information about the arithmetic processing unit to be switched to (arithmetic processing unit switching instruction) in a memory shared with the arithmetic processing offload unit 120 in order to select an arithmetic processing unit with low power consumption.

[0084] In step S47, the arithmetic processing execution location determination unit 150 writes information about the arithmetic processing unit to be switched to (arithmetic processing unit usage information) in a memory shared with the intra-SoC arithmetic processing unit power control unit 160, and ends the processing of this flowchart. The arithmetic processing unit to be switched to includes two arithmetic processing units: the arithmetic processing unit used when the switchover is instructed, and the arithmetic processing unit that has become inoperative. The arithmetic processing execution location determination unit 150 notifies the intra-SoC arithmetic processing unit power control unit 160 of both as arithmetic processing unit usage information. The intra-SoC arithmetic processing unit power control unit 160 uses this notification as a trigger (to activate a processing flow or control function) to execute intra-SoC power control processing.

[0085] The method of transmitting the arithmetic unit switching information in steps S45 to S47 will now be described. The arithmetic processing execution location determination unit 150 writes information about the arithmetic unit to a memory shared with each functional unit. At this time, for example, if the accelerator 13 is changed to an extended instruction, assuming [general purpose instruction: 1, extended instruction: 2, accelerator: 3], the value written in the shared memory is rewritten from accelerator: 3 to extended instruction: 2. Each functional unit reads this value to determine the arithmetic unit to use.

[0086] <Calculator Switching Determination Logic> The following provides additional information about the calculator switching determination logic of the calculation processing execution location determination unit 150. The calculator switching determination logic differs depending on the processing amount ( FIGS. 8 and 9 ) acquired by the load amount acquisition unit 130. The calculator switching determination logic is calculator switching logic that is used by the calculation processing execution location determination unit 150 to make a determination based on the load amount acquired by the load amount acquisition unit 130 and the performance / power characteristic information ( FIGS. 6 and 7 ) acquired by the calculation processing execution location determination unit 140.

[0087] Hereinafter, when the throughput or power consumption of each computing unit is described as being "obtained," it means that it is obtained from the "computing unit characteristics recording unit 140" unless otherwise specified.

[0088] (1) When performance requirements (throughput) are received periodically or at startup from the load acquisition unit 130, the computation processing execution location determination unit 150 acquires the maximum throughput of each computing unit. For computing units whose maximum throughput exceeds the required throughput, the computation processing execution location determination unit 150 acquires the SoC or server power consumption for each data processing amount. The computation processing execution location determination unit 150 determines the computing unit that consumes the least amount of power while processing the throughput, which is the performance requirement, as the computing unit that should execute the processing.

[0089] The arithmetic processing execution part determining unit 150 determines whether the arithmetic unit currently executing the processing is the same as the arithmetic unit that should execute the processing, and if they are not the same, switches the arithmetic unit.

[0090] (2) When performance requirements (delay requirements) are received periodically or at startup from the load acquisition unit 130: The computation processing execution location determination unit 150 also acquires the current load from the load acquisition unit 130. The computation processing execution location determination unit 150 acquires the delay time for each data processing amount of each computing unit, and calculates the delay time required for each computing unit to process the current load. The computation processing execution location determination unit 150 determines whether the delay time calculated for each computing unit satisfies the performance requirements.

[0091] The computation processing execution location determination unit 150 obtains the SoC or server power consumption for each data processing amount for computing units that satisfy the performance requirements. The computation processing execution location determination unit 150 determines the computing unit that requires the least amount of power to process the current load as the computing unit that should execute the processing. The computation processing execution location determination unit 150 determines whether the computing unit currently executing the processing and the computing unit that should execute the processing are the same, and if they do not match, performs a switch.

[0092] When the above (1) performance requirement (throughput) and (2) performance requirement (delay requirement) are both received, the calculation processing execution location determination unit 150 determines the calculation unit that should execute the processing to be the calculation unit with the lowest power consumption among the calculation units that can satisfy both.

[0093] (3) When only the current load and CPU usage rate (accelerator 13 usage rate) are received from the load acquisition unit 130, the calculation processing execution location determination unit 150 selects the calculation unit with the lowest power consumption without making a decision based on the performance requirements. Note that when the performance requirements are received, the logic of (3) is not applied.

[0094] The arithmetic processing execution location determination unit 150 acquires the power consumption for each data processing amount and each utilization rate of each arithmetic unit. The arithmetic processing execution location determination unit 150 determines the arithmetic unit that consumes the least amount of power at the current load amount and utilization rate as the arithmetic unit that should execute the processing. The arithmetic processing execution location determination unit 150 determines whether the arithmetic unit currently executing the processing and the arithmetic unit that should execute the processing are the same, and if they are not the same, performs switching.

[0095] [Operation of the intra-SoC arithmetic unit power control unit 160] Figure 10 is a diagram explaining the operation of the intra-SoC arithmetic unit power control unit 160 of the CPU instruction switching device 100. Components that are the same as those in Figure 1 are assigned the same reference numerals. The intra-SoC arithmetic unit power control unit 160 minimizes power consumption by using the power-saving functions of the arithmetic units available in the SoC 11.

[0096] Specifically, the SoC arithmetic unit power control unit 160 controls the power of unused arithmetic units based on information about arithmetic units that are no longer in use (arithmetic unit usage information) received from the arithmetic processing execution location determination unit 150 and information about available power-saving functions (power-saving function information) received from the arithmetic unit characteristics recording unit 140.

[0097] Examples of power control techniques to be executed Examples of power control techniques to be executed include clock gating or powering off the accelerator 13 in the inactive SoC 11, and controlling the inactive CPU core 12 to enter a deep C-state.

[0098] Recent CPUs have a function for controlling the CPU's idle state through hardware control, called LPI (Low Power Idle). LPI attempts to save power by turning off some CPU functions when the CPU is idle (when no processing is being performed). LPI is also called CPU idle or C-state. C-state attempts to save power by turning off the power to some of the CPU's circuits when the CPU load is low.

[0099] Fig. 11 is a flowchart showing the operation of the intra-SoC arithmetic unit power control unit 160 of Fig. 10. Fig. 11 shows the flow up to when the intra-SoC arithmetic unit power control unit 160 performs power control of the arithmetic units. This process is executed when arithmetic units are switched. In step S51, the intra-SoC arithmetic unit power control unit 160 (Fig. 11) reads the arithmetic unit to be used from the shared memory.

[0100] In step S52, the intra-SoC arithmetic unit power control unit 160 acquires power saving function information to be applied to the unused arithmetic units from the arithmetic unit characteristics recording unit 140. In step S53, the intra-SoC arithmetic unit power control unit 160 executes power control for the unused arithmetic units.

[0101] The execution of the above power control will be described. (1) When the arithmetic unit is switched from the CPU core 12 (general-purpose instructions / extended instructions) to the accelerator 13, the SoC arithmetic unit power control unit 160 acquires power-saving function information applicable to the CPU core 12 from the arithmetic unit characteristics recording unit 140. The power-saving function information applicable to the CPU core 12 by the SoC arithmetic unit power control unit 160 is either or both of the following (a) and (b): (a) Information on the CPU idle state that can be entered (b) The minimum value of the frequency that can be changed

[0102] Based on the acquired power saving function information, the SoC arithmetic unit power control unit 160 performs one or both of the following (c) and (d) on the CPU core 12 that is no longer in use: (c) Transition to the deepest CPU idle state. Operate the power control unit 14 in the SoC by writing to the CPU idle state management file. (d) Reduce the CPU frequency to the minimum value. Similarly, operate the power control unit 14 in the SoC by writing to the CPU frequency management file.

[0103] (2) When the arithmetic unit is switched from the accelerator 13 to the CPU core 12 (general-purpose instructions / extended instructions) The SoC arithmetic unit power control unit 160 acquires power-saving function information applicable to the accelerator 13 from the arithmetic unit characteristics recording unit 140. Examples of power control methods using this power-saving function information include the following: Frequency fluctuation of the accelerator 13 (minimization of frequency) Clock gating for the accelerator 13 Cutting off the power supply to the accelerator 13 or reducing the voltage Of these methods, the method with the greatest power reduction effect is applied to the accelerator 13.

[0104] Second Embodiment [Overall Configuration] Fig. 12 is a schematic configuration diagram of a server system according to a second embodiment of the present invention. Components that are the same as those in Fig. 1 are assigned the same reference numerals, and overlapping descriptions will be omitted. As shown in Fig. 12, a server system 1000A includes hardware 10A, an OS 20, middleware 30 which is high-speed data communication middleware, a CPU instruction switching device 100A, and an APL 1. This embodiment is an example in which power control of an accelerator 13 is performed autonomously within an SoC.

[0105] [CPU instruction switching device 100A] The CPU instruction switching device 100A includes an interface difference absorption unit 110, an arithmetic processing offload unit 120, a load amount acquisition unit 130, an arithmetic unit characteristics recording unit 140A, and an arithmetic processing execution location determination unit 150. The CPU instruction switching device 100A has a configuration in which the intra-SoC arithmetic unit power control unit 160 has been removed from the CPU instruction switching device 100 in Fig. 1 and moved to hardware 10A as an intra-SoC arithmetic unit power control unit 180.

[0106] In this embodiment, the SoC arithmetic unit power control unit 180 is placed in the hardware 10A, and since the SoC arithmetic unit power control unit 180 operates autonomously within the hardware 10A, it does not work in conjunction with the arithmetic processing execution location determination unit 150.

[0107] [Hardware 10A] The hardware 10A includes a processor chip SoC 11A, which includes a CPU core 12, an accelerator 13, a power control unit 14, an accelerator usage status acquisition unit 170, and an intra-SoC arithmetic unit power control unit 180. The accelerator usage status acquisition unit 170 acquires usage information of the accelerator 13 within the SoC. When the accelerator 13 becomes inoperative, the accelerator usage status acquisition unit 170 passes this usage status (accelerator usage status) to an intra-SoC arithmetic unit power control unit 180 within the SoC 11A. When the accelerator 13 becomes inoperative, the intra-SoC arithmetic unit power control unit 180 triggers (activates) the power control function of the accelerator 13 and disables power control of the accelerator 13 based on the accelerator usage status received from the accelerator usage status acquisition unit 170.

[0108] The operation of the CPU instruction switching device 100A configured as described above will now be described. [Operation of the Calculator Characteristics Recording Unit 140] Figure 13 is a diagram illustrating the operation of the Calculator Characteristics Recording Unit 140A of the CPU instruction switching device 100A. Components that are the same as those in Figure 12 are assigned the same reference numerals. The Calculator Characteristics Recording Unit 140A (Figure 13) acquires and records the performance characteristics, power consumption characteristics, and available power-saving functions of the Calculators (general-purpose instruction Calculator 12a, extended instruction Calculator 12b) within the SoC 11. Information on the performance characteristics and power consumption characteristics is used by the arithmetic processing execution location determination unit 150, and information on available power-saving functions is used by the intra-SoC Calculator Power Control Unit 180 within the SoC 11A.

[0109] The arithmetic unit characteristics recording unit 140A acquires and records the performance / power characteristics of each arithmetic unit and the power-saving functions available within the SoC 11. The relevant information is stored in a shared memory (not shown) that can be read by the arithmetic processing execution location determination unit 150 and the intra-SoC arithmetic unit power control unit 160A.

[0110] Fig. 14 is a flowchart showing the operation of the arithmetic unit characteristics recording unit 140A of Fig. 13. Fig. 14 shows the flow from when the arithmetic unit characteristics recording unit 140A acquires and records arithmetic unit characteristics. This process is executed at the time of initialization when the CPU instruction switching device 100A starts operating. In step S61, the arithmetic unit characteristics recording unit 140A (Fig. 13) acquires information about the installed arithmetic units, the performance and power characteristics of each arithmetic unit, and information about power-saving functions that can be executed by each arithmetic unit.

[0111] The following describes each piece of information acquired by the computing unit characteristics recording unit 140A and an example of how to acquire it. (1) Information on the installed computing unit - The type of the extended instruction computing unit 12b (FIG. 13) can be acquired by reading CPU information from the OS. - In some cases, information on the installed computing unit can be acquired by reading CPU information for the accelerator 13 in the SoC 11, and in other cases, information on the installed computing unit can be acquired by reading whether a module for using the accelerator 13 is enabled.

[0112] (2) Performance and power characteristics of each computing unit Performance characteristics: Maximum throughput that each computing unit can process and delay time required for processing per data amount (bytes) Power characteristics: Power consumption within the SoC or server for each utilization rate of each computing unit, and power consumption within the SoC or server for each data processing amount (bps)

[0113] - Performance characteristic acquisition method (1): The operator specifies the throughput and delay time at startup. - Performance characteristic acquisition method (2): At startup, the computing unit characteristics recording unit 140 executes processing using test data and acquires the delay time / performance. - For example, in the case of a system that performs error correction encoding / decoding processing (FEC processing), each computing unit processes the test data to be processed by FEC, and the delay time and throughput during this process are measured.

[0114] Method (1) of acquiring power characteristics: The operator specifies the power characteristics of each computing unit. Method (2) of acquiring power characteristics: At startup, the computing unit characteristics recording unit 140 executes processing using test data and measures the power consumed for each usage rate.

[0115] In this embodiment, the power control of the accelerator 13 is autonomously performed by the hardware 10A, so there is no need for the arithmetic unit characteristics recording unit 140A to acquire the power control method.

[0116] 14 , in step S62, the arithmetic unit characteristics recording unit 140A stores information on the performance and power characteristics of each arithmetic unit in a memory (not shown) shared with the arithmetic processing execution location determination unit 150. The arithmetic unit characteristics recording unit 140A also stores information on power saving functions that can be executed by each arithmetic unit in a memory (not shown) shared with the intra-SoC arithmetic unit power control unit 180.

[0117] [Operation of the arithmetic processing execution location determination unit 150] Figure 15 is a diagram explaining the operation of the arithmetic processing execution location determination unit 150 of the CPU instruction switching device 100A. Components that are the same as those in Figure 12 are assigned the same reference numerals. The arithmetic processing execution location determination unit 150 receives the load amount or delay requirement, and reads out the performance characteristics and power consumption characteristics from the arithmetic unit characteristics recording unit 140. The arithmetic processing execution location determination unit 150 determines to use the arithmetic unit with the lowest power consumption among the arithmetic units that can satisfy the required arithmetic performance, and instructs the arithmetic processing offload unit 120 to switch (arithmetic unit switching instruction).

[0118] Fig. 16 is a flowchart showing the operation of the arithmetic processing execution location determination unit 150 in Fig. 15. Fig. 16 shows the flow up to the point where the arithmetic processing execution location determination unit 150 issues an instruction to switch arithmetic units. This process is carried out continuously while APL1 is running. In step S71, the arithmetic processing execution location determination unit 150 (Fig. 15) reads the load amount and delay requirements from the memory shared with the load amount acquisition unit 130.

[0119] In step S72, the arithmetic processing execution location determination unit 150 reads performance / power characteristic information for each arithmetic unit from the arithmetic unit characteristics recording unit 140. In step S73, the arithmetic processing execution location determination unit 150 determines whether or not it is necessary to switch arithmetic units based on the load amount, delay requirements, and performance / power characteristic information of the arithmetic units, based on arithmetic unit switching determination logic. The arithmetic unit switching determination logic will be described later in the supplementary explanation below.

[0120] If there is no need to switch the computing unit (S74: No), the processing of this flowchart ends. If there is a need to switch the computing unit (S74: Yes), in step S75, the computing processing execution location determination unit 150 writes information about the computing unit to be switched to (computing unit switching information) in the memory shared with the interface difference absorption unit 110.

[0121] In step S76, the computation processing execution location determination unit 150 writes information about the computation unit to be switched to (computation unit switching information) in the memory shared with the computation processing offload unit 120, and ends the processing of this flowchart.

[0122] The method of transmitting the arithmetic unit switching information in steps S75 and S76 above will be described. The arithmetic processing execution location determination unit 150 writes information about the arithmetic unit to a memory shared with each functional unit. At this time, for example, if the accelerator 13 is changed to an extended instruction, assuming [general purpose instruction: 1, extended instruction: 2, accelerator: 3], the value written in the shared memory is rewritten from accelerator: 3 to extended instruction: 2. Each functional unit reads this value to determine the arithmetic unit to use.

[0123] [Operation of the Intra-SoC Calculator Power Control Unit 180] Figure 17 is a diagram explaining the operation of the intra-SoC Calculator Power Control Unit 180 of the CPU instruction switching device 100. Components that are the same as those in Figure 12 are assigned the same reference numerals. Based on the accelerator usage status received from the accelerator usage status acquisition unit 170, when the accelerator 13 becomes inoperative, the intra-SoC Calculator Power Control Unit 180 triggers (activates) the power control function of the accelerator 13 to disable power control of the accelerator 13.

[0124] Fig. 18 is a flowchart showing the operation of the intra-SoC arithmetic unit power control unit 180 in Fig. 17. In step S81, the accelerator usage status acquisition unit 170 (Fig. 17) acquires usage rate information indicating the usage status of the accelerator 13 (the frequency of use and usage time of the accelerator).

[0125] In step S82, the accelerator utilization status acquisition unit 170 passes utilization rate information of the accelerator 13 to the intra-SoC arithmetic unit power control unit 180. Here, the accelerator utilization status acquisition unit 170 periodically acquires the utilization rate of the accelerator 13, and therefore can detect a decrease in the utilization rate of the accelerator 13 due to switching of the arithmetic unit, etc. For this reason, it is difficult to control power in conjunction with software switching decisions, but it is possible to make power control decisions based on the utilization rate of the accelerator 13.

[0126] In step S83, the SoC arithmetic unit power control unit 180 determines whether power control of the accelerator 13 is possible. The determination of whether power control is possible and the power control unit 14 that executes it will be described below. (1) Power control method that can be executed while the accelerator 13 is operating This power control method is executed when the accelerator 13 is in use but the utilization rate drops. Example: When the utilization rate of the accelerator 13 falls below 50%, the frequency of the accelerator 13 is lowered. Lowering the frequency reduces performance, but processing can continue.

[0127] (2) Power control method that can be executed when the accelerator 13 is completely inactive This power control method is executed when the utilization rate of the accelerator 13 reaches 0%. Example: When the utilization rate of the accelerator 13 reaches 0%, the clock supply to the accelerator 13 is stopped. Stopping the clock makes it impossible to continue processing, but it can significantly reduce power consumption.

[0128] Returning to the flow of FIG. 18, in step S84, the intra-SoC arithmetic unit power control unit 180 determines whether power control of the accelerator 13 is possible.

[0129] In step S85, the SoC arithmetic unit power control unit 180 executes the power control unit 14, and ends the processing of this flow.

[0130] Third Embodiment [Overall Configuration] Fig. 19 is a schematic configuration diagram of a server system according to a second embodiment of the present invention. Components that are the same as those in Fig. 1 are assigned the same reference numerals, and explanations of overlapping parts will be omitted. As shown in Fig. 19, a server system 1000B has hardware 10, an OS 20, a CPU instruction switching device 100B, and an APL 200. This embodiment is an example in which each functional unit is implemented within the APL 200.

[0131] [APL200] The APL200 has the functions of the CPU instruction switching device 100B. The CPU instruction switching device 100B has an arithmetic instruction issuing unit 210, a load amount acquiring unit 130, a computing unit characteristics recording unit 140, an arithmetic processing execution location determining unit 150, and an intra-SoC arithmetic unit power control unit 160. The CPU instruction switching device 100B has a configuration in which the interface difference absorbing unit 110 and the arithmetic processing offload unit 120 are removed from the CPU instruction switching device 100 of FIG. 1 and an arithmetic instruction issuing unit 210 is added. The arithmetic instruction issuing unit 210 issues an arithmetic instruction that executes processing in an arithmetic unit specified by the arithmetic processing execution location determining unit 150.

[0132] The operation of the CPU instruction switching device 100B configured as described above will be described below. FIG. 20 is a diagram illustrating the operation of the arithmetic instruction issuing unit 210 of the CPU instruction switching device 100B. Components that are the same as those in FIG. 19 are assigned the same reference numerals. As shown in FIG. 20, the arithmetic instruction issuing unit 210 receives an instruction to switch arithmetic units from the arithmetic processing execution location determination unit 150, and obtains the arithmetic result of the arithmetic unit that executes the processing specified by the arithmetic processing execution location determination unit 150. The arithmetic instruction issuing unit 210 issues arithmetic instructions to the accelerator 13 or to arithmetic units that use user-extended instructions.

[0133] Fig. 21 is a flowchart showing the operation of the arithmetic instruction issuing unit 210 of Fig. 20. Fig. 21 shows the data processing flow while the APL 200 is running, and this processing is performed continuously while the APL 200 is running. In step S91, the APL 200 executes processing on the CPU using extension instructions or general-purpose instructions that do not use the accelerator 13. Many instructions of the APL 200 are usually executed using general-purpose instructions.

[0134] In step S92, when executing an extension instruction or a process that requires the accelerator 13, the arithmetic instruction issuing unit 210 reads the memory shared with the arithmetic processing execution location determining unit 150 and acquires information about the arithmetic unit to be executed.

[0135] In step S93, the arithmetic instruction issuing unit 210 executes the processing in the arithmetic unit specified by the arithmetic processing execution location determining unit 150. In the first and second embodiments, the arithmetic processing execution location determining unit 150 (FIGS. 1 and 15) uses the memory used by the middleware 30, but in this embodiment, the arithmetic instruction issuing unit 210 uses the memory used by the APL 200.

[0136] When the arithmetic instruction issuing unit 210 executes an instruction in an arithmetic unit within the CPU core 12, it can execute the instruction on data present in the memory used by the APL 200. On the other hand, when the arithmetic instruction issuing unit 210 executes an instruction in the in-SoC accelerator 13, it is necessary to store the instruction and data in the memory shared between the APL 200 and the accelerator 13. In the flowchart, this is collectively described as "executed in a specified arithmetic unit."

[0137] In step S94, the arithmetic instruction issuing unit 210 obtains data stored in memory (general-purpose memory for processing deployment; not shown). In other words, when the arithmetic instruction issuing unit 210 executes an instruction in an arithmetic unit within the CPU core 12, the result is stored in the memory used by the APL 200. Therefore, the arithmetic instruction issuing unit 210 obtains the arithmetic result stored in the memory used by the APL 200. On the other hand, when the instruction is executed by the accelerator 13, the processing result is stored in the memory shared between the accelerator 13 and the APL 200. Therefore, the arithmetic instruction issuing unit 210 obtains the data stored in the shared memory of the APL 200.

[0138] In step S95, the APL 200 continues processing after the end of the operation that uses the user extension instruction or the accelerator 13.

[0139] [Operation of the Load Amount Acquisition Unit 130] Figure 22 is a diagram illustrating the operation of the load amount acquisition unit 130 of the CPU instruction switching device 100B. Components that are the same as those in Figure 19 are given the same reference numerals. The load amount acquisition unit 130 acquires the data processing amount in the APL 200 (in this embodiment, since the load amount acquisition unit 130 is arranged in the APL 200, it is referred to as "data processing amount" instead of "load amount") and delay requirements.

[0140] The following describes an example of the processing amount received by the load amount acquisition unit 130 and the method for doing so. The processing content is the same as that of the load amount acquisition unit 130 of the first embodiment (FIG. 4), but the acquisition method is different. Example (1): Performance requirements - For performance requirements that do not change, the operator specifies the performance requirements (throughput (bps) and delay requirements (μsec)) when the system is started. - Fluctuations in the performance requirements are received from the operator, and this is passed to the calculation processing execution location determination unit 150 periodically or when a fluctuation occurs.

[0141] Example (2): Amount of data processing currently being executed by the APL 200 itself. The load (bps) is periodically acquired via a shared memory with the arithmetic instruction issuing unit 210 for processing that requires the accelerator 13 or extended instructions.

[0142] Example (3): CPU usage rate and accelerator usage rate. Obtain the CPU usage rate of the CPU core 12 that executes extended instructions and general-purpose instructions, and the usage rate of the accelerator 13 within the SoC.

[0143] Fig. 23 is a flowchart showing the operation of the load amount acquisition unit 130 in Fig. 22. Fig. 23 shows the flow from when the load amount acquisition unit 130 acquires the load amount to when it passes the load amount to the calculation processing execution location determination unit 150. This process is performed continuously while the APL 200 is running. In step S101, the load amount acquisition unit 130 (Fig. 22) acquires the data processing amount and delay requirements in the APL 200.

[0144] In step S102, the load acquisition unit 130 passes the acquired load to the computation processing execution location determination unit 150. This transfer is performed via shared memory. In step S103, the computation processing execution location determination unit 150 reads the relevant data from the shared memory and ends the processing of this flow.

[0145] [Operation of the Calculator Characteristics Recording Unit 140] Figure 24 is a diagram explaining the operation of the Calculator Characteristics Recording Unit 140 of the CPU instruction switching device 100B. Components that are the same as those in Figure 19 are assigned the same reference numerals. The Calculator Characteristics Recording Unit 140 acquires and records the performance characteristics, power consumption characteristics, and available power-saving functions of the Calculators (general-purpose instruction Calculator 12a, extended instruction Calculator 12b) within the SoC 11. Information on the performance characteristics and power consumption characteristics is used by the arithmetic processing execution location determination unit 150. Information on available power-saving functions is used by the intra-SoC Calculator Power Control Unit 160.

[0146] The arithmetic unit characteristics recording unit 140 acquires and records the performance / power characteristics of each arithmetic unit and the power-saving functions available within the SoC 11. The relevant information is stored in a shared memory that can be read by the arithmetic processing execution location determination unit 150 and the intra-SoC arithmetic unit power control unit 160.

[0147] - Example of a method for acquiring performance / power characteristics Methods for acquiring performance / power characteristics include: an operator statically specifies the characteristics before the system starts, the computing unit characteristics recording unit 140 acquires processor information from the OS, estimates the performance / power characteristics, acquires the performance and power during processing in each computing unit, and updates them as appropriate. - Example of a method for acquiring power-saving functions for computing units in an SoC Methods for acquiring power-saving functions for computing units in an SoC include: an operator statically specifies the characteristics before the system starts, and the computing unit characteristics recording unit 140 acquires processor information (such as C-state information for the CPU core 12) from the OS.

[0148] Fig. 25 is a flowchart showing the operation of the arithmetic unit characteristics recording unit 140 of Fig. 24. Fig. 25 shows the flow from when the arithmetic unit characteristics recording unit 140 acquires and records arithmetic unit characteristics. This process is executed at the time of initialization when the CPU instruction switching device 100B starts operating. In step S111, the arithmetic unit characteristics recording unit 140 (Fig. 24) acquires information about the installed arithmetic units, the performance and power characteristics of each arithmetic unit, and information about power-saving functions that can be executed by each arithmetic unit.

[0149] The following describes each piece of information acquired by the arithmetic unit characteristics recording unit 140 and an example of how to acquire it. (1) Information on the installed arithmetic units The type of the extended instruction arithmetic unit 12b (FIG. 24) can be acquired by reading CPU information from the OS. In some cases, this information can be acquired by reading the CPU information of the accelerator 13 in the SoC 11, and in other cases, it can be acquired by reading whether a module for using the accelerator 13 is enabled.

[0150] (2) Performance and power characteristics of each computing unit Performance characteristics: Maximum throughput that each computing unit can process and delay time required for processing per data amount (bytes) Power characteristics: Power consumption within the SoC or server for each utilization rate of each computing unit, and power consumption within the SoC or server for each data processing amount (bps)

[0151] - Performance characteristic acquisition method (1): The operator specifies the throughput and delay time at startup. - Performance characteristic acquisition method (2): At startup, the computing unit characteristics recording unit 140 executes processing using test data and acquires the delay time / performance. - For example, in the case of a system that performs error correction encoding / decoding processing (FEC processing), each computing unit processes the test data to be processed by FEC, and the delay time and throughput during this process are measured.

[0152] Method (1) of acquiring power characteristics: The operator specifies the power characteristics of each computing unit. Method (2) of acquiring power characteristics: At startup, the computing unit characteristics recording unit 140 executes processing using test data and measures the power consumed for each usage rate.

[0153] (3) Information on the power control unit 14 that can be executed by each arithmetic unit - CPU core 12 (general-purpose / extended instruction arithmetic unit): Information on the minimum frequency and the CPU idle state that can be entered, obtained from the OS 20 (Figure 24). - Accelerator 13: There are available power control units 14 (e.g., clock gating, power off, frequency fluctuation, etc.) and values ​​(e.g., minimum frequency fluctuation). In this case, it may be possible to obtain this information from the OS 20. If it cannot be obtained from the OS 20, the operator must statically specify it at startup.

[0154] Returning to the flow of Figure 25, in step S112, the arithmetic unit characteristics recording unit 140 stores information on performance and power characteristics in a memory shared with the arithmetic processing execution location determination unit 150, and stores information on power saving functions that can be executed by each arithmetic unit in a memory shared with the SoC arithmetic unit power control unit 160.

[0155] [Operation of the arithmetic processing execution location determination unit 150] Figure 26 is a diagram illustrating the operation of the arithmetic processing execution location determination unit 150 of the CPU instruction switching device 100B. Components identical to those in Figure 19 are assigned the same reference numerals. The arithmetic processing execution location determination unit 150 receives the required arithmetic performance from the load amount acquisition unit 130 and reads the performance characteristics and power consumption characteristics from the arithmetic unit characteristics recording unit 140. The arithmetic processing execution location determination unit 150 determines to use the arithmetic unit with the lowest power consumption among the arithmetic units that can satisfy the required arithmetic performance, and instructs the arithmetic instruction issuing unit 210 to switch. The arithmetic processing execution location determination unit 150 also passes information about the arithmetic units that will no longer be used (arithmetic unit usage information) to the SoC arithmetic unit power control unit 160 and instructs power control.

[0156] The arithmetic processing execution location determination unit 150 receives the load amount and delay requirements from the load amount acquisition unit 130, and reads the performance / power characteristics of each arithmetic unit recorded in the arithmetic unit characteristics recording unit 140. The arithmetic processing execution location determination unit 150 selects the arithmetic unit with the lowest power consumption among the arithmetic units that can satisfy the required performance, and instructs the arithmetic instruction issuing unit 210 to execute processing in that arithmetic unit. Furthermore, when instructing switching, the arithmetic processing execution location determination unit 150 notifies the intra-SoC arithmetic unit power control unit 160 of information on the arithmetic unit to be used and the arithmetic unit that has become inoperative, and the intra-SoC arithmetic unit power control unit 160 uses this notification as a trigger (activation of a control function) to execute intra-SoC power control processing.

[0157] Examples of information to be notified to the SoC arithmetic unit power control unit 160 Examples of information to be notified to the SoC arithmetic unit power control unit 160 include information on the accelerator 13 that has become inoperable due to switching of processing to the arithmetic unit within the CPU core 12, and information on the CPU core 12 that has become inoperable due to switching of processing to the accelerator 13.

[0158] Fig. 27 is a flowchart showing the operation of the arithmetic processing execution location determination unit 150 in Fig. 26. Fig. 27 shows the flow up to when the arithmetic processing execution location determination unit 150 issues an instruction to switch arithmetic units. This processing is performed continuously while APL1 is running. In step S121, the arithmetic processing execution location determination unit 150 (Fig. 26) reads the load amount and delay requirements from the memory shared with the load amount acquisition unit 130.

[0159] In step S122, the arithmetic processing execution location determination unit 150 reads performance / power characteristic information for each arithmetic unit from the arithmetic unit characteristics recording unit 140. In step S123, the arithmetic processing execution location determination unit 150 determines whether it is necessary to switch arithmetic units based on the load amount, delay requirements, and performance / power characteristic information of the arithmetic units, using arithmetic unit switching determination logic. The arithmetic unit switching determination logic is the same as in the first embodiment.

[0160] If it is not necessary to switch the arithmetic unit (S124: No), the processing of this flowchart ends. If it is necessary to switch the arithmetic unit (S124: Yes), in step S125, the arithmetic processing execution location determination unit 150 writes information about the arithmetic unit to be switched to in the memory shared with the arithmetic instruction issue unit 210.

[0161] In step S126, the arithmetic processing execution location determination unit 150 writes information about the arithmetic processing unit to be switched to in a memory shared with the SoC arithmetic processing unit power control unit 160, and then ends the processing of this flowchart. In steps S125 to S126, the arithmetic processing execution location determination unit 150 writes information about the arithmetic processing unit to a memory shared with each functional unit. At this time, for example, if the accelerator 13 is changed to an extended instruction, assuming [general purpose instruction: 1, extended instruction: 2, accelerator: 3], the value written in the shared memory is rewritten from accelerator: 3 to extended instruction: 2. Each functional unit reads this value to determine the arithmetic processing unit to be used.

[0162] In steps S125 and S126, the method of transmitting the arithmetic unit switching information is the same as in the first embodiment.

[0163] [Operation of the Intra-SoC Calculator Power Control Unit 160] Figure 28 is a diagram explaining the operation of the intra-SoC Calculator Power Control Unit 160 of the CPU instruction switching device 100B. Components that are the same as those in Figure 19 are assigned the same reference numerals. The intra-SoC Calculator Power Control Unit 160 minimizes power consumption by using power-saving functions available within the SoC 11. The intra-SoC Calculator Power Control Unit 160 controls the power of unused Calculators based on information about Calculators that are no longer in use received from the arithmetic processing execution location determination unit 150 and information about available power-saving functions received from the Calculator Characteristics Recording Unit 140.

[0164] The SoC arithmetic unit power control unit 160 receives information about arithmetic units that have become inoperative from the arithmetic processing execution location determination unit 150, and performs power control of unused arithmetic units based on information about available power-saving functions received from the arithmetic unit characteristics recording unit 140.

[0165] Examples of power control techniques to be executed Examples of power control techniques to be executed include clock gating or powering off the accelerator 13 in the inactive SoC 11, and controlling the inactive CPU core 12 to enter a deep C-state.

[0166] Fig. 29 is a flowchart showing the operation of the intra-SoC arithmetic unit power control unit 160 of Fig. 28. Fig. 29 shows the flow up to when the intra-SoC arithmetic unit power control unit 160 performs power control of the arithmetic units. This process is executed when arithmetic units are switched. In step S131, the intra-SoC arithmetic unit power control unit 160 (Fig. 28) reads the arithmetic unit to be used from the shared memory.

[0167] In step S132, the intra-SoC arithmetic unit power control unit 160 acquires information on power control methods applicable to the unused arithmetic units from the arithmetic unit characteristics recording unit 140. In step S133, the intra-SoC arithmetic unit power control unit 160 executes power control for the unused arithmetic units.

[0168] The execution of the above power control will be described. (1) When the arithmetic unit is switched from the CPU core 12 (general-purpose instructions / extended instructions) to the accelerator 13, the SoC arithmetic unit power control unit 160 acquires the power control method applicable to the CPU core 12 from the arithmetic unit characteristics recording unit 140. The SoC arithmetic unit power control unit 160 obtains the power saving function information applicable to the CPU core 12 as either (a) or (b), or both, of the following: (a) Information on the CPU idle state that can be entered (b) The minimum value of the frequency that can be changed

[0169] Therefore, the SoC arithmetic unit power control unit 160 performs one or both of the following actions (c) and (d) on the CPU core 12 that is no longer in use: (c) Transition to the deepest CPU idle state. Operate the power control unit 14 in the SoC by writing to the CPU idle state management file. (d) Reduce the CPU frequency to the minimum value. Similarly, operate the power control unit 14 in the SoC by writing to the CPU frequency management file.

[0170] (2) When the arithmetic unit is switched from the accelerator 13 to the CPU core 12 (general-purpose instructions / extended instructions) The SoC arithmetic unit power control unit 160 acquires power control methods applicable to the accelerator 13 from the arithmetic unit characteristics recording unit 140. Examples of power control methods applicable to the accelerator 13 include the following: Frequency fluctuation of the accelerator 13 (minimization of frequency) Clock gating for the accelerator 13 Cutting off the power supply to the accelerator 13 or reducing the voltage Of these methods, the method with the greatest power reduction effect is applied to the accelerator 13.

[0171] [Hardware Configuration] The CPU instruction switching devices 100, 100A, and 100B according to the above embodiments are realized by a computer 900 having a configuration such as that shown in Fig. 30, for example. Fig. 30 is a hardware configuration diagram showing an example of the computer 900 that realizes the functions of the CPU instruction switching devices 100, 100A, and 100B. The computer 900 has a CPU 901, a RAM 902, a ROM 903, a HDD 904, an accelerator 905, an input / output interface (I / F) 906, a media interface (I / F) 907, and a communication interface (I / F) 908. The accelerator 905 corresponds to the accelerator 13 shown in Figs. 1, 12, and 19.

[0172] The accelerator 905 is an accelerator (device) 13 (FIGS. 1, 12, and 19) that processes at least one of data from the communication I / F 908 and data from the RAM 902 at high speed. Note that the accelerator 905 may be of a type (look-aside type) that executes processing from the CPU 901 or RAM 902 and then returns the execution result to the CPU 901 or RAM 902. On the other hand, the accelerator 905 may be of a type (in-line type) that performs processing between the communication I / F 908 and the CPU 901 or RAM 902.

[0173] The accelerator 905 is connected to an external device 915 via a communication I / F 908. The input / output I / F 906 is connected to an input / output device 916. The media I / F 907 reads and writes data from and to a recording medium 917.

[0174] The CPU 901 operates based on a program stored in the ROM 903 or HDD 904, and controls each part of the CPU instruction switching devices 100, 100A, and 100B shown in Figures 1, 12, and 19 by executing a program (also called an application or an app for short) loaded into the RAM 902. This program can also be distributed via a communication line or recorded on a recording medium 917 such as a CD-ROM. The ROM 903 stores a boot program executed by the CPU 901 when the computer 900 starts up, programs that depend on the hardware of the computer 900, and the like.

[0175] The CPU 901 controls an input / output device 916, which is made up of input units such as a mouse and a keyboard, and output units such as a display and a printer, via an input / output I / F 906. The CPU 901 acquires data from the input / output device 916 via the input / output I / F 906, and outputs generated data to the input / output device 916. Note that a GPU (Graphics Processing Unit) or the like may be used as a processor together with the CPU 901.

[0176] The HDD 904 stores programs executed by the CPU 901 and data used by the programs. The communication I / F 908 receives data from other devices via a communication network (e.g., NW (Network)) and outputs the data to the CPU 901, and also transmits data generated by the CPU 901 to other devices via the communication network.

[0177] The media I / F 907 reads a program or data stored in a recording medium 917 and outputs it to the CPU 901 via the RAM 902. The CPU 901 loads a program related to a target process from the recording medium 917 onto the RAM 902 via the media I / F 907, and executes the loaded program. The recording medium 917 is an optical recording medium such as a DVD (Digital Versatile Disc) or a PD (Phase Change Rewritable Disc), a magneto-optical recording medium such as an MO (Magneto Optical Disc), a magnetic recording medium, a conductive memory tape medium, a semiconductor memory, or the like.

[0178] For example, when a computer 900 functions as the CPU instruction switching devices 100, 100A, and 100B configured as one device according to this embodiment, a CPU 901 of the computer 900 realizes the functions of the CPU instruction switching devices 100, 100A, and 100B by executing a program loaded onto a RAM 902. Data stored in the RAM 902 is also stored in the HDD 904. The CPU 901 reads and executes a program related to a target process from a recording medium 917. Alternatively, the CPU 901 may read a program related to a target process from another device via a communication network.

[0179] [Effects] As described above, the CPU instruction switching devices 100, 100A (FIGS. 1 and 12) instruct the arithmetic unit to execute general-purpose CPU instructions or extended CPU instructions of the application (APL1) and offload specific processing of APL1 to the accelerator 13, and include an interface difference absorption unit 110 that absorbs differences in instructions due to differences in the arithmetic unit and differences in the request format offloaded from APL1, an arithmetic processing offload unit 120 that causes the arithmetic unit to execute instructions that the interface difference absorption unit 110 has adjusted to the format of the arithmetic unit to be used, and a processing offload unit 120 that controls the accelerator 13 and the and a load acquisition unit 130 that acquires the current load or delay requirements of the arithmetic units that use the CPU extended instructions; an arithmetic unit characteristic recording unit 140 that acquires and records the performance characteristics, power characteristics, and power-saving functions of each arithmetic unit; and an arithmetic processing execution location determination unit 150 that receives the load or delay requirements from the load acquisition unit 130, reads the performance characteristics, power characteristics, and power-saving functions from the arithmetic unit characteristic recording unit 140, determines the arithmetic unit or accelerator with the lowest power consumption among the arithmetic units that can satisfy the required arithmetic performance, and instructs the arithmetic processing offload unit 120 to switch.

[0180] By doing this, in an SoC 11 equipped with multiple types of arithmetic units, the arithmetic unit that executes processing can be dynamically switched based on the performance power characteristics and power consumption characteristics of each arithmetic unit, as well as the required arithmetic performance. Furthermore, by using the power control mechanism of the SoC 11 appropriately in accordance with the usage status of the arithmetic units that changes due to dynamic switching, the power consumption of unused arithmetic units can be minimized. This makes it possible to reduce (preferably minimize) power consumption while achieving the required arithmetic performance.

[0181] A CPU instruction switching device 100B (FIG. 19) instructs a computing unit to execute a CPU general-purpose instruction or a CPU extended instruction of an application (APL200) and offloads specific processing of the APL200 to an accelerator 13, wherein the APL200 includes: a load acquisition unit 130 that acquires the current load amount or delay requirement of the accelerator 13 and the computing unit that uses the CPU extended instruction; a computing unit characteristic recording unit 140 that acquires and records the performance characteristics, power characteristics, and power-saving functions of each computing unit; an operation processing execution location determination unit 150 that receives the load amount or the delay requirement from the load acquisition unit 130, reads the performance characteristics, power characteristics, and power-saving functions from the computing unit characteristic recording unit 140, determines the computing unit or accelerator with the lowest power consumption among the computing units that can satisfy the required operation performance, and instructs an operation instruction issuing unit 210 to switch; and an operation instruction issuing unit 210 that issues an operation instruction that executes processing using the computing unit or accelerator specified by the operation processing execution location determination unit 150.

[0182] By doing so, it is possible to minimize power consumption while achieving the required computing performance. Furthermore, by implementing each functional unit within the application (APL 200), there is an effect of eliminating the overhead caused by middleware that switches between computing units. Furthermore, since the commands issued by the application themselves are switched, there is no need to absorb interface differences. However, it should be noted that this involves modification of the application.

[0183] The CPU instruction switching device 100, 100A (Figures 1 and 12) is equipped with an SoC arithmetic unit power control unit 160 that controls the power consumption of unused arithmetic units based on information about arithmetic units that are no longer in use received from the arithmetic processing execution location determination unit 150 and information about available power-saving functions received from the arithmetic unit characteristics recording unit 140.

[0184] In this way, the arithmetic processing execution location determination unit 150 passes information about the arithmetic units that will no longer be used to the intra-SoC arithmetic unit power control unit 160 and instructs power control. The intra-SoC arithmetic unit power control unit 160 performs clock gating or power cut-off on the accelerator 13 in the inactive SoC 11. The intra-SoC arithmetic unit power control unit 160 also controls the inactive CPU core 12 to enter a deep C-state. This makes it possible to minimize the power consumption of unused arithmetic units.

[0185] In the CPU instruction switching device 100, 100A (Figures 1 and 12), the interface difference absorption unit 110, the calculation processing offload unit 120, the load amount acquisition unit 130, the calculation unit characteristics recording unit 140, and the calculation processing execution location determination unit 150 are arranged in the middleware 30 between the OS 20 and the APL 1.

[0186] By doing so, in the server systems 1000 and 1000A, the CPU command switching devices 100 and 100A arranged in the middleware 30 can reduce (preferably minimize) power consumption while achieving the required computing performance.

[0187] In the CPU instruction switching device 100A (FIG. 12), the arithmetic unit, accelerator 13, and intra-SoC arithmetic unit power control unit 160 are arranged in hardware 10 outside the APL 1 and OS 20.

[0188] In this way, power control of the accelerator 13 can be performed autonomously within the SoC 11. Specifically, the accelerator usage status acquisition unit 170 acquires usage information of the accelerator 13 within the SoC. When the accelerator 13 becomes inoperative, this usage information is passed to an intra-SoC arithmetic unit power control unit 180 within the SoC 11. The intra-SoC arithmetic unit power control unit 180 triggers (activates) the power control function of the accelerator 13 to disable power control of the accelerator 13.

[0189] As a result, when the usage rate of the accelerator 13 in the SoC 11 decreases or when the accelerator 13 is no longer in use, the hardware 10 can autonomously reduce the power of the accelerator 13. Since the accelerator 13 is not controlled by software (APL1), there are unique advantages such as low dependency on the accelerator and fewer functions that need to be implemented. However, control cannot be linked with software-based arithmetic unit switching, which may result in a deterioration in power saving and latency.

[0190] Note that, among the processes described in the above embodiments, all or part of the processes described as being performed automatically can be performed manually, or all or part of the processes described as being performed manually can be performed automatically using known methods. Furthermore, the processing procedures, control procedures, specific names, and information including various data and parameters shown in the above documents and drawings can be changed as desired unless otherwise specified. Furthermore, the components of each device shown in the drawings are functionally conceptual and do not necessarily have to be physically configured as shown. In other words, the specific form of distribution and integration of each device is not limited to that shown in the drawings, and all or part of the devices can be functionally or physically distributed and integrated in any unit depending on various loads, usage conditions, etc.

[0191] Furthermore, the above-described configurations, functions, processing units, processing means, etc. may be partially or entirely implemented in hardware, for example, by designing them as integrated circuits. The above-described configurations, functions, etc. may also be implemented by software that causes a processor to interpret and execute programs that implement the respective functions. Information such as programs, tables, and files that implement the respective functions may be stored in a memory, a recording device such as a hard disk or a solid-state drive (SSD), or a recording medium such as an integrated circuit (IC) card, a secure digital (SD) card, or an optical disk.

[0192] 1,200 APL (application) 10, 10A Hardware 11, 11A SoC 12 CPU core 12a General-purpose instruction arithmetic unit 12b Extended instruction arithmetic unit 13 Accelerator 14 Power control unit 20 OS 30 Middleware 100, 100A, 100B CPU instruction switching device 110 Interface difference absorption unit 120 Operation processing offload unit 130 Load amount acquisition unit 140, 140A Operation unit characteristics recording unit 150 Operation processing execution location determination unit 160 Operation unit power control unit within SoC 170 Accelerator usage status acquisition unit 180 Operation unit power control unit within SoC 1000 to 1000B Server system

Claims

1. A CPU instruction switching device that instructs a computing unit to execute a CPU general-purpose instruction or a CPU extended instruction of an application, and offloads specific processing of the application to an accelerator, comprising: an interface difference absorbing unit that absorbs differences in instructions due to differences in computing units and differences in request formats offloaded from the application; an arithmetic processing offload unit that causes the relevant computing unit to execute instructions adjusted by the interface difference absorbing unit to a format of the computing unit to be used; a load acquisition unit that acquires the current load or delay requirements of the accelerator and the computing unit that uses the CPU extended instruction; a computing unit characteristic recording unit that acquires and records the performance characteristics, power characteristics, and power saving functions of each of the computing units; and an arithmetic processing execution location determination unit that receives the load or the delay requirements from the load acquisition unit, reads the performance characteristics, power characteristics, and power saving functions from the computing unit characteristic recording unit, determines the computing unit or the accelerator with the lowest power consumption among the computing units that can satisfy the required arithmetic performance, and instructs the arithmetic processing offload unit to switch.

2. A CPU instruction switching device that instructs a computing unit to use a CPU general-purpose instruction or a CPU extended instruction of an application, and offloads specific processing of the application to an accelerator, wherein the application comprises: a load acquisition unit that acquires the current load or delay requirement of the accelerator and the computing unit that uses the CPU extended instruction; a computing unit characteristic recording unit that acquires and records the performance characteristics, power characteristics, and power saving functions of each of the computing units; an arithmetic processing execution location determination unit that receives the load or the delay requirement from the load acquisition unit, reads the performance characteristics, power characteristics, and power saving functions from the computing unit characteristic recording unit, determines the computing unit or the accelerator with the lowest power consumption among the computing units that can satisfy the required arithmetic performance, and instructs an arithmetic instruction issuing unit to switch; and the arithmetic instruction issuing unit that issues an arithmetic instruction to execute processing using the computing unit or the accelerator specified by the arithmetic processing execution location determination unit.

3. The CPU instruction switching device according to claim 1 or claim 2, further comprising an in-SoC arithmetic unit power control unit that performs power control of the unused arithmetic units based on information of the arithmetic units that are no longer in use received from the arithmetic processing execution location determination unit and information of available power saving functions received from the arithmetic unit characteristic recording unit.

4. The CPU instruction switching device according to claim 1, characterized in that the interface difference absorption unit, the calculation processing offload unit, the load acquisition unit, the calculation unit characteristic recording unit, and the calculation processing execution location determination unit are arranged in middleware between the OS and the application.

5. The CPU instruction switching device according to claim 3, characterized in that the arithmetic unit, the accelerator, and the in-SoC arithmetic unit power control unit are arranged in hardware outside the application and OS.

6. A CPU instruction switching method of a CPU instruction switching device that instructs a computing unit to execute a CPU general-purpose instruction or a CPU extended instruction of an application, and offloads specific processing of the application to an accelerator, wherein the CPU instruction switching device executes the following steps: absorbing differences in instructions due to differences in computing units and differences in the request format offloaded from the application; having the relevant computing unit execute instructions adjusted to the format of the computing unit to be used; acquiring the current load or delay requirement of the accelerator and the computing unit that uses the CPU extended instruction; acquiring and recording the performance characteristics, power characteristics, and power saving functions of each of the computing units; and determining the computing unit or the accelerator with the lowest power consumption among the computing units that can satisfy the required computing performance based on the load or the delay requirement, and the performance characteristics, power characteristics, and power saving functions of the computing unit, and instructing switching.

7. A CPU instruction switching method of a CPU instruction switching device that instructs a computing unit to use a CPU general-purpose instruction or a CPU extended instruction of an application, and offloads specific processing of the application to an accelerator, wherein the application executes the following steps: acquiring the current load or delay requirement of the accelerator and the computing unit that uses the CPU extended instruction; acquiring and recording the performance characteristics, power characteristics, and power saving functions of each of the computing units; determining the computing unit or the accelerator with the lowest power consumption among the computing units that can satisfy the required processing performance based on the load or the delay requirement and the performance characteristics, power characteristics, and power saving functions of the computing unit, and instructing switching; and issuing an operation instruction to execute processing using the computing unit or the accelerator instructed to switch.

8. A program for causing a computer to function as the CPU instruction switching device according to claim 1 or 2.

Citation Information

Patent Citations

  • Program control processor and assembler

    JP1998063381A

  • Job assigning apparatus, job assigning method, and job assigning program

    JP2011018131A

  • Multiprocessor control device, multiprocessor control method, and multiprocessor control circuit

    WO2008152790A1