A data stream soft error detection method based on SIMD vectorization

SIMD vectorization technology solves the problem of low redundant execution efficiency in data flow soft error detection methods, achieves efficient error detection, reduces overhead, flexibly protects important variables, and improves program performance.

CN114510427BActive Publication Date: 2024-09-13NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210175150.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-24
Publication Date
2024-09-13
Estimated Expiration
2042-02-24

AI Technical Summary

Technical Problem

Existing data flow soft error detection methods have performance overhead problems caused by redundant execution, and it is difficult to reduce obvious redundant execution overhead while ensuring a high error detection rate.

Method used

Using a data stream soft error detection method based on SIMD vectorization, through single instruction stream and multiple data stream parallelism, the original code and redundant code are converted into efficient SIMD codes, and a reinforced program with error detection capabilities is generated, using data and Instruction vectorization method generates error detection code according to the reinforcement strategy to implement error detection.

Benefits of technology

It improves the efficiency of software redundancy methods, reduces redundant execution overhead, improves program performance, selectively vectorizes important variables to protect important variables, avoids space overhead, and achieves efficient detection of soft errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114510427B
    Figure CN114510427B
Patent Text Reader

Abstract

The present invention discloses a data flow soft error detection method based on SIMD vectorization. The method comprises the following steps: compiling a source program into an intermediate code, constructing a control flow graph and analyzing the data flow instruction dependency to obtain an instruction dependency order; applying a corresponding data vectorization method to the data, vectorizing the original data and redundant data to obtain vector data; applying a corresponding instruction vectorization method to the instruction to obtain a vector instruction; applying a corresponding checkpoint rule according to the checkpoint in the reinforcement strategy to generate an error detection code. The main idea of ​​the method proposed in the present invention is to vectorize the program according to the data and instruction method to address the problem of low efficiency of redundantly executed data flow algorithms, improve program performance by utilizing hardware SIMD data parallelism, generate an error detection code at the corresponding position according to the checkpoint rule, and realize an automatic error detection function, which has the advantage that the existing method generally cannot detect soft errors of components such as cache.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of software reliability and trusted software, in particular to a data stream soft error detection method based on SIMD vectorization. Background Art

[0002] Transient failures of computer hardware caused by cosmic high-energy particle radiation can lead to soft errors. For example, alpha particles and high-energy neutrons have a short duration of impact, but they can cause PN junction flipping, thereby causing bit flipping of storage elements or interrupting abnormalities in combinational logic circuits. This phenomenon is called single event upset (SEU). This may affect the output of the application or even crash the computer system. SRAM cells working in a radiation environment are prone to soft errors. Currently, technologies such as redundant circuit design and error correcting code (ECC) have been used to improve their reliability. With the increase in integration, the reduction in processor size and the reduction in power supply voltage, the development of technology has provided processors with better performance and energy efficiency, but this has made computer systems more susceptible to soft errors, posing a major challenge to reliability.

[0003] There are many hardware and software detection methods for soft errors. For example, technologies such as cache and large SRAM arrays have high soft error rates (SER), which have been solved by circuit technology and the use of checksums. Existing studies have shown that the soft error rate (SER) of SRAM remains roughly the same over several generations of technology, generally around 10 -4 FIT / bit. Combinational logic circuits are more resistant to transient faults caused by error masking. Even if there are soft errors, the output value of the logic circuit may not change, and the circuit can "recover" from the error by itself before the result is locked. Hardware-based solutions are very effective in terms of performance, usually with an overhead of 5% to 10%. However, hardware-based methods not only increase costs, but also cannot be foolproof. In order to overcome these shortcomings, software-implemented hardware fault tolerance (SIHFT) can be used to replace or enhance the hardware fault tolerance effect. Another benefit of this method is that it can be applied selectively. For example, for all running programs of a system, interrupt control programs and service-providing applications are more important. By using SIHFT, non-important application reinforcement can be ignored, and only important applications can be soft-reinforced to improve program operation efficiency and the flexibility of reinforcement methods.

