A Char type condition judgment method and system based on heterogeneous architecture

The Char type conditional judgment method on a heterogeneous architecture using an accelerator card addresses inefficiencies in CPU-based solutions by enabling parallel processing and reducing CPU load, improving server performance and scalability for large data sets.

CN117234707BActive Publication Date: 2024-12-03YUSUR TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311110518.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-30
Publication Date
2024-12-03
Estimated Expiration
2043-08-30

AI Technical Summary

Technical Problem

Existing CPU-based solutions for Char type conditional judgment in databases are inefficient for large data sets, leading to high CPU usage and reduced server performance, limiting the scalability and concurrent processing capabilities.

Method used

Implementing Char type conditional judgment on a heterogeneous architecture using an accelerator card with a storage unit and acceleration core, where the server sends data and parameters to the accelerator card for processing, enabling parallel processing and unloading heavy computational tasks from the CPU.

Benefits of technology

The heterogeneous architecture significantly improves data type conversion capability and CPU performance by allowing parallel processing and reducing CPU occupancy, thereby enhancing server efficiency and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117234707B_ABST
    Figure CN117234707B_ABST
Patent Text Reader

Abstract

The present invention provides a Char type conditional judgment method and system based on heterogeneous architecture, including: the CPU of the server sends original data and parameters to the acceleration card, stores the original data and parameters in the acceleration card storage unit, and starts the acceleration core; the acceleration core reads and parses the parameters and performs initialization operations; the acceleration core reads the original data, and performs conditional judgment on the original data according to the parameters to obtain result data; the result data is stored in the storage unit and sent to the server CPU to realize the conditional judgment function of the char type under the heterogeneous architecture. The Char type conditional judgment method based on heterogeneous architecture provided by the present invention designs the conditional judgment function of the Char type in the heterogeneous system, greatly improves the data type conversion capability, offloads the task to the heterogeneous system for processing, reduces the CPU occupancy rate, and improves the CPU performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a Char type condition judgment method and system based on a heterogeneous architecture. Background Art

[0002] With the development of technology, the performance of disk read and write and network bandwidth has been continuously improved. The performance bottleneck in the database field has shifted to computing power. The existing CPU-based solutions cannot provide sufficient computing power to support the existing big data business scale. Therefore, providing solutions and technical architectures with stronger computing power is an urgent problem to be solved.

[0003] The currently commonly used technical solution is the conditional judgment function applied to the database, which mainly implements the conditional judgment of the Char type. It needs to rely on the CPU to execute the database function to implement the judgment process. For example, the "filter" function is used in the database to realize the conversion of data types. Therefore, the existing technical solution has the following obvious disadvantages:

[0004] 1. The current database data type conversion can only be applied to CPU scenarios, that is, the conditional judgment work for the Char type can only be implemented on the CPU.

[0005] 2. The CPU instruction set architecture cannot efficiently and quickly convert large amounts of data.

[0006] 3. During the condition judgment process, a very high CPU usage rate will be generated, making the host server unable to perform other tasks, server performance will be reduced, and the overall system efficiency will be low. Summary of the invention

[0007] In view of this, an embodiment of the present invention provides a Char type conditional judgment method and system based on a heterogeneous architecture to eliminate or improve one or more defects existing in the prior art, and solve the problem that the existing Char type conditional judgment scheme can only be implemented on the CPU and cannot support the scale of big data business, and the high CPU occupancy rate during the conditional judgment process, thereby limiting the server performance and concurrent processing capabilities.

[0008] On the one hand, the present invention provides a method for determining a Char type condition based on a heterogeneous architecture, the method being executed in an accelerator card, the accelerator card being interconnected with a server, the accelerator card comprising a storage unit and an acceleration core, the method comprising the following steps:

[0009] receiving original data and parameters sent by the server, and storing the original data and the parameters in the storage unit;

[0010] The acceleration core reads and analyzes the parameters to perform initialization operations; the acceleration core reads the original data and performs conditional judgment on the original data according to the parameters to obtain result data;

[0011] The result data is stored in the storage unit and sent to the server to implement the conditional judgment function of the char type under the heterogeneous architecture.

[0012] In some embodiments of the present invention, the parameters are used to mark the conditional value, conditional operator, number of judgment lines, and whether the original data has a prefix.

[0013] In some embodiments of the present invention, the conditional operators include but are not limited to equal to, not equal to, greater than, greater than or equal to, less than, and less than or equal to; the number of judgment rows is used to determine the number of times the conditional judgment needs to be performed.

[0014] In some embodiments of the present invention, the acceleration core reads the original data, further comprising:

[0015] When the original data does not have a prefix, read the data of a preset unit number of bits from the original data according to the first address and the data length; shift the first address backward by the length of the data length, and if the first address after the shift is greater than the preset unit number of bits, read the next data of the preset unit number of bits, and shift the first address after the shift forward by the length of the preset unit number of bits;

[0016] When the original data carries a prefix, data of a preset unit number of bits is read from the original data according to the first address, the data length and the prefix length; the first address is offset backward by the sum of the data length and the prefix length; if the offset first address is greater than the preset unit number of bits, the next preset unit number of bits of data is read, and the offset first address is offset forward by the length of the preset unit number of bits.

[0017] In some embodiments of the present invention, the data and conditional values ​​of the preset unit digits are evenly divided into multiple groups, and a greater than, less than, or equal to conditional judgment is performed on each group to achieve parallel processing.

[0018] In some embodiments of the present invention, the judgment values ​​are stored in a greater than result storage unit, a less than result storage unit, and an equal to result storage unit respectively, the judgment results of the greater than result storage unit, the less than result storage unit, and the equal to result storage unit are compared with each other, the comprehensive result value is extracted, and the result data is extracted from a specific position of the comprehensive result value according to the corresponding conditional operator.

[0019] In some embodiments of the present invention, a plurality of result data are reassembled into the preset unit bit number as output data; and the output data is written into the storage unit of the acceleration card in a burst manner.

[0020] On the other hand, the present invention provides a Char type condition judgment system based on a heterogeneous architecture, the system comprising:

[0021] Server, used to send raw data and parameters to the accelerator card;

[0022] An acceleration card, the acceleration card comprising an acceleration core and a storage unit; the acceleration core is used to perform conditional judgment on the original data according to the parameters to obtain result data; the storage unit is used to store the original data, the parameters and the result data, and transmit the result data back to the server.

[0023] In some embodiments of the present invention, the server and the acceleration card are connected to each other via a peripheral device interconnection expansion bus.

[0024] On the other hand, the present invention also provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of the Char type conditional judgment method based on a heterogeneous architecture as described in any one of the above items are implemented.

[0025] The beneficial effects of the present invention are at least:

[0026] The present invention provides a method and system for conditional judgment of Char type based on heterogeneous architecture, including: the CPU of the server sends original data and parameters to the acceleration card, stores the original data and parameters in the storage unit of the acceleration card, and starts the acceleration core; the acceleration core reads and parses the parameters and performs initialization operation; the acceleration core reads the original data, and performs conditional judgment on the original data according to the parameters to obtain result data; the result data is stored in the storage unit and sent to the server CPU to realize the conditional judgment function of the char type under the heterogeneous architecture. The method for conditional judgment of Char type based on heterogeneous architecture provided by the present invention designs the conditional judgment function of Char type in the heterogeneous system, realizes parallel processing, and greatly improves the data type conversion capability; further, the conditional judgment task is unloaded to the heterogeneous system for processing, the CPU only needs to send control instructions, and no longer needs to perform heavy computing tasks, releases the CPU occupancy rate, provides space for the CPU to process other tasks, and greatly improves the CPU performance.

[0027] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention may be achieved and obtained by the structures specifically indicated in the specification and the accompanying drawings.

[0028] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of the present application, and do not constitute a limitation of the present invention. In the drawings:

[0030] Figure 1 The figure is a schematic diagram of the steps of a Char type conditional judgment method based on a heterogeneous architecture in one embodiment of the present invention.

[0031] Figure 2 The figure is a flow chart of a method for determining a condition of a Char type based on a heterogeneous architecture in one embodiment of the present invention.

[0032] Figure 3 It is a structural diagram of a Char type condition judgment system based on a heterogeneous architecture in one embodiment of the present invention.

[0033] Figure 4 The present invention is a schematic diagram of a Char type conditional judgment system based on a heterogeneous architecture in an embodiment of the present invention to implement Char type conditional judgment. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0035] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.

[0036] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.

[0037] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection involving an intermediate.

[0038] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.

[0039] It should be emphasized here that the step marks mentioned below are not intended to limit the order of the steps, but it should be understood that the steps can be executed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be executed simultaneously.

[0040] In order to solve the problem that the existing technical solutions can only be implemented on the CPU and cannot support the scale of big data business, and the high CPU occupancy rate in the conditional judgment process, thereby limiting the server performance and concurrent processing capabilities, the present invention provides a Char type conditional judgment method based on a heterogeneous architecture, the method is executed in an acceleration card, wherein the acceleration card and the server are interconnected and can perform data transmission, and the acceleration card also includes a storage unit and an acceleration core, such as Figure 1 As shown, the method includes the following steps S101 to S105:

[0041] Step S101: receiving original data and parameters sent by a server, and storing the original data and parameters in a storage unit.

[0042] Step S102: the acceleration core reads and parses parameters and performs initialization operations; the acceleration core reads original data and performs conditional judgment on the original data according to the parameters to obtain result data.

[0043] Step S103: store the result data in a storage unit and send it to a server to implement a conditional judgment function of the char type under a heterogeneous architecture.

[0044] like Figure 2 , which is a flow chart of a Char type conditional judgment method based on a heterogeneous architecture.

[0045] In step S101, the acceleration card is connected to the host server. Exemplarily, the acceleration card and the server are connected to each other through a peripheral component interconnect expansion bus (Peripheral Component Interconnect Express, PCIE), and data can be transmitted through PCIE.

[0046] The original data and parameters in the server CPU are transmitted to the accelerator card through PCIE, stored in the storage unit of the accelerator card, and the acceleration core is started. For example, the storage unit uses DDR, which refers to double data rate synchronous dynamic random access memory, a common type of computer memory used for temporary data storage.

[0047] The acceleration core is a functional module of the acceleration card, which is used to implement the conditional judgment function of the Char type in the present invention. The Char type is a data type that occupies 1 byte and can represent a character.

[0048] In some embodiments, the parameters are used to mark the conditional value of the original data, the conditional operator, the number of judgment lines, and whether there is a prefix and other information, specifically:

[0049] Whether the original data has a prefix: When Spark fills the original data to a fixed length, the acceleration core supports two Char type formats: "data" and "size+data". The conditional judgment methods for filling to a fixed length and two Char types are described in detail below. Spark is an open source distributed computing framework that can efficiently process large-scale data sets and has good scalability and fault tolerance.

[0050] Conditional operators: including but not limited to six conditional operators: equal to "==", not equal to "!=", greater than ">", greater than or equal to ">=", less than "<", less than or equal to "<=". The acceleration core of the present invention can support the above six conditional operators.

[0051] “==” operator: equal. Used to check whether two values ​​are equal. If the two values ​​are equal, it returns true (True), otherwise it returns false (False).

[0052] "!=" Operator: Not equal. Used to check whether two values ​​are not equal. If the two values ​​are not equal, it returns True, otherwise it returns False.

[0053] ">" operator: greater than. It is used to compare the size relationship between two values, checking whether the value on the left is greater than the value on the right. If the value on the left is greater than the value on the right, it returns True, otherwise it returns False.

[0054] ">=" Operator: greater than or equal to. It is used to compare the size relationship between two values, checking whether the value on the left is greater than or equal to the value on the right. If the value on the left is greater than or equal to the value on the right, it returns True, otherwise it returns False.

[0055] "<" operator: less than. It is used to compare the size relationship between two values, checking whether the value on the left is less than the value on the right. If the value on the left is less than the value on the right, it returns true (True), otherwise it returns false (False).

[0056] "<=" operator: less than or equal to. It is used to compare the size relationship between two values, checking whether the value on the left is less than or equal to the value on the right. If the value on the left is less than or equal to the value on the right, it returns True, otherwise it returns False.

[0057] Number of judgment rows: used to determine the number of times conditional judgment is required.

[0058] In step S102, the acceleration core first reads parameters from the storage unit, parses the information contained therein, and performs initialization operations accordingly. After the initialization is completed, the original data is read from the storage unit.

[0059] In some embodiments, before step S102 , it is first determined whether the original data is less than a preset total number of rows.

[0060] In some embodiments, the acceleration core pre-sets the number of unit bits when reading the original data. For example, the number of unit bits is 512 bits. Since a 512-bit may not contain a complete Char type data, the last 512 bits of data need to be loaded into the acceleration core so that the complete Char type data can be loaded.

[0061] Depending on whether the original data has a prefix, there are two cases for further explanation. For example, the unit digit mentioned in the above example is 512 bits:

[0062] When the original data does not have a prefix, read 512 bits of data from the original data according to the first address write_addr and the data length btye_length; offset the first address write_addr backward by the length of the data length btye_length. If the offset first address write_addr is greater than the unit bit number 512 bits, read the next 512 bits of data, and offset the offset first address write_addr forward by the length of 512 bits.

