Use method, system and device of processor architecture and storage medium

By acquiring the usage requirements and resource pool data of cloud terminals, the target architecture is determined and a suitable instruction set usage method is selected, which solves the problem of choosing multiple processor architectures in cloud terminals and improves the working efficiency of cloud terminals.

CN120892149APending Publication Date: 2025-11-04CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510953589.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-10
Publication Date
2025-11-04

AI Technical Summary

Technical Problem

With multiple processor architectures existing in the cloud terminal's resource pool, current technology cannot accurately select and use the appropriate processor architecture, resulting in low cloud terminal efficiency.

Method used

By acquiring the usage requirements of cloud terminals and multiple preset architecture data in the resource pool, the target architecture is determined, and based on the instruction set score of the target architecture, a suitable instruction set usage method is selected, including direct use or conversion of the instruction set, to meet the usage requirements of the cloud terminals.

Benefits of technology

This improves the efficiency of cloud terminal processor architecture, ensuring that the selected architecture meets actual needs and enhances the working efficiency of cloud terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120892149A_ABST
    Figure CN120892149A_ABST
Patent Text Reader

Abstract

The invention discloses a processor architecture using method, system and device and a storage medium, and aims to solve the problem of low working efficiency of a cloud terminal. The method comprises the steps that the use requirement of the cloud terminal and multiple pieces of preset architecture data in a resource pool are obtained, the preset architecture data are used for indicating the performance of preset architectures, and the preset architectures are processor architectures capable of being used by the cloud terminal; determining a target architecture based on the use demand of the cloud terminal and the multiple pieces of preset architecture data; the target architecture is an architecture capable of meeting the use requirements of the cloud terminal. And based on the target architecture, determining a use mode of using the target architecture, the use mode comprising: using the instruction set in the target architecture, and using the converted instruction set in the target architecture. Therefore, under the condition that multiple processor architectures exist in the resource pool, the appropriate processor architecture can be accurately selected and used, so that the working efficiency of the cloud terminal is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of processor architecture usage, and more particularly to a method, system, device, and storage medium for using a processor architecture. Background Technology

[0002] Currently, cloud terminal architecture conversion technology primarily relies on user behavior characteristics and real-time load monitoring to dynamically adjust the processor resources and memory allocation of cloud terminal instances, improving their efficiency and ensuring the architecture meets current usage requirements. While this approach can allocate resources for processors and memory within a single architecture, improving cloud terminal efficiency, it fails to address the issue of multiple processor architectures within the cloud terminal's resource pool. This inability to accurately select and utilize the appropriate processor architecture leads to low cloud terminal efficiency.

[0003] Therefore, how to accurately select and use the appropriate processor architecture when there are multiple processor architectures in the resource pool in order to improve the working efficiency of cloud terminals has become an urgent technical problem to be solved. Summary of the Invention

[0004] The purpose of this application is to provide a method, system, device and storage medium for using a processor architecture, in order to solve the problem of low efficiency in cloud terminal processor architecture.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] In a first aspect, this application provides a method, system, apparatus, and storage medium for using a processor architecture. The method includes: acquiring the usage requirements of a cloud terminal and multiple preset architecture data from a resource pool, wherein the preset architecture data is used to indicate the performance of the preset architecture, and the preset architecture is a processor architecture that the cloud terminal can use; determining a target architecture based on the usage requirements of the cloud terminal and the multiple preset architecture data; the target architecture is an architecture that can meet the usage requirements of the cloud terminal; and determining the usage method of the target architecture based on the target architecture, wherein the usage method includes: using the instruction set in the target architecture and using the converted instruction set in the target architecture.

[0007] Based on the aforementioned technical means, this application comprehensively analyzes the current cloud terminal's usage requirements and preset architecture data by acquiring data on the cloud terminal's usage needs and multiple preset architectures in the resource pool. Based on the cloud terminal's usage requirements and the data on multiple preset architectures, a target architecture that can meet the cloud terminal's usage needs is determined. Based on the target architecture, the usage method of using the target architecture is determined. By selecting the target architecture, a suitable architecture usage method for the cloud terminal can be chosen, improving the utilization efficiency of the cloud terminal's processor architecture.

[0008] One possible approach involves determining the usage method of the target architecture based on the target architecture, including: obtaining a target entropy value and a baseline entropy value for the target architecture, where the target entropy value reflects the complexity of the instruction set in the target architecture; the baseline entropy value indicates the complexity of the instruction set used as a baseline; determining an instruction set score for the target architecture based on the target entropy value and the baseline entropy value, where the instruction set score indicates the efficiency of converting the instruction set of the target architecture into an instruction set matching the initial architecture, where the initial architecture is the processor architecture currently used by the cloud terminal; and determining the usage method of the target architecture based on the instruction set score.

