GPGPU parallel data processing optimization method, device and medium

Through CPU pre-processing and post-processing, combined with DMA and CUDA programming, the GPGPU architecture is optimized, and the combination of multiple computing units is used to solve the problem of efficient adaptation of the PSO algorithm on the GPGPU and achieve efficient data processing and model training.

CN118519789BActive Publication Date: 2024-10-01YUANQIXIN (SHANDONG) SEMICONDUCTOR TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410993286.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-01
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

How to integrate the PSO algorithm into the data processing of GPGPU so that it can better adapt to the high parallelism of GPGPU and achieve efficient data processing.

Method used

Data preprocessing and postprocessing are performed through the CPU, and DMA is used to transfer the preprocessed data directly to the GPGPU. It is combined with CUDA programming to optimize the logical architecture of the GPGPU, and uses a combination of multiple computing units to perform matrix operations to reduce the number of each thread. execution time and improve calculation efficiency.

Benefits of technology

The data processing performance is greatly improved, allowing the PSO algorithm to better adapt to the high parallel characteristics of GPGPU, accelerating model training, and quickly finding the optimal parameter combination.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519789B_ABST
    Figure CN118519789B_ABST
Patent Text Reader

Abstract

The present invention discloses a GPGPU parallel data processing optimization method, device and medium, and belongs to the technical field of GPGPU data processing. The present invention aims to solve the technical problem of how to integrate a PSO algorithm into the data processing of GPGPU, so that the PSO algorithm can better adapt to the high parallelism of GPGPU and realize efficient data processing. The technical scheme is as follows: a CPU acquires and pre-processes data required by an SPSOP algorithm, and stores the pre-processed data to a specified address; wherein, the CPU of a RISC-V core performs early data pre-processing and transportation to realize the optimization of the logical architecture of the GPGPU, and realizes the SPSOP algorithm on the optimized GPGPU; the data pre-processed by the CPU is directly transported to the GPGPU through DMA, and after the GPGPU processes the data, the GPGPU returns the data to the CPU through DMA, and the CPU performs post-processing on the processed data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of GPGPU data processing, and in particular to a GPGPU parallel data processing optimization method, device and medium. Background Art

[0002] With the development of science and technology, GPGPU research has gradually landed on the stage. Born out of GPUs designed to improve graphics rendering efficiency, GPGPU has gradually developed into a general-purpose processor for parallel computing acceleration with its continuous evolution of functions. With its high parallelism and SIMT characteristics, it is widely used in big data processing and large data volume scenarios with simple computing logic but high speed requirements. For GPGPU, global optimization is a very complex problem.

[0003] The full name of Particle Swarm Optimization (PSO) is an optimization algorithm based on swarm intelligence. It solves problems by simulating cooperation and competition between individuals in a swarm. The basic idea is that in a search space, each particle represents a potential solution. These particles move in space to find the optimal solution. Each particle adjusts its speed and position according to its own historical optimal position and the optimal position in the swarm. The algorithm iteratively updates the speed and position of the particle until the conditions are met (the maximum number of iterations is reached or a good enough solution is found).

[0004] Therefore, how to integrate the PSO algorithm into GPGPU data processing, make the PSO algorithm better adapt to the high parallelism of GPGPU, and achieve efficient data processing is a technical problem that needs to be solved urgently. Summary of the invention

[0005] The technical task of the present invention is to provide a GPGPU parallel data processing optimization method, device and medium to solve the problem of how to integrate the PSO algorithm into GPGPU data processing, so that the PSO algorithm can better adapt to the high parallelism of GPGPU and achieve efficient data processing.

[0006] The technical task of the present invention is achieved in the following way: a GPGPU parallel data processing optimization method, the method is as follows:

[0007] The CPU obtains and preprocesses the data required by the SPSOP (Suitable-PSO Pro) algorithm, and stores the preprocessed data at the specified address; the SPSOP algorithm is upgraded based on the PSO algorithm, optimized for high-dimensional composite functions, and optimized for the adaptability of the SPSOP algorithm. The RISC-V core CPU performs preliminary data preprocessing and transfer to achieve the optimization of the GPGPU logical architecture, and implements the SPSOP algorithm on the optimized GPGPU;

[0008] Direct Memory Access (DMA) is used to transfer CPU preprocessed data directly to GPGPU, which does not occupy CPU resources and improves data transfer efficiency.

[0009] After GPGPU processes the data, it returns it to the CPU through DMA, and the CPU performs post-processing on the processed data; the post-processing includes splicing, display and extraction.

[0010] Preferably, the optimization of the logical architecture of the GPGPU is based on CUDA programming, which is used to simplify the information transfer between RAM and GPU dedicated RAM, achieve parallelization by assigning a thread to perform calculations on specific elements of a matrix or array generated by a given calculation, and calculate the results for a given particle or, in the case of a distance matrix, the results for ion pairs.

[0011] Preferably, the distance matrix is ​​calculated using one thread for each matrix element. According to the characteristics of GPGPU SIMT, the required threads are executed simultaneously, and the execution time of each thread is optimized to reduce the number of threads executed in each time period. That is, the threads included in the thread bundle are changed from 16 or 32 specified by CUDA programming to 4, so as to achieve efficient execution of a single particle contained in each thread. The reason is that the calculation process of a single particle is too complicated. Therefore, for the computing unit, a combination of multiple computing units is used for execution.

[0012] Preferably, the multiple computing units are combined as follows:

[0013] The simulation data enters the data preprocessing module;

[0014] Simplify through matrix operation modules;

[0015] After simplification, the threads are grouped into bundles according to the logic of four threads each;

[0016] After the simulation data passes through the data preprocessing module and enters the arbiter through the corresponding four thread warps, the arbitration logic begins;

[0017] Based on the feedback of the busy signal, the arbiter places the four threads corresponding to thread bundle 0, thread bundle 1, thread bundle 2 and thread bundle 3 into the corresponding arithmetic logic unit (ALU) 0, ALU 1, ALU 2 and ALU 3 respectively. Each ALU needs four cycles to process the threads in the thread bundle, that is, one cycle for each thread.

[0018] Preferably, the working process of the data preprocessing module is as follows:

[0019] Each output of the matrix operation module is a thread, from a0 to a N represents a row of the matrix, and different N numbers represent the elements of the matrix. The final output of the matrix operation module is , , 、···、 , , 、···、 .

[0020] Preferably, the specific process of one cycle for each thread is as follows:

[0021] At time t0, the signal of thread bundle 0 is put into the corresponding arithmetic logic unit 0, and then the alu0_busy signal is pulled high; at time t1, thread bundle 1 enters the arithmetic logic unit 1. Similarly, at time t4, when the four threads of the second thread bundle 0 need to be processed, the data of the arithmetic logic unit 0 has been processed, and the busy signal is pulled low again. The signal in the new thread bundle 0 enters the arithmetic logic unit 0 to continue processing, ensuring that the computing efficiency is high without losing the working cycle.

[0022] As a preferred embodiment, the SPSOP algorithm is as follows:

[0023] PSO (Particle Swarm Optimization) is an iterative randomized technique that uses N independent D-dimensional particles, or positions in the search space Ω^D to find the minimum value of f(x); where x∈Ω^D; the position of the particle is updated according to the extent of the search, and the velocity v of particle i at iteration time t+1 is updated to: v i (t+1)=ω(t)v i (t)+C1r1(p i best (t)-x i (t))+C2r2(g i best (t)-x i (t) );