[0004] Soft errors can have different effects on computer systems, such as system crashes, timeouts, and SDC (Silent Data Corruption). The SDC problem has always been one of the key research areas in the field of reliability. When SDC occurs, the program executes normally, but the output result is incorrect. Existing methods mainly use software methods to protect instructions with a high probability of SDC, thereby reducing SDC errors in the entire system.

[0005] EDDI (Error Detection by Duplicated Instructions) is a typical data flow error detection method. It copies all instructions in the basic block of the program and inserts comparison instructions before the storage instruction and branch instruction to compare the value of the original instruction and the copied instruction. However, this method has a huge overhead. Reis, Eduardo, Thati, Ko et al. proposed an improved method for EDDI, improved the overhead problem caused by the full redundant replication method, and designed a selective instruction replication and selective check instruction insertion mechanism. Gu, Yang et al. proposed a selective protection method, which allows the instructions in the program that are prone to SDC to be selectively protected within the specified overhead range. First, the static and dynamic features of the program instructions are extracted, and the SDC vulnerability of the program instructions is predicted by establishing regression tree and random forest prediction models. Then, the SDC vulnerability of the instructions is used to select important instructions for redundancy, and the redundant overhead is reduced while ensuring a high error detection rate. However, this method does not reduce the obvious redundant execution overhead for a higher detection rate. In summary, although the existing methods have a good performance in terms of error detection rate, there is still a huge performance overhead problem caused by redundancy that needs to be solved. Summary of the invention

[0006] The purpose of the present invention is to provide a data stream soft error detection method based on SIMD vectorization, which utilizes the parallelism of single instruction stream and multiple data streams to improve the efficiency of the software redundancy method, converts the original code and redundant code into high-efficiency SIMD code, and generates a reinforced program with error detection capability.

[0007] The technical solution to achieve the purpose of the present invention is: a data stream soft error detection method based on SIMD vectorization, comprising the following steps:

[0008] Step 1: Given a source program, the compiler compiles it into intermediate code, builds a control flow graph, analyzes the data flow instruction dependency, and obtains the order of instructions;

[0009] Step 2: According to the reinforcement strategy, for important variables in the program, determine the type of variable data, and apply the corresponding data vectorization method to these data to obtain vector data;

[0010] Step 3, processing each instruction in sequence according to the instruction dependency obtained in step 1, applying a corresponding instruction vectorization method thereto, and obtaining a vector instruction;

[0011] Step 4: Apply the corresponding checkpoint rules according to the checkpoints in the reinforcement strategy, generate error detection codes, and compare the original data and redundant data in the vector to achieve error detection.

[0012] A data stream soft error detection system based on SIMD vectorization, the system comprising:

[0013] The first module is used to compile a source program into intermediate code by the compiler, build a control flow graph and analyze the data flow instruction dependency to obtain the instruction sequence;

[0014] The second module is used to determine the type of variable data for important variables in the program according to the reinforcement strategy, and apply the corresponding data vectorization method to these data to obtain vector data;

[0015] A third module is used to process each instruction in sequence according to the instruction dependency order, and apply a corresponding instruction vectorization method thereto to obtain a vector instruction;

[0016] The fourth module is used to apply the corresponding checkpoint rules according to the checkpoints in the reinforcement strategy, generate error detection codes, and compare the original data and redundant data existing in the vector to achieve error detection.

[0017] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0018] Step 1: Given a source program, the compiler compiles it into intermediate code, builds a control flow graph, analyzes the data flow instruction dependency, and obtains the order of instructions;

[0019] Step 2: According to the reinforcement strategy, for important variables in the program, determine the type of variable data, and apply the corresponding data vectorization method to these data to obtain vector data;

[0020] Step 3, processing each instruction in sequence according to the instruction dependency obtained in step 1, applying a corresponding instruction vectorization method thereto, and obtaining a vector instruction;

[0021] Step 4: Apply the corresponding checkpoint rules according to the checkpoints in the reinforcement strategy, generate error detection codes, and compare the original data and redundant data in the vector to achieve error detection.

[0022] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0023] Step 1: Given a source program, the compiler compiles it into intermediate code, builds a control flow graph, analyzes the data flow instruction dependency, and obtains the order of instructions;