[0009] Based on the aforementioned technical means, this application obtains the target entropy value and the baseline entropy value of the target architecture. Using these values, it determines an instruction set score that indicates the efficiency of converting the instruction set of the target architecture into an instruction set matching the initial architecture. Based on the instruction set score of the target architecture, it determines the usage method for the target architecture, enabling the selection of different architecture usage methods according to different architectures. This improves the compatibility between the target architecture and the cloud terminal, meeting the usage requirements of the cloud terminal.

[0010] In one possible approach, the usage method of the target architecture is determined based on the instruction set score, including: if the instruction set score is greater than or equal to a first preset threshold, the usage method is determined to be using the instruction set in the target architecture; if the instruction set score is greater than or equal to a second preset threshold and less than the first preset threshold, the usage method is determined to be using the converted instruction set in the target architecture; the first preset threshold is greater than the second preset threshold.

[0011] Based on the aforementioned technical means, this application selects the usage method of the target architecture through instruction set scoring. When the instruction set score is greater than or equal to a first preset threshold, the usage method is determined to be using the instruction set in the target architecture. When the instruction set score is greater than or equal to a second preset threshold but less than the first preset threshold, the usage method is determined to be using the converted instruction set in the target architecture. By analyzing the instruction set score based on different threshold ranges, the usage method of the target architecture is determined, enabling the selection of different usage methods according to different target architectures, thereby meeting the usage needs of cloud terminals.

[0012] One possible approach is to use the initial architecture if the instruction set score is less than a second preset threshold.

[0013] Based on the aforementioned technical means, this application uses the initial architecture when the instruction set score is less than a second preset threshold. If the instruction set score of the target architecture does not meet the preset requirements, using the target architecture will lead to reduced efficiency or increased cost; therefore, it is necessary to continue using the initial architecture.

[0014] In one possible approach, the instruction set score of the target architecture satisfies a first preset formula:

[0015]

[0016] Where r represents the instruction set score of the target architecture, H represents the target entropy value of the instruction set of the target architecture, and H0 represents the baseline entropy value.

[0017] In one possible approach, the target architecture is determined based on the cloud terminal's usage requirements and multiple preset architecture data. This includes: determining an architecture matching score for the initial architecture based on the cloud terminal's usage requirements and initial architecture data, where the initial architecture data indicates the initial architecture's performance and the architecture matching score indicates the degree to which the processor architecture meets the usage requirements; if the initial architecture's architecture matching score is less than a preset matching threshold, determining multiple preset architecture matching scores based on the cloud terminal's usage requirements and multiple preset architecture data; each preset architecture corresponds to one architecture matching score; and the preset architecture with the highest architecture matching score among the multiple preset architectures is selected as the target architecture.

[0018] Based on the aforementioned technical means, this application determines the architecture matching score of the initial architecture based on the usage requirements of the cloud terminal and the initial architecture data of the cloud terminal. The architecture matching score allows analysis of whether the initial architecture meets the usage requirements of the cloud terminal. If the architecture matching score of the initial architecture is less than a preset matching threshold, multiple preset architectures are determined based on the usage requirements of the cloud terminal and data from multiple preset architectures. The preset architecture with the highest architecture matching score is then selected as the target architecture. This precisely selects an architecture that meets the usage requirements of the cloud terminal.

[0019] Secondly, this application provides a processor architecture usage system, which includes: an architecture switching module for acquiring the usage requirements of a cloud terminal and multiple preset architecture data in a resource pool, wherein the preset architecture data is used to indicate the performance of the preset architecture, and the preset architecture is a processor architecture that the cloud terminal can use; the architecture switching module is also used to determine a target architecture based on the usage requirements of the cloud terminal and the multiple preset architecture data; the target architecture is an architecture that can meet the usage requirements of the cloud terminal; and a resource management module for determining the usage method of the target architecture, wherein the usage method includes: using the instruction set in the target architecture, and using the converted instruction set in the target architecture.

[0020] In one possible approach, the resource management module includes: a resource acquisition module and a resource processing module;

[0021] The resource acquisition module is used to acquire the target entropy value and the baseline entropy value of the target architecture. The target entropy value reflects the complexity of the instruction set in the target architecture, and the baseline entropy value indicates the complexity of the instruction set used as a baseline. The resource processing module is used to determine the instruction set score of the target architecture based on the target entropy value and the baseline entropy value. The instruction set score indicates the efficiency of converting the instruction set of the target architecture into an instruction set that matches the initial architecture, which is the processor architecture currently used by the cloud terminal. The resource processing module is also used to determine the usage method of the target architecture based on the instruction set score.

