WO2020113562A1 - Computing power control method, apparatus and device, and storage medium - Google Patents

Computing power control method, apparatus and device, and storage medium Download PDF

Info

Publication number
WO2020113562A1
WO2020113562A1 PCT/CN2018/119806 CN2018119806W WO2020113562A1 WO 2020113562 A1 WO2020113562 A1 WO 2020113562A1 CN 2018119806 W CN2018119806 W CN 2018119806W WO 2020113562 A1 WO2020113562 A1 WO 2020113562A1
Authority
WO
WIPO (PCT)
Prior art keywords
computing power
frequency sweep
power value
target chip
chip
Prior art date
Application number
PCT/CN2018/119806
Other languages
French (fr)
Chinese (zh)
Inventor
胡强
杨鑫
王虓
Original Assignee
北京比特大陆科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京比特大陆科技有限公司 filed Critical 北京比特大陆科技有限公司
Priority to PCT/CN2018/119806 priority Critical patent/WO2020113562A1/en
Priority to CN201880098338.1A priority patent/CN112912743B/en
Publication of WO2020113562A1 publication Critical patent/WO2020113562A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the technical field of computing equipment, for example, to a computing power control method, device, equipment, and storage medium.
  • Computing equipment plays an important role in the application of blockchain. With the improvement of the computing power of the entire network, various computing devices with low power consumption and high computing power are emerging one after another. Computing power is also an important indicator that reflects the capabilities and value of computing equipment.
  • Embodiments of the present disclosure provide a computing power control method, device, device, and storage medium, which are used to control the computing power of a chip in a computing device, so as to solve the problem of wasting computing power of a computing device in the prior art.
  • a first aspect of an embodiment of the present disclosure provides a method for controlling computing power, including:
  • control the target chip According to the frequency sweep command issued by the control host, control the target chip to perform a frequency sweep operation to determine the first computing power value of the target chip;
  • the first computing power value is configured to the target chip.
  • a second aspect of an embodiment of the present disclosure provides a computing power control device, including:
  • the control module is used to control the target chip to perform the frequency scan operation according to the frequency sweep command issued by the control host to determine the first computing power value of the target chip;
  • the configuration module is configured to configure the first computing power value to the target chip.
  • a third aspect of the embodiments of the present disclosure provides a computing device including the computing power control device provided in the second aspect above.
  • a fourth aspect of the embodiments of the present disclosure provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are configured to execute the computing power control method provided in the first aspect above.
  • a fifth aspect of an embodiment of the present disclosure provides a computer program product.
  • the computer program product includes a computer program stored on a computer-readable storage medium.
  • the computer program includes program instructions. When the program instructions are executed by a computer , The computer is caused to execute the computing power control method provided in the first aspect above.
  • a sixth aspect of the embodiments of the present disclosure provides an electronic device, including:
  • At least one processor At least one processor
  • a memory communicatively connected to the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, causes the at least one processor to execute the computing power control method provided in the first aspect above .
  • FIG. 1 is a schematic flowchart of a method for controlling computing power of a map provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a method for controlling computing power provided by another embodiment of the present application.
  • FIG. 3 is a schematic diagram of a working process of a whole machine including frequency sweep provided by an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of a computing power control device according to an embodiment of the application.
  • FIG. 5 is a schematic structural diagram of a computing power control device according to another embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • EFUSE is a one-time programmable memory in the chip.
  • Embodiment 1 of the present disclosure provides a computing power control method for controlling the computing power of a chip.
  • the execution subject of the computing power control method is a computing power control device, and the computing power control device may be provided in a computing device.
  • FIG. 1 it is a schematic flowchart of a method for controlling computing power provided by this embodiment. The method includes:
  • Step 101 According to a frequency sweep command issued by the control host, control the target chip to perform frequency sweep operation to determine the first computing power value of the target chip.
  • Step 102 Configure the first computing power value to the target chip.
  • the whole working process of the computing device or the function verification process of the whole device it is necessary to initialize first, such as initializing basic devices such as CPU, DDR, UART, etc.
  • first such as initializing basic devices such as CPU, DDR, UART, etc.
  • you can choose from the EFUSE of each chip on the computing device Read the information to determine whether there is a static computing power value stored. If no static computing power value is stored, configure the chip with the minimum operable computing power value, first make the chip operate with the minimum operable computing power, and initialize the computing algorithm
  • the arithmetic algorithm may be a currency algorithm, and initializing the currency algorithm refers to determining the corresponding currency algorithm according to different currencies.
  • set the monitoring interface to monitor the commands sent by the control host.
  • the commands issued by the control host can include frequency sweep commands and calculation task commands.
  • the calculation task commands refer to the tasks that need to be decrypted by the control host. The answer is returned to the control panel.
  • multiple chips are provided on the computing power board.
  • the target chip is controlled to perform a frequency sweep operation to determine the first computing power value of the target chip.
  • the frequency sweep command may be a command word conforming to a certain protocol, and the frequency sweep command may include information such as frequency sweep identifier, frequency sweep type, frequency sweep range, and so on.
  • the sweep flag bit 3 in the command indicates the sweep command; the sweep type includes static and dynamic, such as 0 for static and 1 for dynamic; the sweep range is 700-500H/S (which is the calculation value).
  • the force value refers to how many times the chip can calculate the hash value in 1 second.
  • the computing power configuration of the chip can be controlled by controlling the operating frequency of the chip or configured in other ways, for example, the operating frequency of the chip has a corresponding relationship with its computing power. Configure the chip's computing power by setting the chip's operating frequency. Specifically, after determining the computing power value of the chip, how to configure the chip to calculate the computing power value as the prior art is not limited in this embodiment.
  • the frequency sweep command issued by the control host may be sent once every time the computing device is powered on, or may be sent once when the chip fails to work, to re-determine the computing power value of the chip.
  • Frequency sweep operation refers to that the chip performs encryption operations at different frequencies according to the frequency sweep range included in the frequency sweep command, and compares it with the preset answer to determine the maximum computing power value of the chip from the frequency sweep range, or determine The computing power value of the chip can work and so on.
  • the frequency sweep range is 700-500H/s.
  • the chip starts the encryption operation from 700 and compares it with the preset answer. If it is inconsistent, the encryption operation is performed at 650H/s again, compared with the preset answer. If it is consistent with the preset answer, it proves that the chip can work under 650H/s, and it can be considered that the maximum computing power value of the chip is 650H/s. By analogy, try from 700 to the next until you find the computing power value of the chip as the maximum computing power value of the chip.
  • the number of encryption operations to be tried within the frequency sweep range can be set according to actual needs, for example, according to a certain equidistance sequence, 700-650-600-550-500, or it can be determined according to other rules. This embodiment does not Be limited.
  • the frequency sweep range can also be scanned, and one of the computing power values of the target chip can be selected as the first computing power value of the target chip, or according to a certain calculation, such as an average value, according to the target chip energy
  • the working computing power value determines the first computing power value of the target chip.
  • the specific mode is not limited in this embodiment.
  • the first computing power value of the target chip After the first computing power value of the target chip is determined, the first computing power value is allocated to the target chip, so that the target chip can perform calculation with the computing power of the first computing power value.
  • the method of configuring the first computing power value to the target chip, the validity of the first computing power value is only in the work process after this power-on until the next frequency sweep command is issued before the target chip is reconfigured the computing power value Effective, the chip will be invalid after power off.
  • you also need to configure the minimum working hashrate or re-scan the frequency to determine the hashrate of the target chip (which can be called the second hashrate).
  • the computing power control method determines the first computing power value of the target chip through the scanning operation of the chip, and configures the chip to determine the first computing power value of the target chip, which can improve the chip's computing power The actual computing power in the device, thereby increasing the computing power of the computing device, and increasing the flexibility of computing power configuration of the computing device.
  • Embodiment 2 of the present disclosure further supplements the method for controlling the computing power provided by the foregoing embodiment.
  • FIG. 2 it is a schematic flowchart of a method for controlling computing power provided by this embodiment.
  • the target chip is controlled to perform a frequency sweep operation to determine the first computing power value of the target chip Previously, the method also included:
  • Step 201 Monitor whether the control host issues a frequency sweep command through a monitoring interface.
  • the frequency sweep command includes a frequency sweep identifier, a frequency sweep type, and a frequency sweep range.
  • the frequency sweep command issued by the control host may be sent once every time the computing device is powered on, or it may be sent once after a chip fails to work, to re-determine the computing power value of the chip.
  • the monitoring interface can be set to monitor the commands sent by the control host.
  • the commands issued by the control host can include frequency sweep commands and calculation task commands.
  • the calculation task commands refer to the tasks issued by the control host that need to be decrypted. The answer is returned to the control panel. Among them, multiple chips are provided on the computing power board.
  • the target chip is controlled to perform a frequency sweep operation to determine the first computing power value of the target chip.
  • the frequency sweep command may be a command word conforming to a certain protocol, and the frequency sweep command may include information such as frequency sweep identifier, frequency sweep type, frequency sweep range, and so on.
  • the sweep flag bit 3 in the command indicates the sweep command; the sweep type includes static and dynamic, such as 0 for static and 1 for dynamic; the sweep frequency range is 700-500H/S (which is the computing power value).
  • the force value refers to how many times the chip can calculate the hash value in 1 second.
  • the target chip is controlled to perform a frequency sweep operation to determine the first computing power of the target chip After the value, the method also includes:
  • Step 2021 Determine the frequency sweep type according to the frequency sweep command.
  • Step 2022 if the frequency sweep type is static frequency sweep, the first computing power value is written into the memory EFUSE of the target chip.
  • the frequency sweep command may include information such as frequency sweep identifier, frequency sweep type, frequency sweep range, and so on.
  • the sweep flag bit 3 in the command indicates the sweep command; the sweep types include static and dynamic, such as 0 for static and 1 for dynamic; the sweep range is 700-500H/S.
  • the computing power value is stored in EFUSE. After the next power-on, the static computing power value can be read from EFUSE to configure the target chip so that the chip operates according to the computing power of the static computing power value.
  • writing the first computing power value into EFUSE can implement the target chip to perform subsequent operations according to the maximum computing power, thereby improving the computing device’s Computing power.
  • the frequency sweep type is dynamic frequency sweep
  • the frequency sweep operation can be performed again to re-determine the calculation value of the target chip and configure the target chip.
  • the target chip is controlled to perform a frequency sweep operation to determine the first computing power value of the target chip , which can include:
  • Step 2031 Control the target chip to perform encryption operations at different frequencies according to the frequency sweep range included in the frequency sweep command to obtain an operation result.
  • Step 2032 Acquire the first computing power value of the target chip according to each calculation result and the corresponding preset result.
  • the target chip may be controlled to perform encryption operations at different frequencies according to the frequency sweep range included in the frequency sweep command to obtain the operation result, and according to each The calculation result and the corresponding preset result obtain the first computing power value of the target chip.
  • Frequency sweep operation refers to that the chip performs encryption operations at different frequencies according to the frequency sweep range included in the frequency sweep command, and compares it with the preset answer to determine the maximum computing power value of the chip from the frequency sweep range, or determine The computing power value of the chip can work and so on.
  • the frequency sweep range is 700-500H/s.
  • the chip starts the encryption operation from 700 and compares it with the preset answer. If it is inconsistent, the encryption operation is performed at 650H/s again, compared with the preset answer. If it is consistent with the preset answer, it proves that the chip can work under 650H/s, and the maximum computing power value of the chip can be regarded as 650H/s. By analogy, try from 700 to the next until you find the computing power value of the chip as the maximum computing power value of the chip.
  • the number of encryption operations to be tried within the frequency sweep range can be set according to actual needs, for example, according to a certain equidistance sequence, 700-650-600-550-500, or it can be determined according to other rules. This embodiment does not Be limited.
  • the frequency sweep range can also be scanned, and one of the computing power values of the target chip can be selected as the first computing power value of the target chip, or according to a certain calculation, such as an average value, according to the target chip energy
  • the working computing power value determines the first computing power value of the target chip.
  • the specific mode is not limited in this embodiment.
  • the first computing power value of the target chip After the first computing power value of the target chip is determined, the first computing power value is allocated to the target chip, so that the target chip can perform calculation with the computing power of the first computing power value.
  • obtaining the first computing power value of the target chip according to each of the calculation results and the corresponding preset results includes:
  • the maximum computing power value of the target chip is obtained as the first computing power value.
  • the frequency sweep range is 700-500H/s.
  • the chip starts the encryption operation from 700 and compares it with the preset answer. If it is inconsistent, the encryption operation is then performed at 650H/s and compared with the preset answer. If it is consistent with the preset answer, it proves that the chip can work under 650H/s, and it can be considered that the maximum computing power value of the chip is 650H/s. It is no longer necessary to perform the subsequent frequency sweep operation, and the maximum computing power value of the target chip is 650H/s as the first computing power value, and it is configured to the target chip.
  • the method may further include:
  • Step 204 Determine whether a static computing power value is stored in the EFUSE of the target chip
  • step 205 if yes, the static computing power value is allocated to the target chip, so that the target chip performs computing work with the computing power corresponding to the static computing power value.
  • the static computing power value of the target chip was directly configured to the target chip.
  • the static computing power value can also be set according to actual needs.
  • the computing device has a display screen, and the display screen shows the computing power value of each chip. The user can interact according to his actual situation. The interface input sets the computing power value of each chip.
  • the static computing power value can also be written into EFUSE when the whole machine is produced.
  • the computing power of the computing device can be maximized, and the cost performance of the computing device can be improved.
  • a machine with a previous computing power value of 1800H/s is integrated with 6 theoretical computing power values of 400H/s chips, because each chip is set with a minimum working computing power value of 300H /s, resulting in the fixed computing power of 1800H/s.
  • FIG. 3 it is a schematic diagram of a whole machine workflow including frequency sweep provided by this embodiment.
  • the whole machine workflow is as follows:
  • Step 1 Power on the whole machine.
  • Step 2 Initialize basic devices such as CPU, DDR, and UART.
  • Step 3 Read EFUSE to determine whether there is a static computing power value. If there is a step 4, go to step 5.
  • Step 4. If it exists, obtain the static computing power value and configure it to the chip.
  • Step 5 If it does not exist, set the minimum working computing power value and configure it to the chip.
  • Step 6 Initialize the currency algorithm and set the listening interface.
  • Step 7. Monitor the frequency sweep command issued by the control host.
  • Step 8. Determine whether the frequency sweep command is received. If yes, go to step 9. If no, go to step 12.
  • the chip After receiving the frequency sweep command, the chip needs to be controlled to perform a frequency sweep operation according to the frequency sweep command to determine the first computing power value of the chip.
  • Step 9 Determine the type of frequency sweep. It is step 10 for dynamic frequency conversion and step 11 for static frequency conversion.
  • Step 10 Configure the first computing power value determined by the frequency sweep to the chip, and it will be invalid after power off.
  • Step 11 Write the first computing power value determined by the frequency sweep to EFUSE and configure it to the chip.
  • Step 12. Calculate the currency algorithm.
  • the arithmetic currency algorithm calculates the monetary algorithm according to the hashrate of the first hashrate value determined by the frequency sweep.
  • the method for controlling the computing power provided by this embodiment determines the first computing power value of the target chip through the scanning operation of the chip, and configures the chip to determine the first computing power value of the target chip, which can improve the chip in the computing device Actual computing power in order to increase the computing power of the computing device and increase the flexibility of computing power configuration of the computing device.
  • Embodiment 3 of the present disclosure also provides a computing power control device, which is used to execute the computing power control method provided in Embodiment 1 above.
  • the computing power control device 30 includes a control module 31 and a configuration module 32.
  • the control module 31 is used to control the target chip to perform a frequency scan operation according to the frequency sweep command issued by the control host to determine the first computing power value of the target chip; the configuration module 32 is used to convert the first computing power value Configure to the target chip.
  • the first computing power value of the target chip is determined through the scanning operation of the chip, and the chip is configured to determine the first computing power value of the target chip, which can improve the chip in computing The actual computing power in the device, thereby increasing the computing power of the computing device, and increasing the flexibility of computing power configuration of the computing device.
  • Embodiment 4 of the present disclosure further supplements the apparatus provided in Embodiment 3 to perform the method provided in Embodiment 2 above.
  • FIG. 5 it is a schematic structural diagram of a computing power control device provided in this embodiment.
  • the device further includes: a listening module 33.
  • the monitoring module 33 is used to monitor whether the control host issues a frequency sweep command through the monitoring interface, and the frequency sweep command includes a frequency sweep identifier, a frequency sweep type and a frequency sweep range.
  • the device further includes: a processing module 34.
  • the processing module 34 is used to determine the frequency sweep type according to the frequency sweep command; the configuration module 32 is also used to write the first computing power value to the target chip if the frequency sweep type is a static frequency sweep Memory EFUSE.
  • the first computing power value is not written into the EFUSE of the target chip.
  • control module includes: a first control submodule and a second control submodule.
  • the first control sub-module is used to control the target chip to perform encryption operation at different frequencies according to the frequency sweep range included in the frequency sweep command to obtain the operation result;
  • the second control sub-module is used to The calculation result and the corresponding preset result obtain the first computing power value of the target chip.
  • the second control sub-module is specifically used for:
  • the maximum computing power value of the target chip is obtained as the first computing power value.
  • the device further includes: a judgment module 35.
  • the judgment module is used to judge whether a static computing power value is stored in the EFUSE of the target chip; the configuration module is also used to configure the static computing power value to the target chip if yes, so that The target chip performs calculation work with the calculation power corresponding to the static calculation power value.
  • the first computing power value of the target chip is determined through the scanning operation of the chip, and the chip is configured to determine the first computing power value of the target chip, which can improve the chip in computing The actual computing power in the device, thereby increasing the computing power of the computing device, and increasing the flexibility of computing power configuration of the computing device.
  • An embodiment of the present disclosure also provides a computing device, including the computing power control device provided by any of the foregoing embodiments.
  • the first computing power value of the target chip is determined through the scanning operation of the chip, and the chip is configured to determine the first computing power value of the target chip, which can improve the chip's computing power in the computing device Actual computing power, thereby increasing the computing power of the computing device, and increasing the flexibility of computing power configuration of the computing device.
  • An embodiment of the present disclosure also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are configured to execute the computing power control method provided by any of the foregoing embodiments.
  • the first computing power value of the target chip is determined through the scanning operation of the chip, and the chip is configured to determine the first computing power value of the target chip, which can improve the chip's computing power.
  • the actual computing power in the device thereby increasing the computing power of the computing device, and increasing the flexibility of computing power configuration of the computing device.
  • An embodiment of the present disclosure also provides a computer program product.
  • the computer program product includes a computer program stored on a computer-readable storage medium.
  • the computer program includes program instructions. When the program instructions are executed by a computer, the The computer executes the computing power control method provided by any of the above embodiments.
  • the aforementioned computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
  • An embodiment of the present disclosure also provides an electronic device. As shown in FIG. 6, it is a schematic structural diagram of the electronic device provided by this embodiment.
  • the electronic device 50 includes:
  • At least one processor (processor) 51 one processor 51 is taken as an example in FIG. 6; and the memory (memory) 52 may further include a communication interface (Interface) and a bus. Among them, the processor, communication interface, and memory can complete communication with each other through the bus. The communication interface can be used for information transmission.
  • the processor may call logical instructions in the memory to execute the control method of the computing power in the above embodiment.
  • logic instructions in the aforementioned memory can be implemented in the form of software functional units and sold or used as independent products, and can be stored in a computer-readable storage medium.
  • the memory as a computer-readable storage medium can be used to store software programs and computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure.
  • the processor executes functional applications and data processing by running software programs, instructions, and modules stored in the memory, that is, implementing the computing power control method in the foregoing method embodiments.
  • the memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system and application programs required by at least one function; the storage data area may store data created according to the use of a terminal device, and the like.
  • the memory may include a high-speed random access memory, and may also include a non-volatile memory.
  • the technical solutions of the embodiments of the present disclosure may be embodied in the form of software products, which are stored in a storage medium and include one or more instructions to make a computer device (which may be a personal computer, server, or network) Equipment, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure.
  • the aforementioned storage medium may be a non-transitory storage medium, including: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
  • a medium that can store program codes may also be a transient storage medium.
  • first, second, etc. may be used in this application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another.
  • the first element can be called the second element, and likewise, the second element can be called the first element, as long as all occurrences of the "first element” are consistently renamed and all occurrences of The “second component” can be renamed consistently.
  • the first element and the second element are both elements, but they may not be the same element.
  • the various aspects, implementations, implementations or features in the described embodiments can be used alone or in any combination.
  • Various aspects in the described embodiments may be implemented by software, hardware, or a combination of software and hardware.
  • the described embodiments may also be embodied by a computer-readable medium that stores computer-readable code including instructions executable by at least one computing device.
  • the computer-readable medium can be associated with any data storage device capable of storing data, which can be read by a computer system.
  • Computer-readable media used for examples may include read-only memory, random access memory, CD-ROM, HDD, DVD, magnetic tape, optical data storage devices, and the like.
  • the computer-readable medium may also be distributed in computer systems connected through a network, so that computer-readable codes can be stored and executed in a distributed manner.