[0063] When the original data has a prefix, read 512 bits of data from the original data according to the first address write_addr, the data length btye_length, and the prefix length 4 (btye_length+4); shift the first address write_addr backward by the sum of the data length and the prefix length, that is, btye_length+4. If the shifted first address write_addr is greater than 512 bits, read the next 512 bits of data, and shift the shifted first address write_addr forward by 512 bits.

[0064] In some embodiments, the data and conditional values ​​of the preset unit digits are evenly divided into multiple groups, and the filter condition is used to perform conditional judgment on each group to achieve parallel processing. In the present invention, greater than, less than, and equal to are used to perform conditional judgment on each group. Specifically, the unit digit of 512 bits mentioned in the above example is used as an example:

[0065] In order to enable the conditional judgment to be executed in parallel, the 512-bit data is divided into multiple groups, illustratively, such as 64 groups, and the 512-bit conditional value is also divided into 64 groups, and the conditional judgment of greater than, less than, and equal to is performed on each group.

[0066] In some embodiments, the judgment value obtained by the above comparison is stored in three 64-bit storage units, namely, a greater than result storage unit (gt_result), a less than result storage unit (lt_result), and an equal to result storage unit (eq_result). The judgment results of gt_result, lt_result, and eq_result are compared with each other, the comprehensive result value is extracted, and the result data is extracted from a specific position of the comprehensive result value according to the corresponding conditional operator. For example, the judgment results of gt_result, lt_result, and eq_result are compared with each other, and an 8-bit comprehensive result value (res value) is extracted, and 1-bit result data is extracted from a specific position of the comprehensive result value res according to the corresponding conditional operator comp_mode.

[0067] Among them, gt_result, lt_result, and eq_result can be understood as variables. Data is saved and managed by using variables. These variables can be storage units in the memory for storing specific types of data.

[0068] In step S103, in some embodiments, multiple result data are reassembled into 512 bits as the final output data. The output data is written to the storage unit of the acceleration card in a burst manner. Among them, burst is a data transmission mode, which is particularly suitable for data transmission between a memory (such as DDR) and other components. Burst transmission is to continuously store a series of data in a memory or read it from a memory without performing a separate read or write operation each time, and multiple data items can be transmitted in one access to improve data transmission efficiency and reduce transmission delay and communication overhead.

[0069] The final output data is sent to the server CPU, which realizes the conditional judgment function of the char type under the heterogeneous architecture.

[0070] As shown in Table 1, this is an example of the function of the acceleration core in the present invention, wherein, assuming that the prefix size is 5, the value of the original data is "a, b, c, d", the conditional values ​​are listed as "a, b, c, d" respectively, and the conditional operators are equal to "==", not equal to "!=", greater than ">", greater than or equal to ">=", less than "<", and less than or equal to "<=", respectively, and the result data is traversed.

[0071] Table 1

[0072]

[0073]

[0074] The present invention also provides a Char type condition judgment system based on a heterogeneous architecture, such as Figure 3 As shown, it includes a server and an accelerator card, specifically:

[0075] The server also includes a CPU and memory for sending raw data and parameters to the accelerator card.

[0076] The accelerator card also includes an acceleration core and a storage unit. For example, the storage unit uses a DDR memory. The acceleration core is a functional module for performing conditional judgment on the original data according to the parameters to obtain the result data. The storage unit is used to store the original data, parameters and result data, and transmit the result data back to the server.

[0077] In some embodiments, the server and the acceleration card are connected to each other via a peripheral component interconnect expansion bus (Peripheral Component Interconnect Express, PCIE).

[0078] like Figure 4As shown, the original data A and parameter C are transmitted from the CPU of the server to the acceleration card through PCIE, and the Char type conditional judgment is performed in the acceleration core to obtain the result data B, which is stored in the storage unit DDR and then transmitted back to the CPU of the server through PCIE. Therefore, the Char type conditional judgment system based on heterogeneous architecture provided by the present invention can well realize the char type conditional judgment function under heterogeneous architecture.

[0079] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of a Char type conditional judgment method based on a heterogeneous architecture are implemented.

[0080] Corresponding to the above method, the present invention also provides a device, which includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, the processor is used to execute the computer instructions stored in the memory, and when the computer instructions are executed by the processor, the device implements the steps of the method described above.

[0081] The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned edge computing server deployment method are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.