[0022] Thirdly, this application provides a processor architecture usage apparatus, which includes: an acquisition module for acquiring the usage requirements of a cloud terminal and multiple preset architecture data in a resource pool, wherein the preset architecture data is used to indicate the performance of the preset architecture, and the preset architecture is a processor architecture that the cloud terminal can use; a processing module for determining a target architecture based on the cloud terminal's usage requirements and the multiple preset architecture data; wherein the target architecture is an architecture that can meet the cloud terminal's usage requirements; and the processing module is further configured to determine the usage method of the target architecture based on the target architecture, wherein the usage method includes: using the instruction set in the target architecture, and using the converted instruction set in the target architecture.

[0023] In one possible approach, a processing module is specifically used to obtain the target entropy value and the baseline entropy value of the target architecture. The target entropy value reflects the complexity of the instruction set in the target architecture, and the baseline entropy value indicates the complexity of the instruction set used as a baseline. Based on the target entropy value and the baseline entropy value, an instruction set score for the target architecture is determined. The instruction set score indicates the efficiency of converting the instruction set of the target architecture into an instruction set that matches the initial architecture, which is the processor architecture currently used by the cloud terminal. Based on the instruction set score, the usage method of the target architecture is determined.

[0024] In one possible approach, the processing module is specifically configured to determine, when the instruction set score is greater than or equal to a first preset threshold, the usage method is to use the instruction set in the target architecture; and when the instruction set score is greater than or equal to a second preset threshold and less than the first preset threshold, the usage method is to use the converted instruction set in the target architecture; wherein the first preset threshold is greater than the second preset threshold.

[0025] In one possible approach, the processing module is specifically used to use the initial architecture if the instruction set score is less than a second preset threshold.

[0026] In one possible approach, the instruction set score of the target architecture satisfies a first preset formula:

[0027]

[0028] Where r represents the instruction set score of the target architecture, H represents the target entropy value of the instruction set of the target architecture, and H0 represents the baseline entropy value.

[0029] In one possible approach, the processing module is specifically used to determine the architecture matching score of the initial architecture based on the usage requirements of the cloud terminal and the initial architecture data of the cloud terminal. The initial architecture data is used to indicate the performance of the initial architecture, and the architecture matching score is used to indicate the degree to which the processor architecture meets the usage requirements. If the architecture matching score of the initial architecture is less than a preset matching threshold, the module determines the architecture matching scores of multiple preset architectures based on the usage requirements of the cloud terminal and multiple preset architecture data. Each preset architecture corresponds to one architecture matching score. The preset architecture with the highest architecture matching score among the multiple preset architectures is selected as the target architecture.

[0030] Fourthly, this application provides a computer storage medium that stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of using the processor architecture described in the first aspect and any possible implementation thereof.

[0031] Fifthly, this application provides a computer program product that, when run on a system using a processor architecture, causes the system to execute the methods described in the first aspect and any possible implementation thereof.

[0032] In a sixth aspect, this application provides a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to run computer programs or instructions to implement the methods described in the first aspect and any possible implementation thereof. Attached Figure Description

[0033] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0034] Figure 1 A flowchart illustrating a method of using a processor architecture provided in an embodiment of this application;

[0035] Figure 2 A flowchart illustrating another method of using a processor architecture provided in this application embodiment;

[0036] Figure 3 A flowchart illustrating another method of using a processor architecture provided in this application embodiment;

[0037] Figure 4 A structural diagram of a system using a processor architecture provided in an embodiment of this application;

[0038] Figure 5 This is a structural diagram of a processor architecture used in an embodiment of this application. Detailed Implementation

[0039] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0040] In the description of this application, it should be understood that the terms "upper," "lower," "left," "right," "front," "rear," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or relative positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and for simplification, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application. Unless otherwise specified, the above-mentioned orientational descriptions can be flexibly set in practical applications, provided that the relative positional relationships shown in the accompanying drawings are satisfied.

[0041] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0042] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," "linking," and "communication" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection. They can refer to a direct connection or an indirect connection through an intermediate medium, or a connection within two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0043] In embodiments of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, article, or apparatus that includes that element.

[0044] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0045] In the description of this specification, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.

[0046] In some embodiments, such as Figure 1 As shown, this application embodiment provides a method for using a processor architecture, specifically including: S101-S103.

[0047] S101. Obtain the usage requirements of the cloud terminal and multiple preset architecture data in the resource pool.

[0048] Among them, cloud terminals are virtual services based on cloud computing and virtualization technologies, virtual terminals that run operating systems and other components on remote cloud servers. Preset architecture data is used to indicate the performance of the preset architecture. The preset architecture refers to the processor architecture that the cloud terminal can use.