[0024] Step 2: According to the reinforcement strategy, for important variables in the program, determine the type of variable data, and apply the corresponding data vectorization method to these data to obtain vector data;

[0025] Step 3, processing each instruction in sequence according to the instruction dependency obtained in step 1, applying a corresponding instruction vectorization method thereto, and obtaining a vector instruction;

[0026] Step 4: Apply the corresponding checkpoint rules according to the checkpoints in the reinforcement strategy, generate error detection codes, and compare the original data and redundant data in the vector to achieve error detection.

[0027] Compared with the prior art, the present invention has the following significant advantages:

[0028] (1) To address the inefficiency of the soft error detection method for redundantly executed data streams, a data and instruction vectorization method was proposed to improve program performance by utilizing hardware SIMD data parallelism. The program was vectorized and error detection codes were generated at the corresponding locations according to the checkpoint rules to implement the error detection function.

[0029] (2) Vectorized data are variables in the program. Important variables can be selectively vectorized for protection, thereby avoiding the problem of large space overhead caused by vectorizing all variable data.

[0030] (3) After the variable data is vectorized, there are vector data and scalar data in the program. The instruction vectorization method will generate vector instructions for operating these data to complete the correct operation of the data.

[0031] The present invention is further described in detail below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is a framework diagram of the data stream soft error detection algorithm based on SIMD vectorization.

[0033] Figure 2 The flowchart of the data stream soft error detection algorithm based on SIMD vectorization. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0035] It should be noted that in the embodiments of the present invention, there are descriptions involving "first", "second", etc., and the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0036] In one embodiment, in combination Figure 1 and Figure 2 , provides a data stream soft error detection method based on SIMD vectorization, which specifically includes the following steps:

[0037] Step 1: Given a source program, the compiler compiles it into intermediate code, builds a control flow graph, analyzes the data flow instruction dependency, and obtains the order of instructions;

[0038] Step 2: According to the reinforcement strategy, for important variables in the program, determine the type of variable data, apply the corresponding data vectorization method to these data, and obtain vector data;

[0039] Step 3, processing each instruction in sequence according to the instruction dependency obtained in step 1, applying a corresponding instruction vectorization method thereto, and obtaining a vector instruction;

[0040] Step 4: Apply the corresponding checkpoint rules according to the checkpoints in the reinforcement strategy, generate error detection code, and compare the original data and redundant data in the vector to achieve error detection function;

[0041] A more detailed description is given below.

[0042] 1. Data stream soft error detection method based on SIMD vectorization

[0043] The present invention proposes a data flow soft error detection method based on SIMD vectorization, which is used to reinforce programs in complex environments and detect soft errors caused by single particle upsets. The method includes four steps: first, compile the source program into intermediate code, and construct a control flow graph and data flow instruction dependency analysis to obtain instructions in sequence; second, according to the reinforcement strategy, protect important data, that is, variables in the program, determine the type of variable data, apply corresponding data vectorization methods to these data, and obtain vector data; then, process each instruction in turn according to the obtained instruction dependency sequence, apply corresponding instruction vectorization methods to them, and obtain vector instructions; finally, apply corresponding checkpoint rules according to the checkpoints in the reinforcement strategy, generate error detection code, and compare the original data and redundant data in the vector to realize the error detection function.

[0044] Data in the program is divided into four categories: scalar type, vector type, array type and structure type:

[0045] (1) Scalar type data D b :<value,type>, indicating that the data type is type, the value of the data is value, and the basic scalar data types are byte, char, short, int, long, float, double;

[0046] (2) Vector type data VD: <(value1, value2,…, value M ),type>, indicating that it contains M elements of type type;

[0047] (3) Array D arr : Represents n elements D b A collection of The types are all the same, 1≤i≤n;

[0048] (4) Structure D st : Indicated by D b and D arr Composite data consisting of and The type can be restricted; for example The type is int, The type is float, where 0<i≤n, 0<j≤m; there are composite data consisting of basic scalar type data and arrays in the program, and the generalized format is given here.

