Skip to main content
QUICK REVIEW

[Paper Review] MGSim + MGMark: A Framework for Multi-GPU System Research

Yifan Sun, Trinayan Baruah|arXiv (Cornell University)|Oct 15, 2018
Parallel Computing and Optimization TechniquesComputer Science28 references4 citations
TL;DR

This paper presents MGSim, a cycle-accurate, modular, and parallel multi-GPU simulator based on AMD's GCN3 ISA, and MGMark, a benchmark suite targeting unified memory and cross-GPU access patterns. It achieves 3.5× and 2.5× speedup in function emulation and architectural simulation with 4 CPU cores while maintaining 94.5% average accuracy compared to real hardware, enabling scalable and accurate evaluation of multi-GPU system designs.

ABSTRACT

The rapidly growing popularity and scale of data-parallel workloads demand a corresponding increase in raw computational power of GPUs (Graphics Processing Units). As single-GPU systems struggle to satisfy the performance demands, multi-GPU systems have begun to dominate the high-performance computing world. The advent of such systems raises a number of design challenges, including the GPU microarchitecture, multi-GPU interconnect fabrics, runtime libraries and associated programming models. The research community currently lacks a publically available and comprehensive multi-GPU simulation framework and benchmark suite to evaluate multi-GPU system design solutions. In this work, we present MGSim, a cycle-accurate, extensively validated, multi-GPU simulator, based on AMD's Graphics Core Next 3 (GCN3) instruction set architecture. We complement MGSim with MGMark, a suite of multi-GPU workloads that explores multi-GPU collaborative execution patterns. Our simulator is scalable and comes with in-built support for multi-threaded execution to enable fast and efficient simulations. In terms of performance accuracy, MGSim differs $5.5\%$ on average when compared against actual GPU hardware. We also achieve a $3.5 imes$ and a $2.5 imes$ average speedup in function emulation and architectural simulation with 4 CPU cores, while delivering the same accuracy as the serial simulation. We illustrate the novel simulation capabilities provided by our simulator through a case study exploring programming models based on a unified multi-GPU system (U-MGPU) and a discrete multi-GPU system (D-MGPU) that both utilize unified memory space and cross-GPU memory access. We evaluate the design implications from our case study, suggesting that D-MGPU is an attractive programming model for future multi-GPU systems.

Motivation & Objective

  • To address the lack of a publicly available, scalable, and accurate multi-GPU simulation framework for system-level research.
  • To enable detailed microarchitectural analysis of multi-GPU systems, particularly focusing on memory management, interconnects, and runtime systems.
  • To support the evaluation of emerging programming models such as unified vs. discrete multi-GPU systems with unified memory.
  • To provide a modular, extensible, and high-performance simulation infrastructure that supports parallel execution and accurate timing modeling.
  • To deliver a comprehensive benchmark suite (MGMark) that captures realistic multi-GPU collaborative execution patterns.

Proposed method

  • MGSim is a cycle-accurate, execution-driven simulator built on AMD's GCN3 instruction set architecture, supporting full architectural modeling of multi-GPU systems.
  • The simulator employs a modular, component-based design with strong state encapsulation to enable extensibility and reduce codebase coupling.
  • MGSim uses a novel parallelization strategy that enables scalable speedup without sacrificing simulation accuracy, achieving 3.5× and 2.5× speedup with 4 CPU cores.
  • MGMark is a benchmark suite that captures diverse multi-GPU execution patterns, including data and kernel mapping, memory access, and synchronization across GPUs.
  • The framework supports unified memory space and cross-GPU memory access, enabling realistic modeling of modern GPU programming models.
  • MGSim is validated against real GPU hardware using microbenchmarks and full applications, achieving an average accuracy of 94.5% (5.5% deviation).

Experimental results

Research questions

  • RQ1How does a cycle-accurate, multi-GPU simulator with high performance and modularity enable more effective research on emerging GPU system designs?
  • RQ2What are the performance and scalability trade-offs between discrete multi-GPU (D-MGPU) and unified multi-GPU (U-MGPU) systems under unified memory and cross-GPU access?
  • RQ3How do memory access patterns and inter-GPU communication impact overall system performance in multi-GPU workloads?
  • RQ4To what extent can parallel simulation techniques maintain accuracy while significantly improving simulation throughput?
  • RQ5What design implications arise from exposing low-level GPU control to programmers in a multi-GPU environment?

Key findings

  • MGSim achieves 94.5% average accuracy compared to real GPU hardware, with a mean deviation of 5.5% across tested workloads.
  • The simulator delivers a 3.5× speedup in function emulation and a 2.5× speedup in architectural simulation when using 4 CPU cores, without sacrificing accuracy.
  • The case study shows that D-MGPU systems outperform U-MGPU systems in terms of cross-GPU traffic and interconnect efficiency when using unified memory.
  • Exposing a true multi-GPU interface to programmers enables better performance control, but requires careful data and kernel mapping to avoid excessive inter-GPU traffic.
  • The modular and composable design of MGSim enables efficient system modifications and community contributions, overcoming limitations of monolithic simulators.
  • MGMark effectively captures diverse multi-GPU execution patterns, including data locality, load balancing, and synchronization, making it suitable for evaluating modern multi-GPU workloads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.