[0049] For example, the resource pool may include physical resources such as: Advanced RISC Machine (ARM), x86, Graphics Processing Unit (GPU), Field Programmable Gate Array (FPGA), and virtualization resources.

[0050] The preset architecture data may include the preset architecture type, the preset architecture's energy efficiency ratio, and the preset architecture's hardware availability.

[0051] For example, the preset architecture may include ARM, x86, RISC-V, MIPS and other architectures.

[0052] The usage requirements of cloud terminals include their computing needs and load conditions.

[0053] In one possible implementation, when a user initiates a request to use a cloud terminal, the current computing density, energy efficiency ratio, and hardware availability of the cloud terminal are determined as the cloud terminal's usage requirements.

[0054] S102. Based on the usage requirements of cloud terminals and multiple preset architecture data, determine the target architecture.

[0055] In one possible implementation, based on the usage requirements of the cloud terminal and the multiple preset architecture data, an architecture matching score is determined for each preset architecture; each preset architecture corresponds to one architecture matching score. The preset architecture with the highest architecture matching score among the multiple preset architectures is selected as the target architecture.

[0056] The initial architecture is the architecture currently used by the cloud terminal, while the target architecture is the architecture that can meet the usage requirements of the cloud terminal. If the initial architecture cannot meet the usage requirements of the cloud terminal, it will be converted into the target architecture that can meet the usage requirements of the cloud terminal.

[0057] For example, taking the initial architecture of the cloud terminal as ARM architecture and the target architecture as x86 architecture as an example, if the initial ARM architecture cannot meet the usage requirements of the cloud terminal, the initial ARM architecture of the cloud terminal will be converted to the x86 architecture in the resource pool so that the usage requirements of the cloud terminal can be met.

[0058] It should be noted that if the initial architecture matching score is greater than or equal to the preset matching threshold, it means that the initial architecture of the cloud terminal can meet the current usage requirements of the cloud terminal, and there is no need to convert the cloud terminal architecture; the initial architecture of the cloud terminal can be used.

[0059] S103. Based on the target architecture, determine how to use the target architecture.

[0060] The ways to use the target architecture include: using the instruction set in the target architecture terminal, and using the converted instruction set in the target architecture.

[0061] In one possible implementation, the target entropy value and the baseline entropy value of the target architecture are obtained. Based on the target entropy value and the baseline entropy value, the instruction set score of the target architecture is determined. Then, based on the instruction set score, the usage method of the target architecture is determined.

[0062] The target entropy value reflects the complexity of the instruction set in the target architecture. The baseline entropy value indicates the complexity of the instruction set used as a baseline. The instruction set score indicates the efficiency of converting the instruction set of the target architecture into an instruction set that matches the initial architecture, which is the processor architecture currently used by the cloud terminal.

[0063] As described in the above technical solution, this application comprehensively analyzes the current cloud terminal's usage requirements and preset architecture data by acquiring data on the cloud terminal's usage needs and multiple preset architectures in the resource pool. Based on the cloud terminal's usage requirements and the data on multiple preset architectures, a target architecture that can meet the cloud terminal's usage needs is determined. Based on the target architecture, the usage method of using the target architecture is determined. By selecting the target architecture, a suitable architecture usage method for the cloud terminal can be chosen, thereby improving the utilization efficiency of the cloud terminal's processor architecture.

[0064] In some embodiments, such as Figure 2 As shown, in the above method S102, the target architecture is determined based on the usage requirements of the cloud terminal and multiple preset architecture data, which can be specifically implemented through S201-S202.

[0065] S201. Based on the usage requirements of the cloud terminal and the initial architecture data of the cloud terminal, determine the architecture matching score of the initial architecture.

[0066] The architecture matching score is used to indicate the degree to which the processor architecture meets the needs of cloud terminal usage.

[0067] In one possible implementation, the computing density of the cloud terminal is determined based on its usage requirements. The energy efficiency ratio and hardware availability of the initial architecture are determined based on the initial architecture data of the cloud terminal. A weighted calculation is then performed on the computing density, energy efficiency ratio, and hardware availability to determine the architecture fit score of the initial architecture. The following is a detailed explanation of computing density, energy efficiency ratio, and hardware availability:

[0068] 1-1. Calculate the density.

[0069] Among them, computing density is used to indicate the computing resource requirements and load of cloud terminals.

[0070] For example, when the computing resource requirements and load of the cloud terminal are high, the computing density can be set to 0.8-1; when the cloud terminal mainly performs storage work and the computing resource requirements and load are low, the computing density can be set to 0.1-0.5; when the cloud terminal mainly performs ordinary work and the computing resource requirements and load are average, the computing density can be set to 0.5-0.8.

[0071] 1-2. Energy efficiency ratio.

