The invention provides a heterogeneous acceleration method and
system based on a parallel
gene sequence alignment algorithm, and the method comprises the steps: S1, dividing
DNA into n fragments, and enabling a CPU end to read the fragment data of the
DNA; s2, performing parallel multi-thread
processing on the fragment data at a CPU (
Central Processing Unit) end to generate input data; s3, predicting the
execution time of the corresponding thread at the
software CPU end and the
execution time of the corresponding thread at the hardware FPGA end; s4, according to the predicted
execution time, selecting a position where the input data continues to be executed; s5, if acceleration
processing is carried out at the FPGA end, the processed data are stored in a global memory; and S6, enabling the CPU end to perform parallel
sequence alignment on the data in the global memory to
complete sequence alignment. According to the invention, a strategy for realizing
parallel processing of a plurality of to-be-aligned sequences based on
software multithreading is realized, and the FPGA equipment end realizes parallel and streamlined
processing of a plurality of sequences based on multiple cores.