[0024] Among them, v i (t+1) is the updated velocity of particle i; ω(t)v i (t) indicates particle inertia, which is affected by the velocity before the update; C1r1 indicates the current acceleration factor; g bes represents the global optimal position; p best Indicates the current best position of the particle; x i represents the current position of the particle. The updated speed of the particle is affected by the optimal position and the current optimal position. ω represents the inertia factor (usually a generating function) and controls the global and / or local range.i bes Indicates that particle i has found the best position; g best Indicates that the entire particle swarm has found the best position. Randomness is affected by r1, r2-U (0, 1) to maintain the diversity of the population. Then the position of the i-th factor is updated to: x i (t+1) = x i (t)+v i (t+1), i=1, ···, N; ω is expressed as:

[0025] ;

[0026] ;

[0027] ;

[0028] Among them, d i Represents particle x i The average distance to every other particle; d g represents the average distance of the global best particle; d min =min(d i ),d max =max(d i ),i=1,…,N, and Φ is the evolution factor used for the search state calculated based on particle clustering; 1.2 and -2 in the ω formula can be changed according to demand, and the parameters currently given are the most suitable combination for the present invention obtained through testing; generally speaking, Φ∈[0,1], then ω∈[0.45,0.91], the SPSOP algorithm further uses ω in the fuzzy membership function to determine the current state of the search; the same process is used to modify the acceleration coefficient local effect C1 and global effect C2, and the inertia and state are updated according to the particle position and the current search state.

[0029] An electronic device comprising: a memory and at least one processor;

[0030] Wherein, the memory stores a computer program;

[0031] The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the GPGPU parallel data processing optimization method as described above.

[0032] A computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the GPGPU parallel data processing optimization method as described above.

[0033] The GPGPU parallel data processing optimization method, device and medium of the present invention have the following advantages:

[0034] (1) The present invention uses the highly parallel characteristics of GPGPU and an improved APSOP algorithm to perform data pre-processing and post-processing through the CPU, thereby greatly improving the performance of data processing;

[0035] (ii) The present invention uses the CPU to carry out data transport and preprocessing, and then integrates the SPSOP algorithm, which is an improvement on the original PSO algorithm, into the data processing flow of GPGPU, so that it can better adapt to the high parallel characteristics of GPGPU. Through such a configuration combination, an efficient data processing flow can be achieved, and the speed of model training can be accelerated in machine model training, thereby finding the optimal parameter combination more quickly. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The present invention is further described below in conjunction with the accompanying drawings.

[0037] Attached Figure 1 A schematic diagram of a GPGPU parallel data processing optimization method;

[0038] Attached Figure 2 A schematic diagram of a method of combining multiple computing units;

[0039] Attached Figure 3 A schematic diagram of the data preprocessing module processing each output of the matrix operation module. DETAILED DESCRIPTION

[0040] The GPGPU parallel data processing optimization method, device and medium of the present invention are described in detail below with reference to the accompanying drawings and specific embodiments of the specification.

[0041] Embodiment 1: As attached Figure 1 As shown, this embodiment provides a GPGPU parallel data processing optimization method, the method is as follows:

[0042] S1. The CPU obtains and preprocesses the data required by the SPSOP (Suitable-PSO Pro) algorithm, and stores the preprocessed data at the specified address. The SPSOP algorithm is upgraded based on the PSO algorithm, optimized for high-dimensional composite functions, and optimized for the adaptability of the SPSOP algorithm. The RISC-V core CPU performs preliminary data preprocessing and transfer to achieve the optimization of the GPGPU logical architecture, and implements the SPSOP algorithm on the optimized GPGPU.

[0043] S2, directly transfer the CPU pre-processed data to GPGPU through DMA (Direct Memory Access), which does not occupy CPU resources and improves data transfer efficiency;

[0044] S3, after GPGPU processes the data, it returns it to the CPU through DMA, and the CPU performs post-processing on the processed data; among them, post-processing includes splicing, display and extraction.