[0072] The energy efficiency ratio is determined by the hardware configuration and application scenarios used in the processor architecture of the cloud terminal.

[0073] For example, when the cloud terminal's processor architecture uses energy-efficient hardware and mainly runs low-power tasks, the energy efficiency ratio is relatively high, and the energy efficiency ratio can be set to 0.8-1; when the cloud terminal's processor architecture uses high-power hardware and runs systems with extremely high performance requirements, the energy efficiency ratio is relatively low, and the energy efficiency ratio can be set to 0.1-0.5; when the cloud terminal's processor architecture uses other systems with average efficiency, the energy efficiency ratio can be set to 0.5-0.8.

[0074] 1-3. Hardware availability.

[0075] Hardware availability is used to qualitatively assess factors such as the type, brand, and age of the processor architecture hardware in cloud terminals.

[0076] For example, in the case of a cloud terminal's processor architecture using highly reliable hardware and having a good maintenance record, the hardware availability is relatively high, and the hardware availability can be set to 0.8-1; in the case of a cloud terminal's processor architecture using outdated, low-quality hardware and poorly maintained systems, the hardware availability is relatively low, and the hardware availability can be set to 0.1-0.5; in the case of a cloud terminal's processor architecture using other systems with average hardware availability, the hardware availability can be set to 0.5-0.8.

[0077] For example, the architecture fit score of the initial architecture satisfies the following formula:

[0078] S = 0.6 × a + 0.3 × b + 0.1 × c (Formula 1)

[0079] Where S represents the architecture matching score of the initial architecture, a represents the computing density of the cloud terminal, b represents the energy efficiency ratio of the initial architecture, and c represents the hardware availability of the initial architecture.

[0080] S202. If the architecture matching score of the initial architecture is less than the preset matching threshold, the target architecture is determined based on the usage requirements of the cloud terminal and multiple preset architecture data.

[0081] In one possible implementation, if the initial architecture matching score is less than a preset matching threshold, based on the cloud terminal's usage requirements and multiple preset architecture data, an architecture matching score is determined for each preset processor architecture. The preset architecture with the highest matching score among all preset processor architectures is then selected as the target architecture.

[0082] For example, taking a preset matching threshold of 0.5 as an example, if the initial architecture's matching score is less than 0.5, it means that the initial architecture cannot meet the cloud terminal's usage requirements. Based on the cloud terminal's usage requirements and data from multiple preset architectures, a matching score is calculated for each preset architecture. The architecture with the highest matching score among the multiple preset architectures is selected as the target architecture.

[0083] It should be noted that in the above method, if the architecture matching score of the initial architecture is greater than or equal to the preset matching threshold, it indicates that the initial architecture can meet the current cloud terminal's usage requirements and no architecture conversion is needed.

[0084] As described in the above technical solution, this application determines the architecture matching score of the initial architecture based on the usage requirements of the cloud terminal and the initial architecture data of the cloud terminal. The architecture matching score allows analysis of whether the initial architecture meets the usage requirements of the cloud terminal. If the architecture matching score of the initial architecture is less than a preset matching threshold, multiple preset architectures are determined based on the usage requirements of the cloud terminal and data from multiple preset architectures. The preset architecture with the highest architecture matching score is then selected as the target architecture. This accurately selects the architecture that meets the usage requirements of the cloud terminal.

[0085] In some embodiments, such as Figure 3 As shown, in the above method S103, the usage method of the target architecture is determined based on the target architecture, which can be specifically implemented through S301-S303.

[0086] S301. Obtain the target entropy value and baseline entropy value of the target architecture.

[0087] The target entropy value reflects the complexity of the instruction set in the target architecture. The baseline entropy value indicates the complexity of the instruction set used as a baseline.

[0088] In one possible implementation, the target entropy value of the target architecture is determined based on the target architecture.

[0089] For example, the target entropy value of the target architecture satisfies the following formula two:

[0090]

[0091] Where H represents the target entropy value of the target architecture, p i The value is used to represent the probability of the i-th instruction type appearing in the instruction set of the target architecture, and n is used to represent the number of instruction types in the instruction set of the target architecture.

[0092] In another possible implementation, a known and simple instruction set is selected as the benchmark, and the benchmark entropy value is determined using Formula 2 above.

[0093] S302. Based on the target entropy value and the baseline entropy value, determine the instruction set score of the target architecture.

[0094] The instruction set score is used to indicate the efficiency of converting the instruction set of the target architecture into an instruction set that matches the initial architecture.

[0095] In one possible implementation, the instruction set score of the target architecture is determined based on the target entropy value and the baseline entropy value of the target architecture.

[0096] For example, the instruction set score satisfies the following formula three:

[0097]

[0098] Where r represents the instruction set score of the target architecture, H represents the target entropy value of the target architecture, and H0 represents the baseline entropy value.

[0099] S303. Based on instruction set scoring, determine the usage method of the target architecture.

[0100] In one possible implementation, the instruction set score based on the target architecture is compared with an instruction set score threshold to determine the usage method of the target architecture.

[0101] If the instruction set score is greater than or equal to the first preset threshold, the usage mode of the target architecture is determined to be the use of the instruction set in the target architecture.

[0102] If the instruction set score is greater than or equal to the second preset threshold and less than the first preset threshold, the usage method is determined to be the use of the converted instruction set in the target architecture.

[0103] The first preset threshold is greater than the second preset threshold.

[0104] For example, with a first preset threshold of 0.9 and a second preset threshold of 0.5, when the instruction set score is greater than or equal to 0.9 and less than 1, it indicates that the complexity of the target architecture's instruction set is much lower than that of the baseline instruction set. Converting the target architecture's instruction set into one capable of handling cloud terminal tasks is readable and efficient, and the conversion significantly improves the performance of the cloud terminal. Therefore, the target architecture can be used by simply using its instruction set without needing to convert it.

[0105] If the instruction set score is greater than or equal to 0.5 and less than 0.9, it indicates that the complexity of the target architecture's instruction set is within the ideal range. However, resources from the resource pool need to be mobilized to transform the target architecture's instruction set so that it can handle the current cloud terminal's task requirements. In this case, the target architecture will be used by employing the transformed instruction set.

[0106] It should be noted that the instruction set score ranges from [0,1] and is used to indicate the efficiency of converting the instruction set of the target architecture to an instruction set that matches the initial architecture. When the instruction set score is 1, it indicates that the conversion efficiency is extremely high, no conversion of the instruction set of the target architecture is required, and the instruction set of the target architecture can be used directly.

[0107] As described in the above technical solution, this application obtains the target entropy value and the baseline entropy value of the target architecture. Using these values, it determines an instruction set score that indicates the efficiency of converting the instruction set of the target architecture into an instruction set matching the initial architecture. Based on the instruction set score of the target architecture, it determines the usage method of the target architecture, enabling the selection of different architecture usage methods according to different architectures. This improves the compatibility between the target architecture and the cloud terminal, meeting the usage requirements of the cloud terminal.

[0108] In some embodiments, the initial architecture is used when the instruction set score is less than a second preset threshold.

[0109] For example, if the instruction set score is less than 0.5, it indicates that the difficulty and cost of converting the instruction set of the target architecture is high, and the performance improvement brought by the instruction set conversion cannot compensate for the cost of the conversion process. In this case, the instruction set of the target architecture will not be converted, and the initial architecture will continue to be used.

[0110] As can be seen from the above technical solution, this application uses the initial architecture when the instruction set score is less than the second preset threshold. If the instruction set score of the target architecture does not meet the preset requirements, using the target architecture will lead to reduced efficiency or increased cost; therefore, it is necessary to continue using the initial architecture.

[0111] In some embodiments, such as Figure 4 As shown, this application provides a system for using a processor architecture, which includes an architecture switching module 401 and a resource management module 402.

[0112] Among them, the architecture switching module 401 is used to obtain the usage requirements of the cloud terminal and multiple preset architecture data in the resource pool. The preset architecture data is used to indicate the performance of the preset architecture, and the preset architecture is used to represent the processor architecture that the cloud terminal can use.

[0113] The architecture switching module 401 is also used to determine the target architecture based on the usage requirements of the cloud terminal and multiple preset architecture data. The target architecture is an architecture that can meet the usage requirements of the cloud terminal.

[0114] Resource management module 402 is used to determine the usage method of the target architecture, including: using the instruction set in the target architecture or using the converted instruction set in the target architecture.

[0115] In some embodiments, the resource management module 402 further includes a resource acquisition module 403 and a resource processing module 404.

[0116] The resource acquisition module 403 is used to acquire the target entropy value and the baseline entropy value of the target architecture. The target entropy value is used to reflect the complexity of the instruction set in the target architecture, and the baseline entropy value is used to indicate the complexity of the instruction set used as a baseline.

[0117] Resource processing module 404 is used to determine the instruction set score of the target architecture based on the target entropy value and the baseline entropy value. The instruction set score is used to indicate the efficiency of converting the instruction set of the target architecture into an instruction set that matches the initial architecture, which is the processor architecture currently used by the cloud terminal.

[0118] Resource processing module 404 is also used to determine the usage method of the target architecture based on instruction set scoring.