Abstract

Disclosed are a computing power control method, apparatus and device, and a storage medium. The method comprises: controlling, according to a frequency sweeping command issued by a control host, a target chip to perform a frequency sweeping operation so as to determine a first computing power value of the target chip (101); and configuring the first computing power value to the target chip (102). A first computing power value of a target chip is determined by means of a scanning operation of the chip, and the chip is configured by means of the determined first computing power value of the target chip, so that the actual computing power of the chip in a computing device can be improved, thereby improving the computing power of the computing device, and improving the flexibility of computing power configuration of the computing device.

Description

算力的控制方法、装置、设备及存储介质Computing power control method, device, equipment and storage medium 技术领域Technical field
本申请涉及计算设备技术领域,例如涉及一种算力的控制方法、装置、设备及存储介质。The present application relates to the technical field of computing equipment, for example, to a computing power control method, device, equipment, and storage medium.
背景技术Background technique
计算设备在区块链的应用中充当着重要的角色。随着全网算力的提高,各种低功耗高算力的计算设备层出不穷。算力又是体现计算设备能力与价值的重要指标。Computing equipment plays an important role in the application of blockchain. With the improvement of the computing power of the entire network, various computing devices with low power consumption and high computing power are emerging one after another. Computing power is also an important indicator that reflects the capabilities and value of computing equipment.
在现有的计算设备实现方案中,经过芯片流片和贴片等不同的生产工序后,理论的芯片的算力会下降一定数值,并且不同芯片下降的数值也不相同,通常会设定一个可接受的最小算力值作为良品,将这些良品贴片组装后,会将整机中所有芯片设置为最小能工作的算力,从而让所有芯片都可以正常工作。In the existing implementation of computing equipment, after different production processes such as chip tape and patch, the theoretical computing power of the chip will drop by a certain value, and the drop value of different chips is also different, usually set a The acceptable minimum computing power value is regarded as good product. After assembling these good product patches, all chips in the whole machine will be set to the minimum working computing power, so that all chips can work normally.
但是,现有技术的方案,导致高于最低算力的芯片的算力浪费,因此,如何有效控制不同芯片的算力成为亟需解决的技术问题。However, the prior art solution results in a waste of computing power of chips higher than the minimum computing power. Therefore, how to effectively control the computing power of different chips has become an urgent technical problem to be solved.
发明内容Summary of the invention
本公开实施例提供一种算力的控制方法、装置、设备及存储介质,用于控制计算设备中芯片的算力,以解决现有技术计算设备算力浪费等问题。Embodiments of the present disclosure provide a computing power control method, device, device, and storage medium, which are used to control the computing power of a chip in a computing device, so as to solve the problem of wasting computing power of a computing device in the prior art.
本公开实施例第一个方面提供了一种算力的控制方法,包括:A first aspect of an embodiment of the present disclosure provides a method for controlling computing power, including:
根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的第一算力值;According to the frequency sweep command issued by the control host, control the target chip to perform a frequency sweep operation to determine the first computing power value of the target chip;
将所述第一算力值配置到所述目标芯片。The first computing power value is configured to the target chip.
本公开实施例第二个方面提供了一种算力的控制装置,包括:A second aspect of an embodiment of the present disclosure provides a computing power control device, including:
控制模块,用于根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的第一算力值;The control module is used to control the target chip to perform the frequency scan operation according to the frequency sweep command issued by the control host to determine the first computing power value of the target chip;
配置模块,用于将所述第一算力值配置到所述目标芯片。The configuration module is configured to configure the first computing power value to the target chip.
本公开实施例第三个方面提供了一种计算设备,包含上述第二个方面提供的算力的控制装置。A third aspect of the embodiments of the present disclosure provides a computing device including the computing power control device provided in the second aspect above.
本公开实施例第四个方面提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述第一个方面提供的算力的控制方法。A fourth aspect of the embodiments of the present disclosure provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are configured to execute the computing power control method provided in the first aspect above.
本公开实施例第五个方面提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述第一个方面提供的算力的控制方法。A fifth aspect of an embodiment of the present disclosure provides a computer program product. The computer program product includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer , The computer is caused to execute the computing power control method provided in the first aspect above.
本公开实施例第六个方面提供了一种电子设备,包括:A sixth aspect of the embodiments of the present disclosure provides an electronic device, including:
至少一个处理器;以及At least one processor; and
与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行上述第一个方面提供的算力的控制方法。The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, causes the at least one processor to execute the computing power control method provided in the first aspect above .
附图说明BRIEF DESCRIPTION
一个或多个实施例通过与之对应的附图进行示例性说明,这些示例性说明和附图并不构成对实施例的限定,附图中具有相同参考数字标号的元件示为类似的元件,附图不构成比例限制,并且其中:One or more embodiments are exemplified by the corresponding drawings. These exemplary descriptions and the drawings do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements. The drawings do not constitute a proportional limitation, and among them:
图1为本申请一实施例提供的地图的算力的控制方法的流程示意图;1 is a schematic flowchart of a method for controlling computing power of a map provided by an embodiment of the present application;
图2为本申请另一实施例提供的算力的控制方法的流程示意图;2 is a schematic flowchart of a method for controlling computing power provided by another embodiment of the present application;
图3为本申请一实施例提供的包含扫频的整机工作流程示意图;FIG. 3 is a schematic diagram of a working process of a whole machine including frequency sweep provided by an embodiment of the present application;
图4为本申请一实施例提供的算力的控制装置的结构示意图;4 is a schematic structural diagram of a computing power control device according to an embodiment of the application;
图5为本申请另一实施例提供的算力的控制装置的结构示意图;5 is a schematic structural diagram of a computing power control device according to another embodiment of the present application;
图6为本申请一实施例提供的电子设备的结构示意图。6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。Through the above drawings, a clear embodiment of the present application has been shown, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the concept of the present disclosure in any way, but to explain the concepts of the present application to those skilled in the art by referring to specific embodiments.
具体实施方式detailed description
为了能够更加详尽地了解本公开实施例的特点与技术内容,下面结合附图对本公开实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本公开实施例。在以下的技术描述中,为方便解释起见,通过多个细节以提供对所披露实施例的充分理解。然而,在没有这些细节的情况下,一个或多个实施例仍然可以实施。在其它情况下,为简化附图,熟知的结构和装置可以简化展示。In order to understand the features and technical contents of the embodiments of the present disclosure in more detail, the following describes the implementation of the embodiments of the present disclosure in detail with reference to the drawings. The accompanying drawings are for reference only and are not intended to limit the embodiments of the present disclosure. In the following technical description, for convenience of explanation, various details are provided to provide a sufficient understanding of the disclosed embodiments. However, without these details, one or more embodiments can still be implemented. In other cases, to simplify the drawings, well-known structures and devices can be simplified.
首先对本申请所涉及的名词进行解释:First explain the terms involved in this application:
EFUSE:是芯片中的一次性可编程存储器。EFUSE: is a one-time programmable memory in the chip.
此外,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。在以下各实施例的描述中,“多个”的含义是两个以上,除非另有明确具体的限定。In addition, the terms "first", "second", etc. are for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. In the description of the following embodiments, "multiple" means more than two, unless otherwise specifically limited.
下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本发明的实施例进行描述。The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below with reference to the drawings.
本公开实施例一提供了一种算力的控制方法,用于对芯片的算力进行控制。该算力的控制方法的执行主体为算力的控制装置,该算力的控制装置可以设置在计算设备中。如图1所示,为本实施例提供的算力的控制方法的流程示意图。该方法包括: Embodiment 1 of the present disclosure provides a computing power control method for controlling the computing power of a chip. The execution subject of the computing power control method is a computing power control device, and the computing power control device may be provided in a computing device. As shown in FIG. 1, it is a schematic flowchart of a method for controlling computing power provided by this embodiment. The method includes:
步骤101,根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的第一算力值。Step 101: According to a frequency sweep command issued by the control host, control the target chip to perform frequency sweep operation to determine the first computing power value of the target chip.
步骤102,将所述第一算力值配置到所述目标芯片。Step 102: Configure the first computing power value to the target chip.
具体的,在计算设备的整机工作过程中或整机功能验证过程中,首先需要进行初始化,比如初始化CPU、DDR、UART等基本设备,在初始化后,可以从计算设备上各芯片的EFUSE中读取信息,判断是否存储有静态算力值,若未存储有静态算力值,则为芯片配置最小可工作算力值,先使芯片以最小可工作算力进行运算,并初始化运算算法,该运算算法可以为货币算法,初始化货币算法是指根据不同的货币确定对应的货币算法。并设置监听接口监听控制主机发送的命令,控制主机下发的命令可以包括扫频命令、运算任务命令等,运算任务命令是指控制主机下发的需要解密的任务,算力板通过 运算得出答案返回给控制主机。其中,算力板上设置有多个芯片。Specifically, in the whole working process of the computing device or the function verification process of the whole device, it is necessary to initialize first, such as initializing basic devices such as CPU, DDR, UART, etc. After initialization, you can choose from the EFUSE of each chip on the computing device Read the information to determine whether there is a static computing power value stored. If no static computing power value is stored, configure the chip with the minimum operable computing power value, first make the chip operate with the minimum operable computing power, and initialize the computing algorithm, The arithmetic algorithm may be a currency algorithm, and initializing the currency algorithm refers to determining the corresponding currency algorithm according to different currencies. And set the monitoring interface to monitor the commands sent by the control host. The commands issued by the control host can include frequency sweep commands and calculation task commands. The calculation task commands refer to the tasks that need to be decrypted by the control host. The answer is returned to the control panel. Among them, multiple chips are provided on the computing power board.
当监听到控制主机下发的命令为扫频命令时,根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的第一算力值。扫频命令可以是符合一定协议的命令字,扫频命令可以包括扫频标识、扫频类型、扫频范围等等信息。比如命令中的扫频标识位3表示扫频命令;扫频类型包括静态和动态两种,比如0表示静态,1表示动态;扫频范围是700-500H/S(是算力值),算力值是指芯片在1秒内能够计算出多少次哈希值。芯片的算力配置可以通过控制芯片的工作频率来控制或者其他方式来配置,比如芯片的工作频率与其算力具有对应关系。通过设置芯片的工作频率来配置芯片的算力。具体在确定了芯片的算力值后如何配置芯片以该算力值进行运算为现有技术,本实施例不做限定。When it is detected that the command issued by the control host is a frequency sweep command, according to the frequency sweep command issued by the control host, the target chip is controlled to perform a frequency sweep operation to determine the first computing power value of the target chip. The frequency sweep command may be a command word conforming to a certain protocol, and the frequency sweep command may include information such as frequency sweep identifier, frequency sweep type, frequency sweep range, and so on. For example, the sweep flag bit 3 in the command indicates the sweep command; the sweep type includes static and dynamic, such as 0 for static and 1 for dynamic; the sweep range is 700-500H/S (which is the calculation value). The force value refers to how many times the chip can calculate the hash value in 1 second. The computing power configuration of the chip can be controlled by controlling the operating frequency of the chip or configured in other ways, for example, the operating frequency of the chip has a corresponding relationship with its computing power. Configure the chip's computing power by setting the chip's operating frequency. Specifically, after determining the computing power value of the chip, how to configure the chip to calculate the computing power value as the prior art is not limited in this embodiment.
可选地,控制主机下发扫频命令可以是在计算设备每次上电后发送一次,也可以是在有芯片无法工作后即发送一次,重新确定芯片的算力值。Optionally, the frequency sweep command issued by the control host may be sent once every time the computing device is powered on, or may be sent once when the chip fails to work, to re-determine the computing power value of the chip.
扫频运算是指芯片按照扫频命令中包括的扫频范围,在不同频率下进行加密运算,并与预设答案进行比对,从扫频范围中确定芯片工作的最大算力值,或者确定芯片能工作的算力值等等。Frequency sweep operation refers to that the chip performs encryption operations at different frequencies according to the frequency sweep range included in the frequency sweep command, and compares it with the preset answer to determine the maximum computing power value of the chip from the frequency sweep range, or determine The computing power value of the chip can work and so on.
示例性的,扫频范围为700-500H/s,芯片从700开始进行加密运算,并与预设答案比对,若不一致,则再在650H/s下进行加密运算,与预设答案对比,与若与预设答案一致,则证明该芯片可以工作在650H/s下,可以认为该芯片的最大算力值为650H/s。以此类推,从700往下依次尝试,直至找到芯片可以工作的算力值作为芯片的最大算力值。对于在扫频范围内尝试多少次加密运算可以根据实际需求设置,比如按照间一定的等差序列进行,700-650-600-550-500,还可以是按照其他规则来确定,本实施例不做限定。Exemplarily, the frequency sweep range is 700-500H/s. The chip starts the encryption operation from 700 and compares it with the preset answer. If it is inconsistent, the encryption operation is performed at 650H/s again, compared with the preset answer. If it is consistent with the preset answer, it proves that the chip can work under 650H/s, and it can be considered that the maximum computing power value of the chip is 650H/s. By analogy, try from 700 to the next until you find the computing power value of the chip as the maximum computing power value of the chip. The number of encryption operations to be tried within the frequency sweep range can be set according to actual needs, for example, according to a certain equidistance sequence, 700-650-600-550-500, or it can be determined according to other rules. This embodiment does not Be limited.
可选地,还可以扫完扫频范围,从目标芯片能工作的算力值中任选一个作为该目标芯片的第一算力值,或者按照一定的计算,比如平均值,根据目标芯片能工作的算力值确定该目标芯片的第一算力值。具体方式本实施例不做限定。Optionally, the frequency sweep range can also be scanned, and one of the computing power values of the target chip can be selected as the first computing power value of the target chip, or according to a certain calculation, such as an average value, according to the target chip energy The working computing power value determines the first computing power value of the target chip. The specific mode is not limited in this embodiment.
在确定了目标芯片的第一算力值后,则将第一算力值配置到目标芯片,以使目标芯片可以以第一算力值的算力进行运算。将第一算力值配置到目标芯片的方式,该第一算力值的有效性仅在本次上电之后的工作过程中截至下 一次扫频命令下发该目标芯片重新配置算力值之前有效,芯片下电后则失效。下一次上电,还需要配置为最小可工作算力值或者重新进行扫频运算确定目标芯片的算力值(可以称为第二算力值)。After the first computing power value of the target chip is determined, the first computing power value is allocated to the target chip, so that the target chip can perform calculation with the computing power of the first computing power value. The method of configuring the first computing power value to the target chip, the validity of the first computing power value is only in the work process after this power-on until the next frequency sweep command is issued before the target chip is reconfigured the computing power value Effective, the chip will be invalid after power off. The next time you power on, you also need to configure the minimum working hashrate or re-scan the frequency to determine the hashrate of the target chip (which can be called the second hashrate).
可选地,目标芯片可以是一个或多个。多个是指两个或两个以上。Alternatively, there may be one or more target chips. Multiple refers to two or more.
本公开实施例提供的算力的控制方法,通过芯片的扫描运算来确定目标芯片的第一算力值,并以确定的目标芯片的第一算力值来配置该芯片,可以提高芯片在计算设备中的实际算力,从而提高计算设备的算力,并且提高了计算设备算力配置的灵活性。The computing power control method provided by the embodiment of the present disclosure determines the first computing power value of the target chip through the scanning operation of the chip, and configures the chip to determine the first computing power value of the target chip, which can improve the chip's computing power The actual computing power in the device, thereby increasing the computing power of the computing device, and increasing the flexibility of computing power configuration of the computing device.
本公开实施例二对上述实施例提供的算力的控制方法做进一步补充说明。 Embodiment 2 of the present disclosure further supplements the method for controlling the computing power provided by the foregoing embodiment.
如图2所示,为本实施例提供的算力的控制方法的流程示意图。As shown in FIG. 2, it is a schematic flowchart of a method for controlling computing power provided by this embodiment.
作为一种可实施的方式,在上述实施例的基础上,可选地,在根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的第一算力值之前,该方法还包括:As an implementable manner, on the basis of the foregoing embodiment, optionally, based on the frequency sweep command issued by the control host, the target chip is controlled to perform a frequency sweep operation to determine the first computing power value of the target chip Previously, the method also included:
步骤201,通过监听接口监听所述控制主机是否下发扫频命令,所述扫频命令包括扫频标识、扫频类型及扫频范围。Step 201: Monitor whether the control host issues a frequency sweep command through a monitoring interface. The frequency sweep command includes a frequency sweep identifier, a frequency sweep type, and a frequency sweep range.
具体的,控制主机下发扫频命令可以是在计算设备每次上电后发送一次,也可以是在有芯片无法工作后即发送一次,重新确定芯片的算力值。可以设置监听接口监听控制主机发送的命令,控制主机下发的命令可以包括扫频命令、运算任务命令等,运算任务命令是指控制主机下发的需要解密的任务,算力板通过运算得出答案返回给控制主机。其中,算力板上设置有多个芯片。Specifically, the frequency sweep command issued by the control host may be sent once every time the computing device is powered on, or it may be sent once after a chip fails to work, to re-determine the computing power value of the chip. The monitoring interface can be set to monitor the commands sent by the control host. The commands issued by the control host can include frequency sweep commands and calculation task commands. The calculation task commands refer to the tasks issued by the control host that need to be decrypted. The answer is returned to the control panel. Among them, multiple chips are provided on the computing power board.
当监听到控制主机下发的命令为扫频命令时,根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的第一算力值。扫频命令可以是符合一定协议的命令字,扫频命令可以包括扫频标识、扫频类型、扫频范围等等信息。比如命令中的扫频标识位3表示扫频命令;扫频类型包括静态和动态两种,比如0表示静态,1表示动态;扫频范围是700-500H/S(是算力值),算力值是指芯片在1秒内能够计算出多少次哈希值。When it is detected that the command issued by the control host is a frequency sweep command, according to the frequency sweep command issued by the control host, the target chip is controlled to perform a frequency sweep operation to determine the first computing power value of the target chip. The frequency sweep command may be a command word conforming to a certain protocol, and the frequency sweep command may include information such as frequency sweep identifier, frequency sweep type, frequency sweep range, and so on. For example, the sweep flag bit 3 in the command indicates the sweep command; the sweep type includes static and dynamic, such as 0 for static and 1 for dynamic; the sweep frequency range is 700-500H/S (which is the computing power value). The force value refers to how many times the chip can calculate the hash value in 1 second.
作为另一种可实施的方式,在上述实施例的基础上,可选地,在根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的 第一算力值之后,该方法还包括:As another implementable manner, on the basis of the foregoing embodiment, optionally, based on the frequency sweep command issued by the control host, the target chip is controlled to perform a frequency sweep operation to determine the first computing power of the target chip After the value, the method also includes:
步骤2021,根据所述扫频命令判断扫频类型。Step 2021: Determine the frequency sweep type according to the frequency sweep command.
步骤2022,若扫频类型为静态扫频,则将所述第一算力值写入所述目标芯片的存储器EFUSE中。 Step 2022, if the frequency sweep type is static frequency sweep, the first computing power value is written into the memory EFUSE of the target chip.
具体的,扫频命令可以包括扫频标识、扫频类型、扫频范围等等信息。比如命令中的扫频标识位3表示扫频命令;扫频类型包括静态和动态两种,比如0表示静态,1表示动态;扫频范围是700-500H/S。在监听到扫频命令后,可以根据扫频命令判断扫频类型,若扫频类型为静态扫频,则还可以将第一算力值写入目标芯片的EFUSE中,即作为目标芯片的静态算力值存储到EFUSE中,在下一次上电后,可以从EFUSE中读取该静态算力值对目标芯片进行配置,使芯片按照该静态算力值的算力进行运行。Specifically, the frequency sweep command may include information such as frequency sweep identifier, frequency sweep type, frequency sweep range, and so on. For example, the sweep flag bit 3 in the command indicates the sweep command; the sweep types include static and dynamic, such as 0 for static and 1 for dynamic; the sweep range is 700-500H/S. After listening to the frequency sweep command, you can determine the frequency sweep type according to the frequency sweep command. If the frequency sweep type is static frequency sweep, you can also write the first calculation value into the target chip's EFUSE, which is the static state of the target chip. The computing power value is stored in EFUSE. After the next power-on, the static computing power value can be read from EFUSE to configure the target chip so that the chip operates according to the computing power of the static computing power value.
可选地,若确定的第一算力值为目标芯片的最大算力值,将该第一算力值写入EFUSE中,可以实现目标芯片后续按照最大算力进行运算,从而提高计算设备的算力。Optionally, if the determined first computing power value is the maximum computing power value of the target chip, writing the first computing power value into EFUSE can implement the target chip to perform subsequent operations according to the maximum computing power, thereby improving the computing device’s Computing power.
可选地,若扫频类型为动态扫频,则不需要将第一算力值写入目标芯片的EFUSE中,在芯片下电后该第一算力值则失效。下次上电可以重新进行扫频运算重新确定目标芯片的算力值对目标芯片进行配置。Optionally, if the frequency sweep type is dynamic frequency sweep, there is no need to write the first computing power value into the EFUSE of the target chip, and the first computing power value is invalid after the chip is powered off. The next time the power is turned on, the frequency sweep operation can be performed again to re-determine the calculation value of the target chip and configure the target chip.
作为另一种可实施的方式,在上述实施例的基础上,可选地,根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的第一算力值,具体可以包括:As another implementable manner, on the basis of the foregoing embodiment, optionally, according to a frequency sweep command issued by the control host, the target chip is controlled to perform a frequency sweep operation to determine the first computing power value of the target chip , Which can include:
步骤2031,按照所述扫频命令中包括的扫频范围,控制所述目标芯片在不同频率下进行加密运算,获得运算结果。Step 2031: Control the target chip to perform encryption operations at different frequencies according to the frequency sweep range included in the frequency sweep command to obtain an operation result.
步骤2032,根据各所述运算结果与对应的预设结果,获取所述目标芯片的第一算力值。Step 2032: Acquire the first computing power value of the target chip according to each calculation result and the corresponding preset result.
具体的,在接收到控制主机下发的扫频命令后,可以按照所述扫频命令中包括的扫频范围,控制所述目标芯片在不同频率下进行加密运算,获得运算结果,并根据各所述运算结果与对应的预设结果,获取所述目标芯片的第一算力值。Specifically, after receiving the frequency sweep command issued by the control host, the target chip may be controlled to perform encryption operations at different frequencies according to the frequency sweep range included in the frequency sweep command to obtain the operation result, and according to each The calculation result and the corresponding preset result obtain the first computing power value of the target chip.
扫频运算是指芯片按照扫频命令中包括的扫频范围,在不同频率下进行加密运算,并与预设答案进行比对,从扫频范围中确定芯片工作的最大算力 值,或者确定芯片能工作的算力值等等。Frequency sweep operation refers to that the chip performs encryption operations at different frequencies according to the frequency sweep range included in the frequency sweep command, and compares it with the preset answer to determine the maximum computing power value of the chip from the frequency sweep range, or determine The computing power value of the chip can work and so on.
示例性的,扫频范围为700-500H/s,芯片从700开始进行加密运算,并与预设答案比对,若不一致,则再在650H/s下进行加密运算,与预设答案对比,与若与预设答案一致,则证明该芯片可以工作在650H/s下,可以认为该芯片的最大算力值为650H/s。以此类推,从700往下依次尝试,直至找到芯片可以工作的算力值作为芯片的最大算力值。对于在扫频范围内尝试多少次加密运算可以根据实际需求设置,比如按照间一定的等差序列进行,700-650-600-550-500,还可以是按照其他规则来确定,本实施例不做限定。Exemplarily, the frequency sweep range is 700-500H/s. The chip starts the encryption operation from 700 and compares it with the preset answer. If it is inconsistent, the encryption operation is performed at 650H/s again, compared with the preset answer. If it is consistent with the preset answer, it proves that the chip can work under 650H/s, and the maximum computing power value of the chip can be regarded as 650H/s. By analogy, try from 700 to the next until you find the computing power value of the chip as the maximum computing power value of the chip. The number of encryption operations to be tried within the frequency sweep range can be set according to actual needs, for example, according to a certain equidistance sequence, 700-650-600-550-500, or it can be determined according to other rules. This embodiment does not Be limited.
可选地,还可以扫完扫频范围,从目标芯片能工作的算力值中任选一个作为该目标芯片的第一算力值,或者按照一定的计算,比如平均值,根据目标芯片能工作的算力值确定该目标芯片的第一算力值。具体方式本实施例不做限定。Optionally, the frequency sweep range can also be scanned, and one of the computing power values of the target chip can be selected as the first computing power value of the target chip, or according to a certain calculation, such as an average value, according to the target chip energy The working computing power value determines the first computing power value of the target chip. The specific mode is not limited in this embodiment.
在确定了目标芯片的第一算力值后,则将第一算力值配置到目标芯片,以使目标芯片可以以第一算力值的算力进行运算。After the first computing power value of the target chip is determined, the first computing power value is allocated to the target chip, so that the target chip can perform calculation with the computing power of the first computing power value.
可选地,根据各所述运算结果与对应的预设结果,获取所述目标芯片的第一算力值,包括:Optionally, obtaining the first computing power value of the target chip according to each of the calculation results and the corresponding preset results includes:
根据各所述运算结果与对应的预设结果,获取所述目标芯片的最大算力值作为所述第一算力值。According to each of the calculation results and the corresponding preset results, the maximum computing power value of the target chip is obtained as the first computing power value.
示例性的,扫频范围为700-500H/s,芯片从700开始进行加密运算,并与预设答案比对,若不一致,则再在650H/s下进行加密运算,与预设答案对比,与若与预设答案一致,则证明该芯片可以工作在650H/s下,可以认为该芯片的最大算力值为650H/s。可以不再进行后续的扫频运算,将目标芯片的最大算力值650H/s作为第一算力值,配置到目标芯片。Exemplarily, the frequency sweep range is 700-500H/s. The chip starts the encryption operation from 700 and compares it with the preset answer. If it is inconsistent, the encryption operation is then performed at 650H/s and compared with the preset answer. If it is consistent with the preset answer, it proves that the chip can work under 650H/s, and it can be considered that the maximum computing power value of the chip is 650H/s. It is no longer necessary to perform the subsequent frequency sweep operation, and the maximum computing power value of the target chip is 650H/s as the first computing power value, and it is configured to the target chip.
作为另一种可实施的方式,在上述实施例的基础上,可选地,该方法还可以包括:As another implementable manner, based on the foregoing embodiment, optionally, the method may further include:
步骤204,判断所述目标芯片的EFUSE中是否存储有静态算力值;Step 204: Determine whether a static computing power value is stored in the EFUSE of the target chip;
步骤205,若是,则将所述静态算力值配置到所述目标芯片,以使所述目标芯片以所述静态算力值对应的算力进行运算工作。In step 205, if yes, the static computing power value is allocated to the target chip, so that the target chip performs computing work with the computing power corresponding to the static computing power value.
在每次上电并完成初始化后,可以判断目标芯片的EFUSE中是否存储有静态算力值,若存储有静态算力值,则可以先将静态算力值配置到目标芯片 中,使目标芯片先以静态算力值的算力进行运算。After each power-on and initialization, you can determine whether the static hashrate value is stored in the EFUSE of the target chip. If the static hashrate value is stored, you can first configure the static hashrate value in the target chip to make the target chip Calculate first with the computing power of the static computing power value.
比如在前一次上电工作过程中,进行了扫频运算,并将目标芯片的第一算力值写入了目标芯片的EFUSE中,则在本次上电工作时,就可以从EFUSE中读取到目标芯片的静态算力值,可以直接将静态算力值配置到目标芯片。For example, during the previous power-on operation, a frequency sweep operation was performed, and the first computing power value of the target chip was written into the target chip's EFUSE. Then, during this power-up operation, it can be read from EFUSE After obtaining the static computing power value of the target chip, the static computing power value can be directly configured to the target chip.
可选地,对于每个芯片,其静态算力值还可以根据实际需求设置,比如计算设备具有显示屏,显示屏显示有每个芯片的算力值,用户可以根据自己的实际情况,通过交互界面输入设置每个芯片的算力值。Optionally, for each chip, the static computing power value can also be set according to actual needs. For example, the computing device has a display screen, and the display screen shows the computing power value of each chip. The user can interact according to his actual situation. The interface input sets the computing power value of each chip.
可选地,还可以在整机生产时,将静态算力值写入EFUSE中。Optionally, the static computing power value can also be written into EFUSE when the whole machine is produced.
通过扫频方式,可以将计算设备的算力最大化,提高计算设备的性价比。Through frequency sweeping, the computing power of the computing device can be maximized, and the cost performance of the computing device can be improved.
示例性地,一台以往算力值1800H/s的机器(计算设备),上面集成有6颗理论算力值为400H/s芯片,由于每颗芯片都设置了最小可工作的算力值300H/s,导致整机算力会固定在1800H/s。通过扫频方式,6颗芯片中,算力值多于300H/s的芯片将会发挥它的最大算力,假如最优芯片算力可以达到400H/s,那扫频之后整机算力就可以达到1800H+(0~100H*6)=1800H/s~2400H/s。Exemplarily, a machine (computing device) with a previous computing power value of 1800H/s is integrated with 6 theoretical computing power values of 400H/s chips, because each chip is set with a minimum working computing power value of 300H /s, resulting in the fixed computing power of 1800H/s. Through the frequency sweeping method, among the 6 chips, a chip with a computing power value of more than 300H/s will exert its maximum computing power. If the optimal chip computing power can reach 400H/s, then the overall computing power after the frequency sweep It can reach 1800H+(0~100H*6)=1800H/s~2400H/s.
作为一种可实施的方式,示例性地,如图3所示,为本实施例提供的包含扫频的整机工作流程示意图,整机工作流程如下:As an implementable manner, for example, as shown in FIG. 3, it is a schematic diagram of a whole machine workflow including frequency sweep provided by this embodiment. The whole machine workflow is as follows:
步骤1、整机上电。 Step 1. Power on the whole machine.
步骤2、初始化CPU、DDR、UART等基本设备。 Step 2. Initialize basic devices such as CPU, DDR, and UART.
步骤3、读取EFUSE,判断是否存在静态算力值。若存在转步骤4,若不存在转步骤5。 Step 3. Read EFUSE to determine whether there is a static computing power value. If there is a step 4, go to step 5.
步骤4、若存在,获取静态算力值并配置到芯片。 Step 4. If it exists, obtain the static computing power value and configure it to the chip.
步骤5、若不存在,设置最小可工作算力值,配置到芯片。 Step 5. If it does not exist, set the minimum working computing power value and configure it to the chip.
步骤6、初始化货币算法,设置监听接口。Step 6. Initialize the currency algorithm and set the listening interface.
步骤7、监听控制主机下发的扫频命令。 Step 7. Monitor the frequency sweep command issued by the control host.
步骤8、判断是否收到扫频命令。是转步骤9,否转步骤12。 Step 8. Determine whether the frequency sweep command is received. If yes, go to step 9. If no, go to step 12.
在接收到扫频命令后,需要根据扫频命令控制芯片进行扫频运算,确定所述芯片的第一算力值。After receiving the frequency sweep command, the chip needs to be controlled to perform a frequency sweep operation according to the frequency sweep command to determine the first computing power value of the chip.
步骤9、判断扫频类型。是动态扫频转步骤10,是静态扫频转步骤11。Step 9. Determine the type of frequency sweep. It is step 10 for dynamic frequency conversion and step 11 for static frequency conversion.
步骤10、将扫频确定的第一算力值配置到芯片,下电后失效。Step 10: Configure the first computing power value determined by the frequency sweep to the chip, and it will be invalid after power off.
步骤11、将扫频确定的第一算力值写入EFUSE中,并配置到芯片。Step 11. Write the first computing power value determined by the frequency sweep to EFUSE and configure it to the chip.
步骤12、运算货币算法。 Step 12. Calculate the currency algorithm.
若未收到扫频命令,则按照配置的静态算力值的算力(EFUSE中存在静态算力值时)或最小可工作算力值(EFUSE中不存在静态算力值时)的算力运算货币算法,若接收到扫频命令,根据扫频确定的第一算力值的算力运算货币算法。If no frequency sweep command is received, the calculation power according to the configured static calculation value (when there is a static calculation value in EFUSE) or the minimum working calculation value (when there is no static calculation value in EFUSE) The arithmetic currency algorithm, if a frequency sweep command is received, calculates the monetary algorithm according to the hashrate of the first hashrate value determined by the frequency sweep.
本实施例提供的算力的控制方法,通过芯片的扫描运算来确定目标芯片的第一算力值,并以确定的目标芯片的第一算力值来配置该芯片,可以提高芯片在计算设备中的实际算力,从而提高计算设备的算力,并且提高了计算设备算力配置的灵活性。The method for controlling the computing power provided by this embodiment determines the first computing power value of the target chip through the scanning operation of the chip, and configures the chip to determine the first computing power value of the target chip, which can improve the chip in the computing device Actual computing power in order to increase the computing power of the computing device and increase the flexibility of computing power configuration of the computing device.
本公开实施例三还提供了一种算力的控制装置,用于执行上述实施例一提供的算力的控制方法。 Embodiment 3 of the present disclosure also provides a computing power control device, which is used to execute the computing power control method provided in Embodiment 1 above.
如图4所示,为本实施例提供的算力的控制装置的结构示意图。该算力的控制装置30包括:控制模块31和配置模块32。As shown in FIG. 4, it is a schematic structural diagram of a computing power control device provided in this embodiment. The computing power control device 30 includes a control module 31 and a configuration module 32.
其中,控制模块31用于根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的第一算力值;配置模块32用于将所述第一算力值配置到所述目标芯片。The control module 31 is used to control the target chip to perform a frequency scan operation according to the frequency sweep command issued by the control host to determine the first computing power value of the target chip; the configuration module 32 is used to convert the first computing power value Configure to the target chip.
关于本实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be elaborated here.
根据本实施例提供的算力的控制装置,通过芯片的扫描运算来确定目标芯片的第一算力值,并以确定的目标芯片的第一算力值来配置该芯片,可以提高芯片在计算设备中的实际算力,从而提高计算设备的算力,并且提高了计算设备算力配置的灵活性。According to the computing power control device provided in this embodiment, the first computing power value of the target chip is determined through the scanning operation of the chip, and the chip is configured to determine the first computing power value of the target chip, which can improve the chip in computing The actual computing power in the device, thereby increasing the computing power of the computing device, and increasing the flexibility of computing power configuration of the computing device.
本公开实施例四对实施例三提供的装置做进一步补充说明,以执行上述实施例二提供的方法。 Embodiment 4 of the present disclosure further supplements the apparatus provided in Embodiment 3 to perform the method provided in Embodiment 2 above.
如图5所示,为本实施例提供的算力的控制装置的结构示意图。As shown in FIG. 5, it is a schematic structural diagram of a computing power control device provided in this embodiment.
作为一种可实施的方式,在上述实施例三的基础上,可选地,该装置还包括:监听模块33。As an implementable manner, on the basis of the foregoing third embodiment, optionally, the device further includes: a listening module 33.
其中,监听模块33用于通过监听接口监听所述控制主机是否下发扫频命令,所述扫频命令包括扫频标识、扫频类型及扫频范围。Wherein, the monitoring module 33 is used to monitor whether the control host issues a frequency sweep command through the monitoring interface, and the frequency sweep command includes a frequency sweep identifier, a frequency sweep type and a frequency sweep range.
作为另一种可实施的方式,在上述实施例三的基础上,可选地,该装置还包括:处理模块34。As another implementable manner, on the basis of the foregoing third embodiment, optionally, the device further includes: a processing module 34.
其中,处理模块34用于根据所述扫频命令判断扫频类型;所述配置模块32还用于若扫频类型为静态扫频,则将所述第一算力值写入所述目标芯片的存储器EFUSE中。Wherein, the processing module 34 is used to determine the frequency sweep type according to the frequency sweep command; the configuration module 32 is also used to write the first computing power value to the target chip if the frequency sweep type is a static frequency sweep Memory EFUSE.
可选地,若扫频类型为动态扫频,则不将所述第一算力值写入所述目标芯片的EFUSE中。Optionally, if the frequency sweep type is dynamic frequency sweep, the first computing power value is not written into the EFUSE of the target chip.
作为另一种可实施的方式,在上述实施例三的基础上,可选地,所述控制模块,包括:第一控制子模块和第二控制子模块。As another implementable manner, on the basis of the foregoing third embodiment, optionally, the control module includes: a first control submodule and a second control submodule.
其中,第一控制子模块,用于按照所述扫频命令中包括的扫频范围,控制所述目标芯片在不同频率下进行加密运算,获得运算结果;第二控制子模块,用于根据各所述运算结果与对应的预设结果,获取所述目标芯片的第一算力值。Among them, the first control sub-module is used to control the target chip to perform encryption operation at different frequencies according to the frequency sweep range included in the frequency sweep command to obtain the operation result; the second control sub-module is used to The calculation result and the corresponding preset result obtain the first computing power value of the target chip.
可选地,所述第二控制子模块,具体用于:Optionally, the second control sub-module is specifically used for:
根据各所述运算结果与对应的预设结果,获取所述目标芯片的最大算力值作为所述第一算力值。According to each of the calculation results and the corresponding preset results, the maximum computing power value of the target chip is obtained as the first computing power value.
作为另一种可实施的方式,在上述实施例三的基础上,可选地,该装置还包括:判断模块35。As another implementable manner, on the basis of the foregoing third embodiment, optionally, the device further includes: a judgment module 35.
其中,判断模块,用于判断所述目标芯片的EFUSE中是否存储有静态算力值;所述配置模块,还用于若是,则将所述静态算力值配置到所述目标芯片,以使所述目标芯片以所述静态算力值对应的算力进行运算工作。Wherein, the judgment module is used to judge whether a static computing power value is stored in the EFUSE of the target chip; the configuration module is also used to configure the static computing power value to the target chip if yes, so that The target chip performs calculation work with the calculation power corresponding to the static calculation power value.
关于本实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be elaborated here.
需要说明的是,本实施例中各可实施的方式可以单独实施,也可以在不冲突的情况下以任意组合方式结合实施,本申请实施例不做限定。It should be noted that each implementable manner in this embodiment may be implemented separately, or may be combined and implemented in any combination without conflict, and the embodiments of this application are not limited.
根据本实施例提供的算力的控制装置,通过芯片的扫描运算来确定目标芯片的第一算力值,并以确定的目标芯片的第一算力值来配置该芯片,可以提高芯片在计算设备中的实际算力,从而提高计算设备的算力,并且提高了 计算设备算力配置的灵活性。According to the computing power control device provided in this embodiment, the first computing power value of the target chip is determined through the scanning operation of the chip, and the chip is configured to determine the first computing power value of the target chip, which can improve the chip in computing The actual computing power in the device, thereby increasing the computing power of the computing device, and increasing the flexibility of computing power configuration of the computing device.
本公开实施例还提供了一种计算设备,包含上述任一实施例提供的算力的控制装置。An embodiment of the present disclosure also provides a computing device, including the computing power control device provided by any of the foregoing embodiments.
根据本实施例提供的计算设备,通过芯片的扫描运算来确定目标芯片的第一算力值,并以确定的目标芯片的第一算力值来配置该芯片,可以提高芯片在计算设备中的实际算力,从而提高计算设备的算力,并且提高了计算设备算力配置的灵活性。According to the computing device provided in this embodiment, the first computing power value of the target chip is determined through the scanning operation of the chip, and the chip is configured to determine the first computing power value of the target chip, which can improve the chip's computing power in the computing device Actual computing power, thereby increasing the computing power of the computing device, and increasing the flexibility of computing power configuration of the computing device.
本公开实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述任一实施例提供的算力的控制方法。An embodiment of the present disclosure also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are configured to execute the computing power control method provided by any of the foregoing embodiments.
根据本实施例提供的计算机可读存储介质,通过芯片的扫描运算来确定目标芯片的第一算力值,并以确定的目标芯片的第一算力值来配置该芯片,可以提高芯片在计算设备中的实际算力,从而提高计算设备的算力,并且提高了计算设备算力配置的灵活性。According to the computer-readable storage medium provided in this embodiment, the first computing power value of the target chip is determined through the scanning operation of the chip, and the chip is configured to determine the first computing power value of the target chip, which can improve the chip's computing power. The actual computing power in the device, thereby increasing the computing power of the computing device, and increasing the flexibility of computing power configuration of the computing device.
本公开实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一实施例提供的算力的控制方法。An embodiment of the present disclosure also provides a computer program product. The computer program product includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the The computer executes the computing power control method provided by any of the above embodiments.
上述的计算机可读存储介质可以是暂态计算机可读存储介质,也可以是非暂态计算机可读存储介质。The aforementioned computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
本公开实施例还提供了一种电子设备,如图6所示,为本实施例提供的电子设备的结构示意图。该电子设备50包括:An embodiment of the present disclosure also provides an electronic device. As shown in FIG. 6, it is a schematic structural diagram of the electronic device provided by this embodiment. The electronic device 50 includes:
至少一个处理器(processor)51,图6中以一个处理器51为例;和存储器(memory)52,还可以包括通信接口(Communication Interface)和总线。其中,处理器、通信接口、存储器可以通过总线完成相互间的通信。通信接口可以用于信息传输。处理器可以调用存储器中的逻辑指令,以执行上述实施例的算力的控制方法。At least one processor (processor) 51, one processor 51 is taken as an example in FIG. 6; and the memory (memory) 52 may further include a communication interface (Interface) and a bus. Among them, the processor, communication interface, and memory can complete communication with each other through the bus. The communication interface can be used for information transmission. The processor may call logical instructions in the memory to execute the control method of the computing power in the above embodiment.
此外,上述的存储器中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, the logic instructions in the aforementioned memory can be implemented in the form of software functional units and sold or used as independent products, and can be stored in a computer-readable storage medium.
存储器作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令/模块。处理器通过运行存储在存储器中的软件程序、指令以及模块,从而执行功能应用以及数据处理,即实现上述方法实施例中的算力的控制方法。The memory as a computer-readable storage medium can be used to store software programs and computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor executes functional applications and data processing by running software programs, instructions, and modules stored in the memory, that is, implementing the computing power control method in the foregoing method embodiments.
存储器可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器。The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system and application programs required by at least one function; the storage data area may store data created according to the use of a terminal device, and the like. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory.
本公开实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The technical solutions of the embodiments of the present disclosure may be embodied in the form of software products, which are stored in a storage medium and include one or more instructions to make a computer device (which may be a personal computer, server, or network) Equipment, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. The aforementioned storage medium may be a non-transitory storage medium, including: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc. A medium that can store program codes may also be a transient storage medium.
当用于本申请中时,虽然术语“第一”、“第二”等可能会在本申请中使用以描述各元件,但这些元件不应受到这些术语的限制。这些术语仅用于将一个元件与另一个元件区别开。比如,在不改变描述的含义的情况下,第一元件可以叫做第二元件,并且同样第,第二元件可以叫做第一元件,只要所有出现的“第一元件”一致重命名并且所有出现的“第二元件”一致重命名即可。第一元件和第二元件都是元件,但可以不是相同的元件。When used in this application, although the terms "first", "second", etc. may be used in this application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, without changing the meaning of the description, the first element can be called the second element, and likewise, the second element can be called the first element, as long as all occurrences of the "first element" are consistently renamed and all occurrences of The "second component" can be renamed consistently. The first element and the second element are both elements, but they may not be the same element.
本申请中使用的用词仅用于描述实施例并且不用于限制权利要求。如在实施例以及权利要求的描述中使用的,除非上下文清楚地表明,否则单数形式的“一个”(a)、“一个”(an)和“所述”(the)旨在同样包括复数形式。类似地,如在本申请中所使用的术语“和/或”是指包含一个或一个以上相关联的列出的任何以及所有可能的组合。另外,当用于本申请中时,术语“包括”(comprise)及其变型“包括”(comprises)和/或包括(comprising)等指陈述的特征、整体、步骤、操作、元素,和/或组件的存在,但不排除一个或 一个以上其它特征、整体、步骤、操作、元素、组件和/或这些的分组的存在或添加。The terms used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "said" are intended to include plural forms as well . Similarly, the term "and/or" as used in this application is meant to include any and all possible combinations of one or more associated lists. In addition, when used in this application, the term "comprise" and its variations "comprises" and/or includes etc. refer to the stated features, wholes, steps, operations, elements, and/or The presence of components does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and/or groups of these.
所描述的实施例中的各方面、实施方式、实现或特征能够单独使用或以任意组合的方式使用。所描述的实施例中的各方面可由软件、硬件或软硬件的结合实现。所描述的实施例也可以由存储有计算机可读代码的计算机可读介质体现,该计算机可读代码包括可由至少一个计算装置执行的指令。所述计算机可读介质可与任何能够存储数据的数据存储装置相关联,该数据可由计算机系统读取。用于举例的计算机可读介质可以包括只读存储器、随机存取存储器、CD-ROM、HDD、DVD、磁带以及光数据存储装置等。所述计算机可读介质还可以分布于通过网络联接的计算机系统中,这样计算机可读代码就可以分布式存储并执行。The various aspects, implementations, implementations or features in the described embodiments can be used alone or in any combination. Various aspects in the described embodiments may be implemented by software, hardware, or a combination of software and hardware. The described embodiments may also be embodied by a computer-readable medium that stores computer-readable code including instructions executable by at least one computing device. The computer-readable medium can be associated with any data storage device capable of storing data, which can be read by a computer system. Computer-readable media used for examples may include read-only memory, random access memory, CD-ROM, HDD, DVD, magnetic tape, optical data storage devices, and the like. The computer-readable medium may also be distributed in computer systems connected through a network, so that computer-readable codes can be stored and executed in a distributed manner.
上述技术描述可参照附图,这些附图形成了本申请的一部分,并且通过描述在附图中示出了依照所描述的实施例的实施方式。虽然这些实施例描述的足够详细以使本领域技术人员能够实现这些实施例,但这些实施例是非限制性的;这样就可以使用其它的实施例,并且在不脱离所描述的实施例的范围的情况下还可以做出变化。比如,流程图中所描述的操作顺序是非限制性的,因此在流程图中阐释并且根据流程图描述的两个或两个以上操作的顺序可以根据若干实施例进行改变。作为另一个例子,在若干实施例中,在流程图中阐释并且根据流程图描述的一个或一个以上操作是可选的,或是可删除的。另外,某些步骤或功能可以添加到所公开的实施例中,或两个以上的步骤顺序被置换。所有这些变化被认为包含在所公开的实施例以及权利要求中。The above technical description may refer to the accompanying drawings, which form a part of the present application, and the description shows an implementation according to the described embodiments in the drawings. Although these embodiments are described in sufficient detail to enable those skilled in the art to implement these embodiments, these embodiments are non-limiting; so that other embodiments can be used without departing from the scope of the described embodiments Changes can also be made under circumstances. For example, the sequence of operations described in the flowchart is non-limiting, so the sequence of two or more operations explained in the flowchart and described according to the flowchart may be changed according to several embodiments. As another example, in several embodiments, one or more operations illustrated in the flowchart and described in accordance with the flowchart are optional or may be deleted. In addition, certain steps or functions may be added to the disclosed embodiments, or two or more steps may be replaced in sequence. All these changes are considered to be included in the disclosed embodiments and claims.
另外,上述技术描述中使用术语以提供所描述的实施例的透彻理解。然而,并不需要过于详细的细节以实现所描述的实施例。因此,实施例的上述描述是为了阐释和描述而呈现的。上述描述中所呈现的实施例以及根据这些实施例所公开的例子是单独提供的,以添加上下文并有助于理解所描述的实施例。上述说明书不用于做到无遗漏或将所描述的实施例限制到本公开的精确形式。根据上述教导,若干修改、选择适用以及变化是可行的。在某些情况下,没有详细描述为人所熟知的处理步骤以避免不必要地影响所描述的实施例。In addition, terminology is used in the above technical description to provide a thorough understanding of the described embodiments. However, no excessively detailed details are required to implement the described embodiments. Therefore, the above description of the embodiments is presented for explanation and description. The embodiments presented in the above description and the examples disclosed according to these embodiments are provided separately to add context and help to understand the described embodiments. The above description is not intended to be without omission or to limit the described embodiments to the precise form of this disclosure. Based on the above teachings, several modifications, choices and changes are possible. In some cases, well-known processing steps are not described in detail to avoid unnecessarily affecting the described embodiments.

