Method for automatically parallelizing program

An automatic and procedural technology, applied in the direction of program control devices, concurrent instruction execution, machine execution devices, etc., can solve the problems of complex parallel programming and poor portability, and achieve accelerated computing processes, reduced development costs, and high reusability Effect
CN101989192AInactive Publication Date: 2011-03-23ZHEJIANG UNIV

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHEJIANG UNIV
Publication Date
2011-03-23
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method for automatically parallelizing a program. The method comprises the following steps of: (1) acquiring a source program and acquiring a parallel part comprising a cyclic part and a branch part by analyzing the source program; (2) dividing the parallel part in the source program into a plurality of parallel modules, wherein the parallel modules are allocated to different processors for processing through threads; and (3) compiling the source program subjected to parallel extension into an executable code. The method has the advantages of providing a simple program parallelizing environment, fully designing the unique advantages in aspects of simplicity, safety and portability, achieving extremely high operating safety and reusability during development, greatly reducing multi-platform development cost, fully utilizing hardware resource, improving program performance and quickening a computation process.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of parallel program design and compiler design, in particular to a method for automatic parallelization of programs. Background technique

[0002] At present, the number of computer cores is increasing continuously. To reflect the advantages of multi-core, it is necessary to make full use of multi-core hardware resources, so it is necessary to realize multi-core parallel computing. Parallel programming is a good implementation method, but parallel programming is difficult, which makes it difficult for programmers who are accustomed to serial programming to adapt to parallel programming mode. The difficulty of parallel programming is that it is difficult for programmers to determine where to implement parallelism in the program, and the height of multi-threaded parallel programs is very troublesome. The processing of data dependencies between threads and the choice of parallel level all affect parallel programming. If...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More