[0119] The foregoing primarily describes the solutions provided by the embodiments of this application from a methodological perspective. It is understood that the apparatus for using the target architecture, in order to achieve the aforementioned functions, includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the method steps for using the target architecture described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0120] This application also provides an apparatus for using a target architecture. This apparatus can be a server, a CPU within the server, a module within the server used for using the target architecture, or a client within the server used for using the target architecture.

[0121] This application embodiment can divide the target architecture's device into functional modules or functional units according to the above method examples. For example, each function can be divided into its own functional modules or functional units, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module or functional unit. The module or unit division in this application embodiment is illustrative and represents only one logical functional division; in actual implementation, other division methods may be used.

[0122] When dividing each function into modules according to its corresponding function. Figure 5 A structural diagram of a processor architecture used in this application is provided, such as... Figure 5 As shown, the processor architecture can be used to execute... Figure 1 , Figure 2 , Figure 3 The method of using the target architecture shown. The device 50 for using this processor architecture includes: an acquisition module 501 and a processing module 502.

[0123] The acquisition module 501 is used to acquire the usage requirements of the cloud terminal and multiple preset architecture data in the resource pool. The preset architecture data is used to indicate the performance of the preset architecture, and the preset architecture is the processor architecture that the cloud terminal can use. The processing module 502 is used to determine the target architecture based on the usage requirements of the cloud terminal and the multiple preset architecture data. The target architecture is the architecture that can meet the usage requirements of the cloud terminal. The processing module 502 is also used to determine the usage method of the target architecture based on the target architecture. The usage method includes: using the instruction set in the target architecture and using the converted instruction set in the target architecture.

[0124] In one possible approach, the processing module 502 is specifically used to obtain the target entropy value and the baseline entropy value of the target architecture. The target entropy value is used to reflect the complexity of the instruction set in the target architecture; the baseline entropy value is used to indicate the complexity of the instruction set used as a baseline; based on the target entropy value and the baseline entropy value, the instruction set score of the target architecture is determined. The instruction set score is used to indicate the efficiency of converting the instruction set of the target architecture into an instruction set that matches the initial architecture, where the initial architecture is the processor architecture currently used by the cloud terminal; based on the instruction set score, the usage method of the target architecture is determined.

[0125] In one possible approach, the processing module 502 is specifically configured to determine, when the instruction set score is greater than or equal to a first preset threshold, the usage method is to use the instruction set in the target architecture; and when the instruction set score is greater than or equal to a second preset threshold and less than the first preset threshold, the usage method is to use the converted instruction set in the target architecture; wherein the first preset threshold is greater than the second preset threshold.

[0126] In one possible approach, the processing module is specifically used to use the initial architecture if the instruction set score is less than a second preset threshold.

[0127] In one possible approach, the instruction set score of the target architecture satisfies a first preset formula:

[0128]

[0129] Where r represents the instruction set score of the target architecture, H represents the target entropy value of the instruction set of the target architecture, and H0 represents the baseline entropy value.

[0130] In one possible approach, the processing module 502 is specifically used to determine the architecture matching score of the initial architecture based on the usage requirements of the cloud terminal and the initial architecture data of the cloud terminal. The initial architecture data is used to indicate the performance of the initial architecture, and the architecture matching score is used to indicate the degree to which the processor architecture meets the usage requirements. If the architecture matching score of the initial architecture is less than a preset matching threshold, the processing module determines the architecture matching scores of multiple preset architectures based on the usage requirements of the cloud terminal and multiple preset architecture data. Each preset architecture corresponds to one architecture matching score. The preset architecture with the highest architecture matching score among the multiple preset architectures is selected as the target architecture.

[0131] This disclosure also provides a computer-readable storage medium storing instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the drone target detection method provided in the embodiments of this disclosure described above.

[0132] This disclosure also provides a computer program product containing instructions that, when run on an electronic device, cause the electronic device to execute the unmanned aerial vehicle target detection method provided in the above-described embodiments of this disclosure.

[0133] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: electrical connections having one or more wires; portable computer disks; hard disks; random access memory (RAM); read-only memory (ROM); erasable programmable read-only memory (EPROM); registers; hard disks; optical fibers; portable compact disc read-only memory (CD-ROM); optical storage devices; magnetic storage devices; or any suitable combination thereof; or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in an application-specific integrated circuit (ASIC). In the embodiments of this application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0134] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0135] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0136] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the classified units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0137] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0138] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, essentially, or the part that contributes to the prior art, or a complete or partial classification of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0139] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method of using a processor architecture, characterized in that, The method includes: The system obtains the usage requirements of the cloud terminal and multiple preset architecture data from the resource pool. The preset architecture data is used to indicate the performance of the preset architecture, and the preset architecture is the processor architecture that the cloud terminal can use. Based on the usage requirements of the cloud terminal and the multiple preset architecture data, a target architecture is determined; the target architecture is an architecture that can meet the usage requirements of the cloud terminal. Based on the target architecture, the usage method of the target architecture is determined, including: using the instruction set in the target architecture and using the converted instruction set in the target architecture.