[0045] SPSOP optimizes high-dimensional composite functions, which are weighted sums of standard test function transformation search spaces. This function has multiple optimal characteristics, but as the dimension increases, optimization becomes very difficult. If it only works in the CPU, the objective function is extremely difficult to implement. Formula f comp (x) -- Function composition is as follows:

[0046] ;

[0047] M represents a single function in the composite function. The weight wm in each fm corresponds one-to-one to a single function. is the standard deviation of each M function, and the weight wm can be calculated through the standard deviation. All fm should fall within the search space of max[fm(x)]. For om, it is a constant, which is the correction value of the offset vector length D. Tm is a D*D orthogonal matrix, and λm is the scaling value of a single function, which is a constant. In this formula, D=0, 2, 16, 32, 64, 128 256 or 512. The value of M can be customized. The best consideration is selected based on the parallelism of GPGPU. At present, when M is less than 10, the peak value of GPGPU with the best performance can be exerted. If it is greater than 10, it will affect the computing rate of GPGPU.

[0048] The optimization of the logical architecture of the GPGPU in this embodiment is based on CUDA programming, which is used to simplify the information transfer between the RAM and the GPU dedicated RAM, and achieve parallelization by assigning a thread to perform calculations on specific elements of a matrix or array generated by a given calculation, and calculate the results for a given particle or, in the case of a distance matrix, the results for ion pairs.

[0049] The distance matrix calculation in this embodiment uses one thread for each matrix element. According to the characteristics of GPGPU SIMT, the required threads are executed simultaneously, and the execution time of each thread is optimized to reduce the number of threads executed in each time period. That is, the threads included in the thread bundle are changed from 16 or 32 specified by CUDA programming to 4, so that a single particle included in each thread is executed efficiently. The reason is that the calculation process of a single particle is too complicated. Therefore, for the computing unit, a combination of multiple computing units is used for execution.

[0050] As attached Figure 2As shown, in this embodiment, the manner in which multiple computing units are combined is specifically as follows:

[0051] (1) The simulation data enters the data preprocessing module;

[0052] (2) Simplification through matrix operation modules;

[0053] (3) After simplification, the threads are grouped into bundles according to the logic of four threads each.

[0054] (4) After the data preprocessing module, the simulated data enters the arbiter through the corresponding four thread bundles, and the arbitration logic begins;

[0055] (5) Based on the feedback of the busy signal, the arbiter places the four threads corresponding to thread bundle 0, thread bundle 1, thread bundle 2 and thread bundle 3 into the corresponding arithmetic logic unit (ALU) 0, ALU 1, ALU 2 and ALU 3 respectively. Each ALU needs four cycles to process the threads in the thread bundle, that is, one cycle for each thread.

[0056] As attached Figure 3 As shown, the working process of the data preprocessing module in this embodiment is specifically as follows:

[0057] Each output of the matrix operation module is a thread, from a0 to a N represents a row of the matrix, and different N numbers represent the elements of the matrix. The final output of the matrix operation module is , , 、···、 , , 、···、 .

[0058] The specific process of one cycle for each thread in this embodiment is as follows:

[0059] At time t0, the signal of thread bundle 0 is put into the corresponding arithmetic logic unit 0, and then the alu0_busy signal is pulled high; at time t1, thread bundle 1 enters the arithmetic logic unit 1. Similarly, at time t4, when the four threads of the second thread bundle 0 need to be processed, the data of the arithmetic logic unit 0 has been processed, and the busy signal is pulled low again. The signal in the new thread bundle 0 enters the arithmetic logic unit 0 to continue processing, ensuring that the computing efficiency is high without losing the working cycle.

[0060] The SPSOP algorithm in this embodiment is as follows:

[0061] PSO (Particle Swarm Optimization) is an iterative randomized technique that uses N independent D-dimensional particles, or positions in the search space Ω^D to find the minimum value of f(x); where x∈Ω^D; the position of the particle is updated according to the extent of the search, and the velocity v of particle i at iteration time t+1 is updated to: v i (t+1)=ω(t)v i (t)+C1r1(p i best (t)-x i (t))+C2r2(g i best (t)-x i (t) );