[0049] Instructions I are divided into the following five types and the corresponding formats are given:

[0050] (1) Operation Instruction Iarith :<op,od1,od2,dest>, the semantics is dest=od1 op od2, where od1 and od2 are instruction I arith The operand is dest, and the result operand is dest;

[0051] (2) Load instruction I ld :<load,addr,val>, the semantics is to store the value at the memory address addr into the variable val;

[0052] (3) Storage Instruction I st :<store,val,addr>, the semantics is to store the value of val in the memory at address addr;

[0053] (4) Jump instruction I jmp :<jmp,cond,tgt>, the semantics is that when the cond condition is true, the program jumps to tgt for execution;

[0054] (5) Other instructions I ot :<op,od1,…,od n >, op is the operand, od i The operand of the instruction.

[0055] Data flow instruction dependency: the instruction sequence I in the program = {I1, I2, ..., I n}, if there is I j Operand od t For instruction I i The result number is called instruction I j Dependency Instructions I i , expressed as Dep(I i ,I j ).

[0056] The method of converting scalar data into vector data of the present invention is as follows:

[0057] Basic type data vectorization conversion method VEC_D_B(D b ,K), the method is defined as: for any D b =<value,type>, there are:

[0058] VEC_D_B(D b ,K):

[0059] VD b =<(value1,…,value K ),type>

[0060] Where D bThe data to which this method is applied, value i =value,1≤i≤K, K is the length of the converted vector, VD b D b Vectorized data;

[0061] Array vectorization conversion method VEC_D_ARR(D arr ,K), the method is defined as: for any have:

[0062] VEC_D_ARR(D arr ,K):

[0063]

[0064] Where D arr is the array to which the method is applied, VD arr D arr The vectorized array;

[0065] Structural data vectorization conversion method VEC_D_ST(D st ,K), the method is defined as: for any have:

[0066] VEC_D_ST(D st ,K):

[0067]

[0068] Where D st For the structure to which this method is applied, VD st D st The vectorized structure;

[0069] The above three methods represent the original data and redundant data with vectors. For example, for the basic type data D b =<value,type> vectorized data VD b =<{value1,…,value K},type>,VD b value1 and D b The original data value corresponds to value2,…,value K is redundant data, where K-1 is the number of redundancies. Method (2) vectorizes the basic type data of the array, and method (3) applies method (1) and method (2) to the basic type data and array in the structure respectively. This is done to arrange the original data and redundant data adjacently. In the implementation, the vector data is arranged in the memory according to the arrangement to improve data access efficiency.

[0070] The register in the SISD (Single Instruction Single Data) instruction is of scalar type, and the data is of basic type D. b , vectorizing SISD instructions requires vectorizing the data in the instructions. According to the defined instruction types, the vectorization methods of arithmetic instructions, load instructions, and storage instructions defined in the present invention are as follows:

[0071] Operation instruction vectorization method VEC_I_ARITH(I arith ,K), the method is defined as: for any I arith =<op,od1,od2,dest>, we have:

[0072] VEC_I_ARITH(I arith ,K):

[0073] VI arith =<vop,vod1,vod2vdest>

[0074] = <vop,VEC_D_B(od1,K),VEC_D_B(od2,K),VEC_D_B(dest,K)>

[0075] In the formula, I arith To apply the operation instructions of this method, VI arith For I arith The vectorized operation instruction, vop is the vector operation of op, vop, vod1, vod2, vdest are the vectorized results of op, od1, od2, dest respectively; od1, od2, dest are D b data, vod1, vod2, vdest are the corresponding VD b By using this method, the operation op can be vectorized into vop, and when the vector instruction performs the operation on the vector data vod1 and vod2, it can operate on each component in the vector in parallel.

[0076] Load instruction vectorization method VEC_I_LD(I ld ,K), the method is defined as: for any I ld =<load,addr,val>, we have:

[0077] VEC_I_LD(I ld ,K):

[0078] VI ld =<vload,addr,vval>=<vload,addr,VEC_D_B(val,K)>