2. The method according to claim 1, characterized in that, The step of determining the usage method of the target architecture based on the target architecture includes: Obtain the target entropy value and the baseline entropy value of the target architecture. The target entropy value is used to reflect the complexity of the instruction set in the target architecture. The baseline entropy value is used to indicate the complexity of the instruction set used as a baseline. Based on the target entropy value and the baseline entropy value, the instruction set score of the target architecture is determined. The instruction set score is used to indicate the efficiency of converting the instruction set of the target architecture into an instruction set that matches the initial architecture, where the initial architecture is the processor architecture currently used by the cloud terminal. Based on the instruction set score, the usage method of the target architecture is determined.

3. The method according to claim 2, characterized in that, The determination of the usage method based on the instruction set scoring, using the target architecture, includes: If the instruction set score is greater than or equal to a first preset threshold, the usage method is determined to be using the instruction set in the target architecture; If the instruction set score is greater than or equal to the second preset threshold and less than the first preset threshold, the usage method is determined to be using the converted instruction set in the target architecture; the first preset threshold is greater than the second preset threshold.

4. The method according to claim 3, characterized in that, The method further includes: If the instruction set score is less than the second preset threshold, the initial architecture is used.

5. The method according to claim 2, characterized in that, The instruction set score of the target architecture satisfies the first preset formula: Where r represents the instruction set score of the target architecture, H represents the target entropy value of the instruction set of the target architecture, and H0 represents the baseline entropy value.

6. The method according to any one of claims 1-5, characterized in that, The process of determining the target architecture based on the usage requirements of the cloud terminal and the multiple preset architecture data includes: Based on the usage requirements of the cloud terminal and the initial architecture data of the cloud terminal, an architecture matching score for the initial architecture is determined. The initial architecture data is used to indicate the performance of the initial architecture, and the architecture matching score is used to indicate the degree to which the processor architecture meets the usage requirements. If the architecture matching score of the initial architecture is less than a preset matching threshold, based on the usage requirements of the cloud terminal and the multiple preset architecture data, multiple preset architectures are determined; each preset architecture corresponds to one architecture matching score. The preset architecture with the highest architecture matching score among the multiple preset architectures is taken as the target architecture.

7. A system using a processor architecture, characterized in that, The system includes: The architecture switching module is used to obtain the usage requirements of the cloud terminal and multiple preset architecture data in the resource pool. The preset architecture data is used to indicate the performance of the preset architecture, and the preset architecture is the processor architecture that the cloud terminal can use. The architecture switching module is also used to determine a target architecture based on the usage requirements of the cloud terminal and the multiple preset architecture data; the target architecture is an architecture that can meet the usage requirements of the cloud terminal. The resource management module is used to determine the usage method of the target architecture, which includes: using the instruction set in the target architecture and using the converted instruction set in the target architecture.

8. The system using the processor architecture according to claim 7, characterized in that, The resource management module includes: a resource acquisition module and a resource processing module; The resource acquisition module is used to acquire the target entropy value and the baseline entropy value of the target architecture. The target entropy value is used to reflect the complexity of the instruction set in the target architecture; the baseline entropy value is used to indicate the complexity of the instruction set used as a baseline. The resource processing module is used to determine the instruction set score of the target architecture based on the target entropy value and the baseline entropy value. The instruction set score is used to indicate the efficiency of converting the instruction set of the target architecture into an instruction set that matches the initial architecture, where the initial architecture is the processor architecture currently used by the cloud terminal. The resource processing module is also used to determine the usage method of the target architecture based on the instruction set score.

9. A device for using a processor architecture, characterized in that, The apparatus for using the processor architecture includes: The acquisition module is used to acquire the usage requirements of the cloud terminal and multiple preset architecture data in the resource pool. The preset architecture data is used to indicate the performance of the preset architecture, and the preset architecture is the processor architecture that the cloud terminal can use. The processing module is used to determine the target architecture based on the usage requirements of the cloud terminal and the multiple preset architecture data; the target architecture is an architecture that can meet the usage requirements of the cloud terminal. The processing module is further configured to determine, based on the target architecture, how to use the target architecture, including: using the instruction set in the target architecture, or using the converted instruction set in the target architecture.

10. A computer storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of using the processor architecture as described in any one of claims 1-6.

11. A computer program product, characterized in that, When the computer program product is run on a system using a processor architecture, the system using the processor architecture performs the method as described in any one of claims 1-6.