Loading...
Loading...
Compare original and translation side by side
rocprof-compute profile --helprocprof-compute analyze --helprocprof-compute profile --helprocprof-compute analyze --help| Source | Answers | Skill |
|---|---|---|
| Perfmon counters | How the architecture behaves: bandwidth, cache, occupancy, pipeline utilization | this skill, then |
| PC sampling | How the source code behaves: which instruction or line is hot and why it stalls | |
rocprof-compute-pc-sampling| Source | Answers | Skill |
|---|---|---|
| Perfmon counters | 架构如何运行:bandwidth、cache、occupancy、pipeline utilization | 此 skill,然后使用 |
| PC sampling | 源代码如何运行:哪条 instruction 或哪一行是热点,以及它为何 stall | |
rocprof-compute-pc-samplingcommand -v rocprof-computerocprof-compute analyze --debug-verify-deps--verify-deps--debug-verify-depsrocminfo
amd-smi listMarketing Namerocminfogfxsource <venv>/bin/activaterocprof-compute analyze --debug-verify-depscommand -v rocprof-computerocprof-compute analyze --debug-verify-deps--verify-deps--debug-verify-depsrocminfo
amd-smi listrocminfoMarketing Namegfxsource <venv>/bin/activaterocprof-compute analyze --debug-verify-depsrocprof-compute --specsROCm VersionGPU ModelGPU Archrocprof-compute --specsROCm VersionGPU ModelGPU Arch--name--namerocprof-compute profile --name <workload_name> --speed-of-light -k <kernel_name> -- <application> <args>-b sol--speed-of-light-kwavefrontspicu_pipe./workloads/<workload_name>/<gpu_model>/<rank>/--output-directory--name--overwriteHIP_VISIBLE_DEVICESROCR_VISIBLE_DEVICESSLURM_STEP_GPUSrocprof-compute profile --name <workload_name> --speed-of-light -k <kernel_name> -- <application> <args>-b sol--speed-of-light-kwavefrontspicu_pipe./workloads/<workload_name>/<gpu_model>/<rank>/--output-directory--name--overwriteHIP_VISIBLE_DEVICESROCR_VISIBLE_DEVICESSLURM_STEP_GPUSrocprof-compute --list-metricsrocprof-compute --list-metrics <alias>--list-blocks <gfx_arch>--list-metrics <gfx_arch>-b2.1.0--set <set_name>rocprof-compute profile --list-sets-k <kernel_name>-broof--iteration-multiplexing-krocprof-compute --list-metricsrocprof-compute --list-metrics <alias>--list-blocks <gfx_arch>--list-metrics <gfx_arch>-b2.1.0--set <set_name>rocprof-compute profile --list-sets-k <kernel_name>-broof--iteration-multiplexing-krocprof-compute analyze --path ./workloads/<name>/<gpu_model> --list-stats--pathprofiling_config.yaml--list-statsDetected Kernels (sorted descending by duration)Dispatch list-k-d--list-stats--output-format csvdbrocprof-compute analyze --path ./workloads/<name>/<gpu_model> -k 0-k-k gemmgemmrocprof-compute analyze --path ./workloads/<name>/<gpu_model> --list-stats--pathprofiling_config.yaml--list-statsDetected Kernels (sorted descending by duration)Dispatch list-k-d--list-stats--output-format csvdbrocprof-compute analyze --path ./workloads/<name>/<gpu_model> -k 0-k-k gemmgemmrocprof-compute analyze --path ./workloads/<name>/<gpu_model> -k 0 --speed-of-lightPercent of Peakrocprof-compute analyze --path ./workloads/<name>/<gpu_model> --list-metrics
rocprof-compute analyze --path ./workloads/<name>/<gpu_model> --list-metrics sol| Symptom in Speed-of-Light | Next step |
|---|---|
| Memory throughput near peak, low compute | the |
| Compute near peak, or unclear compute vs memory | the |
| Everything far below peak | |
| Question is about instructions, source lines, or stall reasons | the |
| Kernels come from PyTorch | the |
rocprof-compute analyze --path ./workloads/<name>/<gpu_model> -k 0 --speed-of-lightPercent of Peakrocprof-compute analyze --path ./workloads/<name>/<gpu_model> --list-metrics
rocprof-compute analyze --path ./workloads/<name>/<gpu_model> --list-metrics sol| Speed-of-Light 中的症状 | 下一步 |
|---|---|
| Memory throughput 接近峰值,但 compute 较低 | |
| Compute 接近峰值,或 compute 与 memory 的对比不明确 | |
| 所有指标都远低于峰值 | 使用 |
| 问题涉及 instructions、source lines 或 stall reasons | |
| Kernels 来自 PyTorch | |
rocprof-compute analyze --path ./workloads/<name>/<gpu_model> -k 0 -b wavefrontrocprof-compute analyze --path ./workloads/<name>/<gpu_model> -k 0 -b wavefrontundefinedundefined
There is no single stall panel. Stall counters sit in the block that owns the
hardware: LDS stalls in `lds`, cache stalls in `vl1d` and `l2`, fabric stalls
in `l2_per_channel`. Open the block the Speed-of-Light result points at, and
read what each counter means in the
[performance model](https://github.com/ROCm/rocm-systems/blob/d46f9b4416abca78eede7cbe8ed8c567010333c6/projects/rocprofiler-compute/docs/conceptual/performance-model.rst). Ground every
recommendation in a number you read from the report.
没有单一的 stall panel。Stall counters 位于负责相应硬件的 block 中:LDS stalls
位于 `lds`,cache stalls 位于 `vl1d` 和 `l2`,fabric stalls 位于
`l2_per_channel`。打开 Speed-of-Light 结果所指向的 block,并在
[performance model](https://github.com/ROCm/rocm-systems/blob/d46f9b4416abca78eede7cbe8ed8c567010333c6/projects/rocprofiler-compute/docs/conceptual/performance-model.rst)
中了解每个 counter 的含义。每项建议都应以报告中读取到的数值为依据。-n--normal-unitper_kernelper_waveper_cycleper_second-n--normal-unitper_kernelper_waveper_cycleper_second--pathrocprof-compute analyze \
--path ./workloads/baseline/<gpu_model> \
--path ./workloads/optimized/<gpu_model>--pathrocprof-compute analyze \
--path ./workloads/baseline/<gpu_model> \
--path ./workloads/optimized/<gpu_model>--output-formattxtcsvdb--output-name--output-formattxtcsvdb--output-name| Symptom | Likely cause |
|---|---|
| No workload data | |
| Empty or missing panels | those counters were not collected; re-profile |
| All metrics zero | kernel too short, or no dispatches were captured |
| No kernel ids | the application launched no GPU kernels |
| Roofline missing | not collected, or unsupported on this architecture |
| 症状 | 可能原因 |
|---|---|
| 没有 workload 数据 | |
| Panel 为空或缺失 | 未收集相应 counters;需要重新 profile |
| 所有 metrics 均为零 | kernel 运行时间过短,或未捕获到 dispatches |
| 没有 kernel ids | application 未启动任何 GPU kernels |
| Roofline 缺失 | 未收集,或此 architecture 不支持 |