Claims (18)

  1. 一种算力的控制方法,其特征在于,包括:A computing power control method, which is characterized by including:
    根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的第一算力值;According to the frequency sweep command issued by the control host, control the target chip to perform a frequency sweep operation to determine the first computing power value of the target chip;
    将所述第一算力值配置到所述目标芯片。The first computing power value is configured to the target chip.
  2. 根据权利要求1所述的方法,其特征在于,在根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的第一算力值之前,所述方法还包括:The method according to claim 1, wherein before controlling the target chip to perform a frequency scan operation according to a frequency sweep command issued by a control host, the method further comprises: :
    通过监听接口监听所述控制主机是否下发扫频命令,所述扫频命令包括扫频标识、扫频类型及扫频范围。Through the monitoring interface, monitor whether the control host issues a frequency sweep command. The frequency sweep command includes a frequency sweep identifier, a frequency sweep type, and a frequency sweep range.
  3. 根据权利要求1所述的方法,其特征在于,在根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的第一算力值之后,所述方法还包括:The method according to claim 1, characterized in that after controlling the target chip to perform a frequency scan operation according to the frequency sweep command issued by the control host, and determining the first computing power value of the target chip, the method further comprises :
    根据所述扫频命令判断扫频类型;Determine the type of frequency sweep according to the frequency sweep command;
    若扫频类型为静态扫频,则将所述第一算力值写入所述目标芯片的存储器EFUSE中。If the frequency sweep type is static frequency sweep, the first computing power value is written into the memory EFUSE of the target chip.
  4. 根据权利要求3所述的方法,其特征在于,若扫频类型为动态扫频,则不将所述第一算力值写入所述目标芯片的EFUSE中。The method according to claim 3, wherein if the frequency sweep type is dynamic frequency sweep, the first computing power value is not written into the EFUSE of the target chip.
  5. 根据权利要求1所述的方法,其特征在于,根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的第一算力值,包括:The method according to claim 1, characterized in that, according to a frequency sweep command issued by the control host, controlling the target chip to perform a frequency sweep operation to determine the first computing power value of the target chip includes:
    按照所述扫频命令中包括的扫频范围,控制所述目标芯片在不同频率下进行加密运算,获得运算结果;According to the frequency sweep range included in the frequency sweep command, controlling the target chip to perform encryption operations at different frequencies to obtain operation results;
    根据各所述运算结果与对应的预设结果,获取所述目标芯片的第一算力值。Obtain the first computing power value of the target chip according to each calculation result and the corresponding preset result.
  6. 根据权利要求5所述的方法,其特征在于,根据各所述运算结果与对应的预设结果,获取所述目标芯片的第一算力值,包括:The method according to claim 5, wherein obtaining the first computing power value of the target chip based on each of the calculation results and the corresponding preset results includes:
    根据各所述运算结果与对应的预设结果,获取所述目标芯片的最大算力值作为所述第一算力值。According to each of the calculation results and the corresponding preset results, the maximum computing power value of the target chip is obtained as the first computing power value.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-6, wherein the method further comprises:
    判断所述目标芯片的EFUSE中是否存储有静态算力值;Determine whether a static computing power value is stored in the EFUSE of the target chip;
    若是,则将所述静态算力值配置到所述目标芯片,以使所述目标芯片以所述静态算力值对应的算力进行运算工作。If yes, the static computing power value is allocated to the target chip, so that the target chip performs computing work with the computing power corresponding to the static computing power value.
  8. 一种算力的控制装置,其特征在于,包括:A computing power control device, characterized in that it includes:
    控制模块,用于根据控制主机下发的扫频命令,控制目标芯片进行扫频运算,确定所述目标芯片的第一算力值;The control module is used to control the target chip to perform the frequency scan operation according to the frequency sweep command issued by the control host to determine the first computing power value of the target chip;
    配置模块,用于将所述第一算力值配置到所述目标芯片。The configuration module is configured to configure the first computing power value to the target chip.
  9. 根据权利要求8所述的装置,其特征在于,还包括:The device according to claim 8, further comprising:
    监听模块,用于通过监听接口监听所述控制主机是否下发扫频命令,所述扫频命令包括扫频标识、扫频类型及扫频范围。The monitoring module is configured to monitor whether the control host issues a frequency sweep command through a monitoring interface, and the frequency sweep command includes a frequency sweep identifier, a frequency sweep type and a frequency sweep range.
  10. 根据权利要求8所述的装置,其特征在于,所述装置还包括:The device according to claim 8, wherein the device further comprises:
    处理模块,用于根据所述扫频命令判断扫频类型;A processing module, used to determine the type of frequency sweep according to the frequency sweep command;
    所述配置模块,还用于若扫频类型为静态扫频,则将所述第一算力值写入所述目标芯片的存储器EFUSE中。The configuration module is further configured to write the first computing power value into the memory EFUSE of the target chip if the frequency sweep type is static frequency sweep.
  11. 根据权利要求10所述的装置,其特征在于,若扫频类型为动态扫频,则不将所述第一算力值写入所述目标芯片的EFUSE中。The apparatus according to claim 10, wherein if the frequency sweep type is dynamic frequency sweep, the first computing power value is not written into the EFUSE of the target chip.
  12. 根据权利要求8所述的装置,其特征在于,所述控制模块,包括:The device according to claim 8, wherein the control module comprises:
    第一控制子模块,用于按照所述扫频命令中包括的扫频范围,控制所述目标芯片在不同频率下进行加密运算,获得运算结果;A first control submodule, configured to control the target chip to perform encryption operations at different frequencies according to the frequency sweep range included in the frequency sweep command to obtain an operation result;
    第二控制子模块,用于根据各所述运算结果与对应的预设结果,获取所述目标芯片的第一算力值。The second control submodule is configured to obtain the first computing power value of the target chip according to each of the calculation results and the corresponding preset results.
  13. 根据权利要求12所述的装置,其特征在于,所述第二控制子模块,具体用于:The device according to claim 12, wherein the second control submodule is specifically used for:
    根据各所述运算结果与对应的预设结果,获取所述目标芯片的最大算力值作为所述第一算力值。According to each of the calculation results and the corresponding preset results, the maximum computing power value of the target chip is obtained as the first computing power value.
  14. 根据权利要求8-13任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 8 to 13, wherein the device further comprises:
    判断模块,用于判断所述目标芯片的EFUSE中是否存储有静态算力值;The judgment module is used to judge whether a static computing power value is stored in the EFUSE of the target chip;
    所述配置模块,还用于若是,则将所述静态算力值配置到所述目标芯片,以使所述目标芯片以所述静态算力值对应的算力进行运算工作。The configuration module is further configured to, if it is, configure the static computing power value to the target chip, so that the target chip performs computing work with the computing power corresponding to the static computing power value.
  15. 一种计算设备,其特征在于,包含权利要求8-14任一项所述的装置。A computing device, characterized by comprising the device according to any one of claims 8-14.
  16. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it includes:
    至少一个处理器;以及At least one processor; and
    与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行权利要求1-7任一项所述的方法。The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, causes the at least one processor to perform the method of any one of claims 1-7 .
  17. 一种计算机可读存储介质,其特征在于,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-7任一项所述的方法。A computer-readable storage medium, characterized in that computer-executable instructions are stored, and the computer-executable instructions are configured to perform the method of any one of claims 1-7.
  18. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-7任一项所述的方法。A computer program product, characterized in that the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer Performing the method of any one of claims 1-7.
