[Paper Review] TEMANEJO - a debugger for task based parallel programming models
Temanejo is a debugger for task-based parallel programming models like StarSs, enabling developers to visualize runtime task dependency graphs and control task scheduling through a graphical interface. It integrates with the Ayudame library and StarSs runtime to provide real-time debugging, task state monitoring, and dynamic control over execution order and thread behavior, significantly improving the debugging experience for irregular, data-dependent parallel workloads.
We present the program Temanejo, a debugger for task based parallelisation models such as StarSs. The challenge in debugging StarSs applications lies in the fact that tasks are scheduled at runtime, i.e dynamically in accordance to the data dependencies between them. Our tool assists the programmer in the debugging process by visualising the task dependency graph and allowing to control the scheduling of tasks. The toolset consists of the library Ayudame which communicates with the StarSs runtime on one side and of the debugger Temanejo on the other side which communicates with Ayudame. Temanejo provides a graphical user interface with which the application can be analysed and controlled.
Motivation & Objective
- To address the challenge of debugging task-based parallel programs where task scheduling is dynamic and data-dependent, making traditional debugging techniques ineffective.
- To provide developers with real-time insight into task execution flow, dependency relationships, and runtime states in data-parallel applications.
- To enable interactive control over task scheduling, including pausing, prioritizing, blocking, and restarting tasks during execution.
- To support performance analysis by visualizing task durations and load balancing issues through color-coded task nodes.
- To integrate seamlessly with existing StarSs-based frameworks like SMPSs and OMPSs without requiring changes to application code.
Proposed method
- The debugger uses the Ayudame library as a communication bridge between the StarSs runtime and the Temanejo GUI, enabling real-time data exchange.
- Temanejo visualizes the evolving task dependency graph with color-coded nodes and edges to represent task status, execution thread, function, and data dependencies.
- It supports dynamic control via the GUI, including pausing, prioritizing, and blocking specific tasks or functions.
- The tool allows launching gdb at any point during execution, either globally or at a specified function, enabling hybrid debugging with standard tools.
- Task duration information is collected and displayed in color to help identify performance bottlenecks or load imbalance.
- Future extensions include dynamic thread count adjustment, configurable execution orders, and support for multiple debuggers beyond gdb.
Experimental results
Research questions
- RQ1How can a debugger effectively visualize the dynamic, data-dependent task scheduling inherent in task-based parallel models?
- RQ2What interactive controls are necessary to enable developers to inspect and manipulate task execution order during runtime?
- RQ3How can debugging tools support performance analysis by exposing task duration and load distribution?
- RQ4What mechanisms enable seamless integration between a debugger and a runtime system like StarSs without modifying application code?
- RQ5How can existing debugging tools like gdb be integrated into a visual, interactive debugging environment for task-based programs?
Key findings
- Temanejo successfully visualizes the dynamic construction and execution of task dependency graphs in real time, providing developers with immediate insight into program structure and flow.
- The tool enables interactive manipulation of task scheduling, including pausing, prioritizing, and blocking tasks, which is essential for diagnosing race conditions and logic errors.
- Color-coded task nodes and edges effectively convey information about task status, execution thread, function, and data dependencies, improving visual debugging efficiency.
- Task duration visualization, though approximate due to instrumentation overhead, proved to be a powerful heuristic for identifying performance bottlenecks and load imbalance.
- Integration with gdb allows developers to switch to line-by-line debugging at any point, combining high-level overview with low-level inspection.
- The tool is extensible and actively developed, with planned features including dynamic thread count adjustment, configurable execution orders, and support for multiple debuggers.
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.