[Paper Review] Support for Debugging Automatically Parallelized Programs
This paper presents a debugging system that simplifies identifying errors in automatically parallelized programs by comparing serial and parallel executions using relative debugging. It leverages metadata from the parallelization tool and dynamic instrumentation to minimize user effort and detect discrepancies at fine granularity, significantly reducing debugging overhead while isolating faults introduced by parallelization.
We describe a system that simplifies the process of debugging programs produced by computer-aided parallelization tools. The system uses relative debugging techniques to compare serial and parallel executions in order to show where the computations begin to differ. If the original serial code is correct, errors due to parallelization will be isolated by the comparison. One of the primary goals of the system is to minimize the effort required of the user. To that end, the debugging system uses information produced by the parallelization tool to drive the comparison process. In particular, the debugging system relies on the parallelization tool to provide information about where variables may have been modified and how arrays are distributed across multiple processes. User effort is also reduced through the use of dynamic instrumentation. This allows us to modify the program execution without changing the way the user builds the executable. The use of dynamic instrumentation also permits us to compare the executions in a fine-grained fashion and only involve the debugger when a difference has been detected. This reduces the overhead of executing instrumentation.
Motivation & Objective
- To reduce the complexity and effort required to debug programs generated by automatic parallelization tools.
- To isolate faults introduced during automatic parallelization by comparing serial and parallel executions.
- To minimize user involvement by leveraging metadata from the parallelization tool and dynamic instrumentation.
- To enable fine-grained comparison of executions only when differences are detected, reducing runtime overhead.
Proposed method
- The system uses relative debugging to compare execution traces of serial and parallel versions of a program.
- It relies on metadata from the parallelization tool to identify modified variables and array distributions across processes.
- Dynamic instrumentation is employed to modify program behavior without recompilation, enabling runtime comparison.
- The system only invokes the debugger when a divergence between executions is detected, reducing overhead.
- Execution comparison is performed at a fine-grained level, focusing on differences in variable states and control flow.
- The approach integrates with existing compilation and debugging tools to maintain usability and toolchain compatibility.
Experimental results
Research questions
- RQ1How can the debugging effort for automatically parallelized programs be minimized while ensuring accurate fault localization?
- RQ2What role can metadata from the parallelization tool play in guiding the debugging process?
- RQ3How can dynamic instrumentation support efficient, fine-grained comparison between serial and parallel executions?
- RQ4In what ways does relative debugging improve the isolation of parallelization-induced errors compared to traditional debugging?
- RQ5Can the overhead of instrumentation be reduced by limiting debugger involvement to only divergent execution points?
Key findings
- The system successfully isolates parallelization-induced errors by comparing serial and parallel executions, assuming the original serial code is correct.
- Use of metadata from the parallelization tool significantly reduces the need for manual user input during debugging.
- Dynamic instrumentation enables non-invasive modification of executables, preserving the user's build process.
- The system reduces debugging overhead by deferring debugger involvement until actual differences are detected.
- Fine-grained comparison allows precise localization of divergence points, improving fault diagnosis efficiency.
- The approach demonstrates practical feasibility in a real-world debugging environment, as validated in the AADEBUG 2000 workshop.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.