PCT/CN2018/119806 2018-12-07 2018-12-07 Computing power control method, apparatus and device, and storage medium WO2020113562A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/119806 WO2020113562A1 (en) 2018-12-07 2018-12-07 Computing power control method, apparatus and device, and storage medium
CN201880098338.1A CN112912743B (en) 2018-12-07 2018-12-07 Calculation force control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/119806 WO2020113562A1 (en) 2018-12-07 2018-12-07 Computing power control method, apparatus and device, and storage medium

Publications (1)

Publication Number Publication Date
WO2020113562A1 true WO2020113562A1 (en) 2020-06-11

Family

ID=70974045

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/119806 WO2020113562A1 (en) 2018-12-07 2018-12-07 Computing power control method, apparatus and device, and storage medium

Country Status (2)

Country Link
CN (1) CN112912743B (en)
WO (1) WO2020113562A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084029A (en) * 2020-09-08 2020-12-15 周旻 Distributed computing system and operation method thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116070240B (en) * 2023-02-03 2024-03-08 广州万协通信息技术有限公司 Data encryption processing method and device of multi-chip calling mechanism

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101839962A (en) * 2010-04-23 2010-09-22 北京龙芯中科技术服务中心有限公司 Method for sieving frequency of processor chip
CN104320087A (en) * 2014-10-13 2015-01-28 中国电子科技集团公司第四十一研究所 High-speed digital frequency scanning method
CN104597393A (en) * 2015-01-29 2015-05-06 华为技术有限公司 Determination method and device for highest working frequency of chip
CN105680800A (en) * 2014-11-17 2016-06-15 苏州普源精电科技有限公司 Signal generator with frequency sweeping function
US20160231379A1 (en) * 2013-01-09 2016-08-11 International Business Machines Corporation Chip performance monitoring system and method
CN107872283A (en) * 2016-09-28 2018-04-03 中兴通讯股份有限公司 A kind of frequency sweeping method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8533861B2 (en) * 2011-08-15 2013-09-10 The Board Of Trustees Of The University Of Illinois Magnetic actuation and thermal cantilevers for temperature and frequency dependent atomic force microscopy
CN103246340A (en) * 2012-02-06 2013-08-14 索尼公司 Device and method for dynamically adjusting frequency of central processing unit
CN103647525B (en) * 2013-12-19 2016-06-29 中国电子科技集团公司第四十一研究所 A kind of drive circuit improving YIG-filter scanning accuracy and driving method
CN105513648B (en) * 2016-01-11 2018-07-03 福州瑞芯微电子股份有限公司 The adaptive method and device for generating the configuration of chip optimum performance
CN206893079U (en) * 2017-05-26 2018-01-16 高飞 A kind of signal monitoring node and system
CN108519806A (en) * 2018-04-26 2018-09-11 北京比特大陆科技有限公司 A kind of chip controls method, apparatus, computer equipment and computer storage media
CN108761363B (en) * 2018-05-31 2021-12-21 上海东软医疗科技有限公司 Frequency sweep signal output method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101839962A (en) * 2010-04-23 2010-09-22 北京龙芯中科技术服务中心有限公司 Method for sieving frequency of processor chip
US20160231379A1 (en) * 2013-01-09 2016-08-11 International Business Machines Corporation Chip performance monitoring system and method
CN104320087A (en) * 2014-10-13 2015-01-28 中国电子科技集团公司第四十一研究所 High-speed digital frequency scanning method
CN105680800A (en) * 2014-11-17 2016-06-15 苏州普源精电科技有限公司 Signal generator with frequency sweeping function
CN104597393A (en) * 2015-01-29 2015-05-06 华为技术有限公司 Determination method and device for highest working frequency of chip
CN107872283A (en) * 2016-09-28 2018-04-03 中兴通讯股份有限公司 A kind of frequency sweeping method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084029A (en) * 2020-09-08 2020-12-15 周旻 Distributed computing system and operation method thereof