[0079] In the formula, I ld To apply this method to the load instruction, VI ld For I ld The vectorized load instruction, vload, addr, vval, is the vectorized result of load, addr, val. vload is a vector load operation, which reads a vector from the memory address addr. val is D b Data, vval is the corresponding vector type VD b Using this method, the load instruction load can be vectorized into vload, which can load each element of the vector data in parallel when executing the vector data at the load address addr.

[0080] Storage instruction vectorization method VEC_I_ST(I st ,K), the method is defined as: for any I st =<store,val,addr>, we have:

[0081] VEC_I_ST(I st ,K):

[0082] VI st =<vstore,vval,addr>=<vstore,VEC_D_B(val,K),addr>

[0083] In the formula, I st To apply this method to the load instruction, VI st For I st The vectorized load instruction, vstore, vval, addr are the vectorized results of store, val, addr respectively; the vstore vector load operation stores a vector to the memory address addr. val is D b Data, vval is the corresponding vector type VD b Using this method, the store instruction store can be vectorized into vstore, which can store each element of the vector data in parallel when executing to store the vector data at addr.

[0084] Scalar data is still used in scalar calculations, function returns, and function calls. The original vector data VD needs to be b Convert to scalar data. The following defines the method for converting vector data to scalar.

[0085] Vector data is converted to scalar data method DEVEC_VD_B (VD b ,Idx), the method is defined as: for any VD b=<{value1,…,value K},type>, there are:

[0086] DEVEC_VD_B(VD b ,Idx):D b =<value Idx ,type>

[0087] Where VD b For the vector data to which the method is applied, Idx is the index of the basic type data in the vector number returned by the method.

[0088] All vectorization methods of the present invention are shown in Table 1:

[0089] Table 1 Vectorization methods

[0090]

[0091]

[0092] After applying the above method, the original data operation and the redundant operation can be converted into parallel calculation of vector operation, but this program does not have error detection capability. The error detection code generation rule of the present invention is given below, which is used to generate error detection codes at some checkpoint positions, and compare the original data and redundant data in the vector data to check errors. The present invention can generate error detection codes in four cases. The present invention also designs a configurable checkpoint generation rule, which can specify the checkpoint position and selectively generate error detection codes at the following four positions.

[0093] (1) Conditional branching: If the conditional judgment data is a vector data, before extracting the original data from the vector, check whether the data in the vector is consistent.

[0094] (2) Loading operation: After reading a vector data from the memory, check whether an error occurs in the vector data in the memory or cache.

[0095] (3) Storage operation: Before storing a vector data into memory, check whether the data in the vector is consistent.

[0096] (4) Function call: Check all parameters before calling another function. If there is vectorized data for the function parameters, generate error checking code for the vectorized parameter data.

[0097] According to the above four situations, the present invention designs the following four checkpoint rules, as shown in Table 2:

[0098] Table 2 Checkpoint rules

[0099] rule Checkpoint location CR1 Before a conditional branch CR2 After the vector data loading operation CR3 Before vector data storage operations CR4 Check vectorized parameters before function call .

[0100] In one embodiment, a data stream soft error detection system based on SIMD vectorization is provided, the system comprising:

[0101] The first module is used to compile a source program into intermediate code by the compiler, build a control flow graph and analyze the data flow instruction dependency to obtain the instruction sequence;

[0102] The second module is used to determine the type of variable data for important variables in the program according to the reinforcement strategy, and apply the corresponding data vectorization method to these data to obtain vector data;

[0103] A third module is used to process each instruction in sequence according to the instruction dependency order, and apply a corresponding instruction vectorization method thereto to obtain a vector instruction;

[0104] The fourth module is used to apply the corresponding checkpoint rules according to the checkpoints in the reinforcement strategy, generate error detection codes, and compare the original data and redundant data existing in the vector to achieve error detection.

[0105] For the specific definition of the data stream soft error detection system based on SIMD vectorization, please refer to the definition of the data stream soft error detection method based on SIMD vectorization in the above text, which will not be repeated here. Each module in the above-mentioned data stream soft error detection system based on SIMD vectorization can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0106] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0107] Step 1: Given a source program, the compiler compiles it into intermediate code, builds a control flow graph, analyzes the data flow instruction dependency, and obtains the order of instructions;

