Performance Analysis and Efficient Execution on Systems with multi-core CPUs, GPUs and MICs

George Teodoro, Tahsin Kurc, Guilherme Andrade, Jun Kong, Renato Ferreira, Joel SaltzarXiv 2015

TL;DR

This paper presents a comparative performance study of multi-core CPUs, GPUs, and Intel Xeon Phi (Many Integrated Core - MIC) accelerators using a microscopy image analysis pipeline. By analyzing how data access patterns dictate architectural efficiency, the authors introduce PAMS, a novel performance-aware scheduler that yields up to a 1.39× speedup over classic scheduling algorithms in heterogeneous environments.

What Problem Does This Paper Address?

Modern high-performance computing increasingly relies on hybrid nodes that combine traditional multi-core CPUs with diverse hardware accelerators. However, optimizing complex workflows on these systems is a massive headache.

An application pipeline often consists of multiple stages—some have regular, predictable data access patterns, while others are highly irregular or rely heavily on atomic operations. Because different hardware architectures handle these patterns differently, an operation might fly on a GPU but crawl on a MIC, or vice versa. Existing task schedulers often fail to account for this variability or rely too heavily on perfect execution-time estimates, leading to sub-optimal hardware utilization.

Methods

The authors break down a microscopy image analysis workflow into fine-grained operations and implement them across CPUs, GPUs, and MICs.

Fig. 1. Detailed representation of the Segmentation and Feature Computation stages of our example microscopy image analysis applica- tion. These stages are composed of several compute intensive finer-grain operations, which may be naturally represented as a hierarchical computation dataflow.

To orchestrate execution on hybrid nodes containing all three device types, they propose two new performance-aware scheduling strategies:

  1. PADAS (Performance-Aware Dequeue Adapted Scheduler): Uses a single dual-ended queue sorted by expected speedup. MIC threads pull tasks from the head (where MIC speedup is highest), GPUs pull from the tail, and CPUs consume tasks from the middle.
  2. PAMS (Performance-Aware Multiqueue Scheduler): Maintains separate queues for each device type. While GPU and MIC queues are sorted by descending speedup, the CPU queue is sorted in ascending order of the maximum accelerator speedup. This smartly assigns the CPU tasks that accelerators are bad at handling.

Additionally, the authors evaluate MIC-specific optimizations, such as thread affinity strategies (Compact, Balanced, and Scatter), to establish an efficient baseline.

Datasets

The methods were evaluated using a real-world dataset of high-resolution brain tumor tissue slide images obtained from The Cancer Genome Atlas (TCGA) repository. To enable parallel processing, these massive whole-slide images were partitioned into 4K × 4K pixel tiles, resulting in datasets of up to 68,284 tiles (3.27 TB of uncompressed data) for large-scale scaling tests.

Key Insights and Ideas

  • Data Access Dictates Hardware Choice: The Intel Xeon Phi (MIC) performs comparably to, or sometimes better than, a GPU for operations with regular data access patterns (e.g., spatial sweeps or compute-bound tasks like Pixel Statistics).
  • The MIC's Irregular Bottleneck: For irregular data access patterns (e.g., Distance Transform), GPUs significantly outperform MICs. This is due to the MIC's lower memory bandwidth for random accesses, caused by heavy data traffic on its internal ring bus to maintain cache consistency.
  • Atomics Hurt the MIC: Operations relying heavily on atomic instructions (like Area Threshold) struggle on the MIC because it lacks support for vectorized atomic instructions, leading to thread serialization.
  • Rank Over Estimation: Schedulers that rely on the relative ranking of speedups (like PAMS) are far more robust to inaccurate performance estimates than traditional time-based schedulers like Heterogeneous Earliest Finish Time (HEFT). Even with a 100% injected estimation error, PAMS's performance remains virtually unaffected.

Key Results

  • Scheduler Performance: PAMS outperformed all other policies. It was at least 1.16× faster than HEFT in large decision spaces and up to 1.39× faster in configurations with small task windows.
  • Node-Level Speedup: In a hybrid node combining a CPU, GPU, and MIC, the coordinated execution managed by PAMS achieved a 2.2× speedup over a CPU-only baseline.
  • Scalability: The application scaled efficiently on a distributed cluster. It achieved over 90% efficiency in strong-scaling scenarios and maintained 84% efficiency when scaling up to 192 nodes (processing the full 3.27 TB dataset).

Limitations and Future Work

The primary limitation identified during large-scale cluster execution was the parallel storage I/O bottleneck. As the number of compute nodes scaled to 192, the shared file system struggled to serve the image tiles concurrently, which emerged as the main factor limiting weak scalability. The authors suggest that future work must focus on optimizing data staging and I/O pipelines to keep pace with the accelerated hybrid compute nodes.

Summary updated

BibTeX
@misc{teodoro2015performance,
  author = {George Teodoro and Tahsin Kurc and Guilherme Andrade and Jun Kong and Renato Ferreira and Joel Saltz},
  title = {{Performance Analysis and Efficient Execution on Systems with multi-core CPUs, GPUs and MICs}},
  year = {2015},
  eprint = {1505.03819},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1505.03819},
}
Figure