Files
TheRock/rocm-systems/projects/rocprofiler-compute/sample/membw_analysis_test_suite
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00
..

L2/L1 Bottleneck Workloads

HIP workloads targeting MI350 L2 backpressure and L1 stall metrics (≥10%).

Workload Target

+--------------------------+--------------------------------------------------------------------------------------------------+-------------------------------------------+ | Workload | Baseline (intended effect) | Optimized (intended effect) | +--------------------------+--------------------------------------------------------------------------------------------------+-------------------------------------------+ | gl2_backpressure | Uncoalesced + large stride -> L2 misses -> fill LFIFO -> TCP stalls. | Shared mem, minimal L2 traffic. | +--------------------------+--------------------------------------------------------------------------------------------------+-------------------------------------------+ | L1_stall_microbenchmark | Many scattered loads/stores -> VMEM issues many commands; TA/GL1 can't consume them fast enough | Shared memory reduces VMEM FIFO pressure. | | | -> VMEM FIFO fills. | | +--------------------------+--------------------------------------------------------------------------------------------------+-------------------------------------------+ | utcl1_stall | Rapid page hopping (>32 pages) -> exceed UTCL1 entries -> in-flight stall. | Stay in one page. | +--------------------------+--------------------------------------------------------------------------------------------------+-------------------------------------------+ | ta_tcp_stall | Random access, TA waits for TCP. | Sequential access, TCP serves TA quickly. | +--------------------------+--------------------------------------------------------------------------------------------------+-------------------------------------------+

Note

Note: Above workloads are still WIP, the profiled result may not reflect the intended results.

Target Metrics

  • gl2_backpressure: TCP_TCR_TCP_STALL_CYCLES / tcp_busy
  • utcl1_stall: TCP_UTCL1_STALL_INFLIGHT_MAX / tcp_busy

Build

hipcc -g <hip workload> -o <output>
# example: hipcc -g gl2_backpressure.hip -o gl2_backpressure

Profiling

# Note: --no-roof is optional and skips the
# benchmarking that is unrelated to the our purpose

# baseline profile
rocprof-compute profile -n gl2_backpressure_baseline --membw-analysis --no-roof -- ./gl2_backpressure
# optimized profile
rocprof-compute profile -n gl2_backpressure_optimized --membw-analysis --no-roof -- ./gl2_backpressure opt

Analyzing

# baseline profile
rocprof-compute analyze -p <path to profiled result> --membw-analysis