Abstract
Graphics Processing Units (GPUs) have been widely used to accelerate artificial intelligence, physics simulation, medical imaging, and information visualization applications. To improve GPU performance, GPU hardware designers need to identify performance issues by inspecting a huge amount of simulator-generated traces. Visualizing the execution traces can reduce the cognitive burden of users and facilitate making sense of behaviors of GPU hardware components. In this paper, we first formalize the process of GPU performance analysis and characterize the design requirements of visualizing execution traces based on a survey study and interviews with GPU hardware designers. We contribute data and task abstraction for GPU performance analysis. Based on our task analysis, we propose Daisen, a framework that supports data collection from GPU simulators and provides visualization of the simulator-generated GPU execution traces. Daisen features a data abstraction and trace format that can record simulator-generated GPU execution traces. Daisen also includes a web-based visualization tool that helps GPU hardware designers examine GPU execution traces, identify performance bottlenecks, and verify performance improvement.
Introduction: The Challenge of GPU Trace Analysis
Modern GPU design relies heavily on high-fidelity simulators to test architectural innovations before physical fabrication. These simulators generate "execution traces"—highly detailed logs of every event occurring within the hardware. However, even a few milliseconds of simulated time can produce gigabytes of data, presenting two major challenges:
- Scale and Complexity: GPUs are massively parallel, containing thousands of components like Compute Units, caches, and memory controllers performing tasks simultaneously.
- Conceptual Gap: Existing tools often rely on software-centric abstractions like call graphs, which fail to show how a software instruction physically moves through hardware structures.
Without specialized tools, designers are often forced to manually search through text files, a process that is slow, error-prone, and cognitively exhausting.
The Daisen Framework
Daisen was developed using a user-centered design approach, informed by a survey of 37 hardware designers and five in-depth interviews to formalize the requirements for GPU trace visualization.
Hierarchical Task Abstraction
A core innovation of Daisen is modeling execution as a tree of "tasks" rather than a flat list of events. For example, a "Kernel Launch" is a parent task containing "Work-groups," which contain "Wavefronts," which eventually trigger "Memory Requests." This hierarchy allows designers to navigate from high-level hotspots down to sub-nanosecond execution details.
Multi-Perspective Visualization
Daisen provides three primary views to support the analysis workflow:
- Overview Panel: Uses "small multiples" to show key metrics like buffer pressure and request latency across all hardware components simultaneously.
- Component View: A Gantt-like chart that uses a custom "up-floating" layout algorithm to stack concurrent tasks efficiently, showing hardware utilization over time.
- Task View: Allows users to navigate the hierarchy, tracing a specific bottlenecked task back to its root cause in another component.
Key Insights and Results
By evaluating Daisen using traces from the MGPUSim simulator, the authors identified several critical insights for hardware design:
- Hardware-Software Mapping: Daisen bridges software concepts (instructions) with hardware concepts (components), allowing designers to see exactly which software tasks are occupying a busy hardware unit.
- Correlation via Dual Y-Axes: By plotting two metrics (e.g., "Buffer Pressure" vs. "Request Completion Rate") on the same chart, Daisen makes it easy to see correlations, such as a cache becoming a bottleneck because its internal buffers are full.
- Identifying Hidden Bottlenecks: In a case study, a domain expert used Daisen to discover that a low-performing design was limited by the Command Processor dispatch speed. Doubling this speed achieved a 1.16x total execution speedup.
- User Success: In an evaluation study, 9 out of 10 designers successfully identified the primary performance bottleneck in a Matrix Transpose benchmark using Daisen, noting that the visual clues were far more intuitive than traditional text-based debugging.
Limitations and Future Work
While effective, Daisen currently lacks explicit visualization for on-chip network traffic and does not yet support side-by-side comparisons of different hardware configurations. Future work will focus on improving color consistency during navigation and implementing heuristic-based bottleneck detection to assist non-expert users.
The open-sourced implementation of Daisen can be found at gitlab.com/akita/vis.
Summary updated