AMD ROCprofiler-SDK adds PC Sampling profiling in ROCm 6.4

rocm.blogs.amd.com17 min read

The ROCprofiler-SDK in AMD ROCm 6.4 and later introduces PC Sampling, a performance profiling capability that provides instruction- and source-line-level visibility into GPU execution hotspots on precompiled binaries without requiring manual code instrumentation. It offers two complementary methods: a software-based host-trap approach for initial time-based hotspot identification, and a stochastic hardware-based approach that captures instruction types and stall reasons like WAITCNT. In a worked GEMM example, the profiling tools successfully guided an optimization from a naive fetch-bound kernel to an LDS-tiled variant that achieved approximately a 3x speedup. Open article →