[0082] In summary, the present invention provides a Char type conditional judgment method and system based on heterogeneous architecture, including: the CPU of the server sends original data and parameters to the acceleration card, stores the original data and parameters in the acceleration card storage unit, and starts the acceleration core; the acceleration core reads and parses the parameters, performs initialization operations; the acceleration core reads the original data, and performs conditional judgment on the original data according to the parameters to obtain result data; the result data is stored in the storage unit and sent to the server CPU to realize the conditional judgment function of the char type under the heterogeneous architecture. The Char type conditional judgment method based on heterogeneous architecture provided by the present invention designs the conditional judgment function of the Char type in the heterogeneous system, realizes parallel processing, and greatly improves the data type conversion capability; further, the conditional judgment task is unloaded to the heterogeneous system for processing, and the CPU only needs to send control instructions, and no longer needs to perform heavy computing tasks, releasing the CPU occupancy rate, providing space for the CPU to process other tasks, and greatly improving the CPU performance.

[0083] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.

[0084] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0085] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.

[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A Char type condition judgment method based on heterogeneous architecture, characterized in that: The method is executed in an accelerator card, the accelerator card is interconnected with a server, the accelerator card includes a storage unit and an acceleration core, and the method includes the following steps: Receive the original data sent by the server and parameters for marking the original data condition value, condition operator, judgment row number and whether it has a prefix, and store the original data and the parameters in the storage unit; wherein the condition operator includes but is not limited to equal to, not equal to, greater than, greater than or equal to, less than, and less than or equal to; the judgment row number is used to determine the number of times the condition judgment needs to be performed; The acceleration core reads and parses the parameters and performs initialization operation; The acceleration core reads the original data and performs conditional judgment on the original data according to the parameters. When the original data does not have a prefix, the data of a preset unit number of bits is read from the original data according to the first address and the data length; the first address is offset backward by the length of the data length. If the offset first address is greater than the preset unit number of bits, the next data of the preset unit number of bits is read, and the offset first address is offset forward by the length of the preset unit number of bits; when the original data has a prefix, the data of a preset unit number of bits is read from the original data according to the first address, the data length and the prefix length; the first address is offset backward by the length of the data length and the prefix length. degree and, if the offset first address is greater than the preset unit number of bits, read the next data of the preset unit number of bits, and offset the offset first address forward by the length of the preset unit number of bits; divide the data of the preset unit number of bits and the conditional value into multiple groups on average, and perform greater than, less than, and equal to conditional judgments on each group to achieve parallel processing; store the judgment values ​​obtained in the greater than result storage unit, the less than result storage unit, and the equal to result storage unit respectively, compare the judgment results of the greater than result storage unit, the less than result storage unit, and the equal to result storage unit with each other, extract the comprehensive result value, and extract the result data from the specific position of the comprehensive result value according to the corresponding conditional operator; The result data is stored in the storage unit and sent to the server to implement the conditional judgment function of the char type under the heterogeneous architecture.

2. The method for determining the Char type condition based on heterogeneous architecture according to claim 1, characterized in that: The plurality of result data are reassembled into the preset unit bit number as output data; and the output data is written into the storage unit of the acceleration card in a burst manner.

3. A Char type condition judgment system based on heterogeneous architecture, characterized in that: The system comprises: Server, used to send raw data and parameters to the accelerator card; An acceleration card, the acceleration card comprising an acceleration core and a storage unit; the acceleration core is used to read the original data and perform conditional judgment on the original data according to the parameters. When the original data does not have a prefix, the data of a preset unit number of bits is read from the original data according to the first address and the data length; the first address is offset backward by the length of the data length. If the offset first address is greater than the preset unit number of bits, the next data of the preset unit number of bits is read, and the offset first address is offset forward by the length of the preset unit number of bits; when the original data has a prefix, the data of a preset unit number of bits is read from the original data according to the first address, the data length and the prefix length; the first address is offset backward by the sum of the data length and the prefix length. If the offset first address is greater than When the number of bits is greater than the preset unit number, the data of the next preset unit number is read, and the offset first address is offset forward by the length of the preset unit number; the data of the preset unit number and the conditional value are evenly divided into multiple groups, and each group is subjected to conditional judgment of greater than, less than, and equal to, so as to realize parallel processing; the judgment values ​​obtained by the judgment are correspondingly stored in the greater than result storage unit, the less than result storage unit, and the equal to result storage unit, and the judgment results of the greater than result storage unit, the less than result storage unit, and the equal to result storage unit are compared with each other to extract the comprehensive result value, and the result data is extracted from the specific position of the comprehensive result value according to the corresponding conditional operator; the storage unit is used to store the original data, the parameters, and the result data, and transmit the result data back to the server.

4. The Char type condition judgment system based on heterogeneous architecture according to claim 3 is characterized in that: The server and the acceleration card are connected to each other via a peripheral device interconnection expansion bus.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • Data processing method, related component and acceleration processor

    CN114880346A