Unlock instant, AI-driven research and patent intelligence for your innovation.

Inspection method for template library programming conventions

A technology of inspection method and template library, applied in program control design, instrument, calculation, etc., can solve problems such as codes that do not conform to programming conventions, difficult to locate programs, etc., and achieve the effect of simple process

Active Publication Date: 2015-11-04
HUAZHONG UNIV OF SCI & TECH
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a method for checking the programming conventions of the template library. By abstracting the programming conventions, it can effectively solve the problem that the existing C++ task parallel template library is difficult to locate in programs that do not conform to the programming conventions. problem with the code

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Inspection method for template library programming conventions
  • Inspection method for template library programming conventions
  • Inspection method for template library programming conventions

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0020] In the C++ task parallel template library provided by the present invention, programmers are required to use the library as follows: use a para object to accommodate an executable object, and the executable object must be a function or an instance of a class that has overloaded the operator() method. para is a template class that requires the user to provide a template type parameter to r...

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

PUM

No PUM Login to View More

Abstract

The invention discloses an inspection method for template library programming conventions and belongs to the technical field of computer parallel programming. According to the inspection method, the programming conventions are described as states, and the migration of the states is described as calling of specific methods in the programming conventions; then the states are implemented into categories, and methods satisfying the programming conventions are written in the categories for calling by programming personnel, so as to ensure that a compiler stops compiling and gives out a corresponding prompt when the programming personnel is against the programming conventions; and possible errors from the programming personnel are predicted and the methods are added in the corresponding categories representing the states so as to provide corresponding prompt information when the programming personnel is against the programming conventions to help the programming personnel to inspect and modify the errors. The inspection method can effectively improve the parallel program writing efficiency of the programming personnel.

Description

technical field [0001] The invention belongs to the technical field of computer parallel program design, and more specifically relates to a checking method for template library programming conventions. Background technique [0002] With the continuous development of computer CPUs towards multi-core, the era of pursuing high-performance single-core processors is over. People can no longer just wait for chip manufacturers to launch new processors to improve program performance. Parallel approach to improve the performance of serial applications, programmers began to move towards parallel programming. [0003] Traditional parallel programming models (such as MPI and earlier versions of OpenMP) can only be aimed at expert-level, experienced programmers, or applications that can only adapt to the rules. What is needed in the multi-core era is an easy-to-program, high-capacity parallel programming tool for broader application fields. In recent years, many new parallel programmin...

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/45G06F11/36
Inventor 金海范学鹏廖小飞王思远李陈希
Owner HUAZHONG UNIV OF SCI & TECH