Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Test method for parallel source code generation, compilation and driven execution

A test method and source code technology, applied in the computer field, can solve problems such as the influence of parallel program design, complex operation logic, and test difficulties, and achieve the effect of improving efficiency and value, and strengthening the system

Active Publication Date: 2013-01-16
JIANGNAN INST OF COMPUTING TECH
View PDF3 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At the same time, due to the characteristics of parallel programming and the historical origin of parallel computing development, there are many problems in the development, design and operating environment of parallel programs in parallel languages, which also bring great difficulties to its testing and seriously restrict the development of parallel computing. develop
[0004] Problems in parallel program development and design: ①Parallel programming not only includes serial programming, but also includes more challenging parallel problems; ②There is only one generally accepted von Nuo Iman model, and although there are many parallel computing models, none of them are commonly recognized; ③ Parallel programming is also affected by the specific runtime environment
[0005] Problems in the operating environment of parallel programs: ①The operating logic of parallel programs is far more complex than that of serial programs, and the requirements for the operating environment are much higher and more complex than those of serial programs; ②Defects in the operating environment directly threaten parallel programs correctness of operation
[0009] However, there are many deficiencies in the testing of parallel languages: ①It starts late, and most of the tests are aimed at specific parallel languages, and are limited by specific parallel program development and design methods; ②Due to different parallel computing models, parallel architectures and high-performance computers With the change of "generations", the test is not systematic and standardized, and it lacks methods and means, and it lacks effective testing tools; ③ There is randomness in parallel execution, and sometimes parallel defects need to be run many times before they are exposed; ④ Parallel It is difficult to monitor the running time of the program, and it is even more difficult to monitor the running time of the parallel program integrated with the operating environment factors; ⑤ The influence of the parallel scale factor on the test is also a problem that cannot be ignored

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
  • Test method for parallel source code generation, compilation and driven execution
  • Test method for parallel source code generation, compilation and driven execution
  • Test method for parallel source code generation, compilation and driven execution

Examples

Experimental program
Comparison scheme
Effect test

specific example

[0050] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention shall fall within the protection scope of the present invention.

example 1

[0051] Example 1: Test case parallel source code generation

[0052] Figure 4 The "(a) Main_Temp.c" part, "(b) Data_type.c" part and "(c) Data_type.h" part are parallel source code samples such as infrastructure samples and test scene samples respectively. The test scene mainly Used to define and initialize variables used in the running of each process. Figure 5 The "(a) Test Case 1 Configuration" section and the "(b) Test Case 2 Configuration" section in the section define parallel source code generation configurations for the two use cases, respectively. By modifying the _DATA_SHARE parameter of DATA, a shared variable or non-shared variable test can be realized. By modifying the DATA_STR and DATA_TYPE parameters of DATA, tests of basic types, structure types, union types, enumeration type variables, and tests extended to SIMD type variables can be realized.

[0053] For different parallel languages ​​and runtime libraries, appropriate test scenarios should be establish...

example 2

[0054] Example 2: Use Case Parallel Job Submission

[0055] Figure 5The sections "(a) Test Case 1 Configuration" and "(b) Test Case 2 Configuration" also define parallel job submission configurations for both use cases. By modifying PREDATA, the data preparation can be done before running the parallel job for this use case. By modifying PRESPREAD, the distribution of data and the deployment of parallel object code can be done before the parallel job runs for this use case. Run parameters can be configured for the parallel job submitter by modifying RUNFLAGS. By modifying RUNARG, run parameters can be configured for use case parallel object code.

[0056] For different parallel languages ​​and their parallel running environments, the general parallel job submission program will complete the data and parallel object codes required for distributing and deploying parallel jobs, and the PRESPREAD process can basically be ignored.

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 provides a test method for parallel source code generation, compilation and driven execution. The method comprises a test flow control module, a use case parallel source code generation module and a use case parallel operation operating and monitoring module, wherein the use case parallel source code generation module is used for analyzing test use case configuration, obtaining parallel source code generation configuration and parallel compilation option configuration, receiving global parallel compilation options transmitted by the test flow control module and generating required use case parallel source codes and Makefile files under the drive of the test flow control module. The use case parallel operation operating and monitoring module is used for analyzing test use case configuration so as to obtain preparation configuration before parallel operation running and parallel running operation configuration, receiving global parallel submitting options and parallel operation state monitoring options transmitted by the test flow control module and operating and controlling parallel operation to run .

Description

technical field [0001] The present invention relates to the field of computer technology, more specifically, the present invention relates to a parallel source code generation, compiling and driving execution test method for parallel languages, compilers and runtime libraries. Background technique [0002] With the increasing scale of high-performance computers and the rise of new industries such as cloud computing, grid computing, and the Internet of Things, the development of parallel languages ​​in depth and breadth is becoming more and more significant, and the development potential is increasing. The influence of many areas of people's livelihood is also becoming more and more prominent. [0003] Parallel languages ​​are the only means of developing and designing parallel programs. At the same time, due to the characteristics of parallel programming and the historical origin of parallel computing development, there are many problems in the development, design and opera...

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/44G06F9/38G06F11/36
Inventor 吴利董超群徐小春司品超何曼张超容
Owner JIANGNAN INST OF COMPUTING TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products