[0062] Among them, v i (t+1) is the updated velocity of particle i; ω(t)v i (t) indicates particle inertia, which is affected by the velocity before the update; C1r1 indicates the current acceleration factor; g best represents the global optimal position; p best Indicates the current best position of the particle; x i represents the current position of the particle. The updated speed of the particle is affected by the optimal position and the current optimal position. ω represents the inertia factor (usually a generating function) and controls the global and / or local range. i best Indicates that particle i has found the best position; g best Indicates that the entire particle swarm has found the best position. Randomness is affected by r1, r2-U (0, 1) to maintain the diversity of the population. Then the position of the i-th factor is updated to: x i (t+1) = x i (t)+v i (t+1), i=1, ···, N; ω is expressed as:

[0063] ;

[0064] ;

[0065] ;

[0066] Among them, d i Represents particle x i The average distance to every other particle; d g represents the average distance of the global best particle; d min =min(d i ),d max =max(d i),i=1,…,N, and Φ is the evolution factor used for the search state calculated based on particle clustering; 1.2 and -2 in the ω formula can be changed according to demand, and the parameters currently given are the most suitable combination for the present invention obtained through testing; generally speaking, Φ∈[0,1], then ω∈[0.45,0.91], the SPSOP algorithm further uses ω in the fuzzy membership function to determine the current state of the search; the same process is used to modify the acceleration coefficient local effect C1 and global effect C2, and the inertia and state are updated according to the particle position and the current search state.

[0067] Embodiment 2: This embodiment also provides an electronic device, including: a memory and a processor;

[0068] Wherein, the memory stores computer-executable instructions;

[0069] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the GPGPU parallel data processing optimization method in any embodiment of the present invention.

[0070] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor may be a microprocessor or any conventional processor, etc.

[0071] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory can also include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, a flash memory card, at least one disk storage period, a flash memory device, or other volatile solid-state storage devices.

[0072] Embodiment 3: This embodiment also provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are loaded by a processor, so that the processor executes the GPGPU parallel data processing optimization method in any embodiment of the present invention. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code that implements the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.

[0073] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.

[0074] Examples of storage media for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RYM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, program code may be downloaded from a server computer via a communication network.

[0075] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0076] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0077] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A GPGPU parallel data processing optimization method, characterized in that: The method is as follows: The CPU obtains and preprocesses the data required by the SPSOP algorithm, and stores the preprocessed data to the specified address; Among them, the SPSOP algorithm is upgraded based on the PSO algorithm, optimized for high-dimensional composite functions, and optimized the logical architecture of GPGPU through the early data preprocessing and transportation of the RISC-V core CPU for the adaptability of the SPSOP algorithm, and the SPSOP algorithm is implemented on the optimized GPGPU; The data pre-processed by the CPU is directly transferred to the GPGPU through DMA, which does not occupy CPU resources and improves the data transfer efficiency; After GPGPU processes the data, it returns it to the CPU through DMA, and the CPU performs post-processing on the processed data; post-processing includes splicing, display, and extraction; Among them, the optimization of the logical architecture of GPGPU is based on CUDA programming, which is used to simplify the information transfer between RAM and GPU dedicated RAM, and to achieve parallelization by assigning a thread to perform the calculation of a specific element of a matrix or array generated by a given calculation, and calculate the results of a given particle or, in the case of a distance matrix, the results of an ion pair; The SPSOP algorithm is as follows: The PSO algorithm is an iterative randomization technique that uses N independent D-dimensional particles, or positions in the search space Ω^D, to find the minimum value of f(x); where x∈Ω^D; the position of the particle is updated according to the extent of the search, and the velocity v of particle i at iteration time t+1 is updated to: v i (t+1)=ω(t)v i (t)+C1r1(p i best (t)-x i (t))+C2r2(g i best (t)-x i (t)); Among them, v i (t+1) is the updated velocity of particle i; ω(t)v i (t) indicates particle inertia, which is affected by the velocity before the update; C1r1 indicates the current acceleration factor; g best represents the global optimal position; p best Indicates the current best position of the particle; x i represents the current position of the particle. The updated speed of the particle is affected by the optimal position and the current optimal position. ω represents the inertia factor, which controls the global and / or local range. p i best Indicates that particle i has found the best position; g best Indicates that the entire particle swarm has found the best position. Randomness is affected by r1, r2-U (0, 1) to maintain the diversity of the population. Then the position of the i-th factor is updated to: x i (t+1) = x i (t)+v i (t+1), i=1, ···, N; ω is expressed as: ; ; ; Among them, d i Represents particle x i The average distance to every other particle; d g represents the average distance of the global best particle; d min =min(d i ),d max =max(d i ),i=1,…,N, and Φ is the evolution factor used for the search state calculated based on particle clustering; Φ∈[0,1], then ω∈[0.45,0.91], the SPSOP algorithm further uses ω in the fuzzy membership function to determine the current state of the search; the acceleration coefficients local effect C1 and global effect C2 are modified using the same process, and the inertia and state are updated based on the particle position and the current search state.