Also Published As

Publication number Publication date
CN112912743B (en) 2023-10-17
CN112912743A (en) 2021-06-04

Similar Documents

Publication Publication Date Title
US11847470B2 (en) Request processing method, system on chip, and public cloud management component
US11954204B2 (en) Artificial intelligence AI processing method and AI processing apparatus
EP3852335A1 (en) Method and system for modifying blockchain network configuration
CN101650660B (en) Booting a computer system from central storage
JP2016058083A (en) System and method for managing plurality of bios default setting
US8612741B2 (en) System and method for configuring plural software profiles
CN106201563A (en) The method and apparatus that the collocation method of start-up parameter and device, mainboard start
US20230221784A1 (en) System and method for power state enforced subscription management
US20230359372A1 (en) Mirrored Memory Configuration Method and Apparatus, and Computer Storage Medium
EP3709199A1 (en) Container security policy handling method and related device
US11861577B2 (en) System and method for distributed enforcement of configuration limitations
WO2020113562A1 (en) Computing power control method, apparatus and device, and storage medium
US20230221997A1 (en) System and method for subscription management using composed systems
US11321109B2 (en) Container engine for selecting driver based on container metadata
WO2020113478A1 (en) Address information processing method and apparatus, electronic device, and storage medium
CN112667442B (en) Control method, device and equipment based on nonvolatile memory device starting system
WO2019237587A1 (en) Script execution method, server management system and storage medium
US20190332262A1 (en) Information Handling System with Reduced Reset During Dual In-Line Memory Module Goal Reconfiguration
US11119650B2 (en) Information handling system with a user defined touch area and user defined display area on a horizontal work surface
US20160062926A1 (en) Storage control devices and method therefor to invoke address thereof
CN112463228A (en) Storage pool hybrid deployment method and device
CN107704399B (en) Method and device for storing data
US11748110B2 (en) Server with setup menu for the bios settings
CN117687703B (en) Method, device and system for starting server, storage medium and electronic equipment
CN116089020B (en) Virtual machine operation method, capacity expansion method and capacity expansion system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18942301

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18942301

Country of ref document: EP

Kind code of ref document: A1