Skip to main content
QUICK REVIEW

[Paper Review] Hierarchical Roofline Analysis: How to Collect Data using Performance Tools on Intel CPUs and NVIDIA GPUs

Charlene Yang|arXiv (Cornell University)|Sep 5, 2020
Parallel Computing and Optimization TechniquesComputer Science16 references14 citations
TL;DR

This paper presents a comprehensive, tool-agnostic methodology for collecting hierarchical Roofline performance data on Intel CPUs and NVIDIA GPUs using low-level performance tools like Intel Advisor, LIKWID, nvprof, and Nsight Compute. It enables detailed analysis of memory hierarchy utilization and arithmetic intensity across multiple cache levels, offering a flexible alternative to vendor-integrated tools with consistent, reproducible results across different tools and GPU/CPU architectures.

ABSTRACT

This paper surveys a range of methods to collect necessary performance data on Intel CPUs and NVIDIA GPUs for hierarchical Roofline analysis. As of mid-2020, two vendor performance tools, Intel Advisor and NVIDIA Nsight Compute, have integrated Roofline analysis into their supported feature set. This paper fills the gap for when these tools are not available, or when users would like a more customized workflow for certain analysis. Specifically, we will discuss how to use Intel Advisor, RRZE LIKWID, Intel SDE and Intel Amplifier on Intel architectures, and nvprof, Nsight Compute metrics, and Nsight Compute section files on NVIDIA architectures. These tools will be used to collect information for as many memory/cache levels in the memory hierarchy as possible in order to provide insights into application's data reuse and cache locality characteristics.

Motivation & Objective

  • To provide a flexible, customizable alternative to vendor-integrated Roofline tools like Intel Advisor and NVIDIA Nsight Compute for hierarchical performance analysis.
  • To enable detailed data collection across multiple memory hierarchy levels (L1, L2, HBM, etc.) on both Intel CPUs and NVIDIA GPUs.
  • To support researchers and developers who lack access to commercial tools or require fine-grained control over performance data collection workflows.
  • To validate the consistency and accuracy of Roofline results across different performance tools and metric sets on representative hardware (Knights Landing and V100 GPU).

Proposed method

  • Utilized Intel Advisor, RRZE LIKWID, Intel SDE, and Intel VTune for performance data collection on Intel Knights Landing CPUs.
  • Employed nvprof, Nsight Compute 2019, and Nsight Compute 2020 with custom metric sets to collect low-level performance counters on NVIDIA V100 GPUs.
  • Collected metrics for arithmetic intensity (FLOPs/Byte), GFLOP/s throughput, and memory traffic across L1, L2, and HBM levels using hardware performance counters.
  • Mapped performance counters to Roofline model components: FLOP counts from instruction execution metrics and data movement from memory access counters.
  • Used a mini-application (General Plasmon Pole) from the BerkeleyGW codebase to validate data collection workflows on real HPC workloads.
  • Standardized metric sets across tools (e.g., sm__cycles_elapsed, l1tex__t_sectors_pipe_lsu_mem_global_op_ld) to ensure cross-tool consistency in Roofline results.

Experimental results

Research questions

  • RQ1Can hierarchical Roofline analysis be effectively performed using open-source and low-level performance tools when vendor tools are unavailable?
  • RQ2How consistent are Roofline results when using different performance tools (e.g., nvprof vs. Nsight Compute 2019 vs. Nsight Compute 2020) on the same GPU workload?
  • RQ3To what extent do tools like LIKWID and Intel SDE provide accurate and granular data for multi-level cache analysis compared to full-featured tools?
  • RQ4Can a simplified metric set in Nsight Compute 2020 produce results comparable to more detailed metric sets in earlier versions?
  • RQ5How do performance characteristics (arithmetic intensity, GFLOP/s) vary across memory hierarchy levels (L1, L2, HBM) in a real HPC kernel?

Key findings

  • The hierarchical Roofline model can be successfully implemented using a range of performance tools beyond Intel Advisor and NVIDIA Nsight Compute, providing flexibility for diverse deployment environments.
  • Consistent Roofline results were observed across nvprof, Nsight Compute 2019, and Nsight Compute 2020, with marginal differences in arithmetic intensity and GFLOP/s throughput.
  • LIKWID enabled low-overhead profiling of memory hierarchy characteristics, though with potential inaccuracies due to lack of vector-length and instruction-type differentiation.
  • Intel SDE and VTune provided detailed simulation and sampling data, but with higher profiling overhead than LIKWID.
  • NVIDIA’s Nsight Compute 2020 introduced a streamlined metric set that produced results equivalent to more complex metric sets, enabling easier integration into existing workflows.
  • The mini-application (GPP) exhibited similar arithmetic intensity and performance characteristics across L1, L2, and HBM levels on the V100 GPU, indicating strong data reuse and efficient memory access patterns.

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.