2. The GPGPU parallel data processing optimization method according to claim 1, characterized in that: The distance matrix is ​​calculated using one thread for each matrix element. According to the characteristics of GPGPU SIMT, the required threads are executed simultaneously. Instead of optimizing the execution time of each thread, the number of threads executed in each time period is reduced. That is, the number of threads included in the thread bundle is changed from 16 or 32 as specified by CUDA programming to 4, so that the single particle contained in each thread can be executed efficiently. Then, for the computing unit, multiple computing units are combined for execution.

3. The GPGPU parallel data processing optimization method according to claim 2, characterized in that: The specific way of combining multiple computing units is as follows: The simulation data enters the data preprocessing module; Simplify through matrix operation modules; After simplification, the threads are grouped into bundles according to the logic of four threads each; After the simulation data passes through the data preprocessing module and enters the arbiter through the corresponding four thread warps, the arbitration logic begins; Based on the feedback of the busy signal, the arbiter places the four threads corresponding to thread bundle 0, thread bundle 1, thread bundle 2 and thread bundle 3 into the corresponding arithmetic logic unit 0, arithmetic logic unit 1, arithmetic logic unit 2 and arithmetic logic unit 3 respectively. Each arithmetic logic unit needs four cycles to process the threads in the thread bundle, that is, one cycle for each thread.

4. The GPGPU parallel data processing optimization method according to claim 3, characterized in that: The working process of the data preprocessing module is as follows: Each output of the matrix operation module is a thread, from a0 to a N represents a row of the matrix, and different N numbers represent the elements of the matrix. The final output of the matrix operation module is , , 、···、 , , 、···、 .

5. The GPGPU parallel data processing optimization method according to claim 3, characterized in that: The specific process of each thread cycle is as follows: At time t0, the signal of thread bundle 0 is put into the corresponding arithmetic logic unit 0, and then the alu0_busy signal is pulled high; at time t1, thread bundle 1 enters the arithmetic logic unit 1. Similarly, at time t4, when the four threads of the second thread bundle 0 need to be processed, the data of the arithmetic logic unit 0 has been processed, and the busy signal is pulled low again. The signal in the new thread bundle 0 enters the arithmetic logic unit 0 to continue processing, ensuring that the computing efficiency is high without losing the working cycle.

6. An electronic device, characterized in that: include: memory and at least one processor; Wherein, the memory stores a computer program; The at least one processor executes the computer program stored in the memory, so that the at least one processor performs the GPGPU parallel data processing optimization method according to any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which can be executed by a processor to implement the GPGPU parallel data processing optimization method according to any one of claims 1 to 5.