[0108] Step 2: According to the reinforcement strategy, for important variables in the program, determine the type of variable data, and apply the corresponding data vectorization method to these data to obtain vector data;

[0109] Step 3, processing each instruction in sequence according to the instruction dependency obtained in step 1, applying a corresponding instruction vectorization method thereto, and obtaining a vector instruction;

[0110] Step 4: Apply the corresponding checkpoint rules according to the checkpoints in the reinforcement strategy, generate error detection codes, and compare the original data and redundant data in the vector to achieve error detection.

[0111] For the specific limitations of each step, please refer to the limitations of the data stream soft error detection method based on SIMD vectorization in the above text, which will not be repeated here.

[0112] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0113] Step 1: Given a source program, the compiler compiles it into intermediate code, builds a control flow graph, analyzes the data flow instruction dependency, and obtains the order of instructions;

[0114] Step 2: According to the reinforcement strategy, for important variables in the program, determine the type of variable data, and apply the corresponding data vectorization method to these data to obtain vector data;

[0115] Step 3, processing each instruction in sequence according to the instruction dependency obtained in step 1, applying a corresponding instruction vectorization method thereto, and obtaining a vector instruction;

[0116] Step 4: Apply the corresponding checkpoint rules according to the checkpoints in the reinforcement strategy, generate error detection codes, and compare the original data and redundant data in the vector to achieve error detection.

[0117] For the specific limitations of each step, please refer to the limitations of the data stream soft error detection method based on SIMD vectorization in the above text, which will not be repeated here.

[0118] The present invention aims to solve the problem of low efficiency of redundantly executed data flow algorithms. According to data and instruction methods, the program is vectorized, program performance is improved by utilizing hardware SIMD data parallelism, error detection codes are generated at corresponding positions according to checkpoint rules, and automatic error detection function is realized. The present invention has the advantage that existing methods generally cannot detect soft errors of components such as cache.

[0119] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements all fall within the scope of the present invention to be protected.

Claims

1. A data stream soft error detection method based on SIMD vectorization, It is characterized in that The following steps are involved: Step 1: Given a source program, the compiler compiles it into intermediate code, builds a control flow graph, analyzes the data flow instruction dependency, and obtains the order of instructions; Step 2: According to the reinforcement strategy, for important variables in the program, determine the type of variable data, and apply the corresponding data vectorization method to these data to obtain vector data; Step 3, processing each instruction in sequence according to the instruction dependency relationship obtained in step 1, applying a corresponding instruction vectorization method thereto, and obtaining a vector instruction; Step 4: Apply the corresponding checkpoint rules according to the checkpoints in the reinforcement strategy, generate error detection code, and compare the original data and redundant data in the vector to achieve error detection; The data vectorization method in step 2 specifically includes: Data in the program is divided into four categories, including scalar type, vector type, array type and structure type: a) Scalar type data D b :<value, type>, indicating that the data type is type and the value of the data is value. The basic scalar data types are byte, char, short, int, long, float, double; b) Vector type data VD: <(value 1 ,value 2 ,L,value M ),type>, indicating that it contains M elements of type type; c) Array Represents n elements D b A collection of The types of type are the same, 1≤i≤n; d) Structure Indicated by D b and D arr Composite data composed of The scalar type and vector type are classified as basic types; (1) Basic type data vectorization conversion method VEC_D_B(D b ,K), the method is defined as: for any D b =<value,type>, there are: VEC_D_B(D b ,K): VD b =<(value 1 ,L,value K ),type> Where D b The data to which this method is applied, value i =value,1≤i≤K, K is the length of the converted vector, VD b D b Vectorized data; (2) Array vectorization conversion method VEC_D_ARR(D arr ,K), the method is defined as: for any have: Where D arr is the array to which the method is applied, VD arr D arr The vectorized array; (3) Structural data vectorization conversion method VEC_D_ST (D st ,K), the method is defined as: for any have: Where D st For the structure to which this method is applied, VD st D st The vectorized structure; The instruction vectorization method in step 3 specifically includes: Instructions I are divided into the following five types: a) Operation Instruction I arith :<op,od 1 ,od 2 ,dest>, the semantics is dest=od 1 op od 2 , where od 1 ,od 2 For instruction I arith The operand is dest, and the result operand is dest; b) Load instruction I ld :<load,addr,val>, the semantics is to store the value at the memory address addr into the variable val, where load is the symbol of the load instruction; c) Storage Instruction I st :<store,val,addr>, the semantics is to store the value of val to the memory address addr, where store is the symbol of the load instruction; d) Jump instruction I jmp :<jmp,cond,tgt>, the semantics is that when the cond condition is true, the program jumps to tgt for execution, where jmp is the symbol of the jump instruction; e) Other instructions I ot :<op,od 1 ,L,od n >, op is the operand, od i is the operand of the instruction; (1) Operation instruction vectorization method VEC_I_ARITH(I arith ,K), the method is defined as: for any I arith = <op,od 1 ,od 2 ,dest>, we have: VEC_I_ARITH(I arith ,K): VI arith = <vop,vod 1 ,water 2 vdest> = <vop,VEC_D_B(od 1 ,K),VEC_D_B(from 2 ,K),VEC_D_B(dest,K)> In the formula, I arith To apply the operation instructions of this method, VI arith For I arith Vectorized operation instructions, vop, vod 1 ,vod 2 、vdest are op,od respectively 1 ,od 2 ,dest is the result after vectorization; (2) Vectorization method of load instruction VEC_I_LD(I ld , K), this method is defined as: for any I ld = <load, addr, val>, there is: VEC_I_LD(I ld ,K): VI ld =<vload,addr,vval>=<vload,addr,VEC_D_B(val,K)> In the formula, I ld To apply this method to the load instruction, VI ld For I ld The vectorized load instructions, vload, addr, and vval are the vectorized results of load, addr, and val respectively; (3) Storage instruction vectorization method VEC_I_ST (I st ,K), the method is defined as: for any I st =<store,val,addr>, we have: VEC_I_ST(I st ,K): VI st =<vstore,vval,addr>=<vstore,VEC_D_B(val,K),addr> In the formula, I st To apply this method to the load instruction, VI st For I st The vectorized load instructions, vstore, vval, and addr are the vectorized results of store, val, and addr respectively; (4) Method DEVEC_VD_B (VD) for converting vector data into scalar data b ,Idx), the method is defined as: for any VD b =<{value 1 ,L,value K },type>, there are: DEVEC_VD_B(VD b ,Idx):D b =<value Idx ,type> Where VD b For the vector data to which the method is applied, Idx is the index of the basic type data in the vector number returned by the method.

2. The data stream soft error detection method based on SIMD vectorization according to claim 1, It is characterized in that The checkpoint rules in step 4 are as follows: (1) Conditional branching: If the conditional judgment data is a vector data, before extracting the original data from the vector, check whether the data in the vector is consistent; (2) Load operation: After reading a vector data from the memory, check whether an error occurs in the vector data in the memory or cache; (3) Storage operation: Before storing a vector data into memory, check whether the data in the vector is consistent; (4) Function call: Check all parameters before calling another function. If there is vectorized data for the function parameters, generate error checking code for the vectorized parameter data.

3. A data stream soft error detection system based on SIMD vectorization based on the method according to any one of claims 1 to 2, It is characterized in that The system comprises: The first module is used to compile a source program into intermediate code by the compiler, build a control flow graph and analyze the data flow instruction dependency to obtain the instruction sequence; The second module is used to determine the type of variable data for important variables in the program according to the reinforcement strategy, and apply the corresponding data vectorization method to these data to obtain vector data; A third module is used to process each instruction in sequence according to the instruction dependency order, and apply a corresponding instruction vectorization method thereto to obtain a vector instruction; The fourth module is used to apply the corresponding checkpoint rules according to the checkpoints in the reinforcement strategy, generate error detection codes, and compare the original data and redundant data existing in the vector to achieve error detection.

4. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 2 are implemented.

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