From 9e6b29324941b8612520e3cf0d97170c8cf09942 Mon Sep 17 00:00:00 2001 From: colramos-amd Date: Thu, 7 Mar 2024 15:48:26 -0600 Subject: [PATCH] Remove doc references to deprecated --list-kernels option Signed-off-by: colramos-amd --- src/docs-2.x/analysis.md | 51 ++++++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/src/docs-2.x/analysis.md b/src/docs-2.x/analysis.md index a3cfd26661..18c22e0d0e 100644 --- a/src/docs-2.x/analysis.md +++ b/src/docs-2.x/analysis.md @@ -257,9 +257,9 @@ Analyze $ omniperf analyze -p workloads/vcopy/MI200/ ``` -- List top kernels +- List top kernels and dispatches ```shell - $ omniperf analyze -p workloads/vcopy/MI200/ --list-kernels + $ omniperf analyze -p workloads/vcopy/MI200/ --list-stats ``` - List metrics @@ -278,42 +278,47 @@ Analyze - Filter kernels - First, list the top kernels in your application using `--list-kernels`. + First, list the top kernels in your application using `--list-stats`. ```shell-session - $ omniperf analyze -p workloads/vcopy/MI200/ --list-kernels + $ omniperf analyze -p workloads/vcopy/MI200/ --list-stats - -------- - Analyze - -------- - + Analysis mode = cli + [analysis] deriving Omniperf metrics... -------------------------------------------------------------------------------- - Detected Kernels - ╒════╤══════════════════════════════════════════════════════════╕ - │ │ KernelName │ - ╞════╪══════════════════════════════════════════════════════════╡ - │ 0 │ vecCopy(double*, double*, double*, int, int) [clone .kd] │ - ╘════╧══════════════════════════════════════════════════════════╛ + Detected Kernels (sorted decending by duration) + ╒════╤══════════════════════════════════════════════╕ + │ │ Kernel_Name │ + ╞════╪══════════════════════════════════════════════╡ + │ 0 │ vecCopy(double*, double*, double*, int, int) │ + ╘════╧══════════════════════════════════════════════╛ + + -------------------------------------------------------------------------------- + Dispatch list + ╒════╤═══════════════╤══════════════════════════════════════════════╤══════════╕ + │ │ Dispatch_ID │ Kernel_Name │ GPU_ID │ + ╞════╪═══════════════╪══════════════════════════════════════════════╪══════════╡ + │ 0 │ 0 │ vecCopy(double*, double*, double*, int, int) │ 0 │ + ╘════╧═══════════════╧══════════════════════════════════════════════╧══════════╛ ``` Second, select the index of the kernel you would like to filter (i.e. __vecCopy(double*, double*, double*, int, int) [clone .kd]__ at index __0__). Then, use this index to apply the filter via `-k/--kernels`. ```shell-session - $ omniperf -p workloads/vcopy/mi200/ -k 0 + $ omniperf analyze -p workloads/vcopy/MI200/ -k 0 - -------- - Analyze - -------- - + Analysis mode = cli + [analysis] deriving Omniperf metrics... -------------------------------------------------------------------------------- - 0. Top Stat + 0. Top Stats + 0.1 Top Kernels ╒════╤══════════════════════════════════════════╤═════════╤═══════════╤════════════╤══════════════╤════════╤═════╕ - │ │ KernelName │ Count │ Sum(ns) │ Mean(ns) │ Median(ns) │ Pct │ S │ + │ │ Kernel_Name │ Count │ Sum(ns) │ Mean(ns) │ Median(ns) │ Pct │ S │ ╞════╪══════════════════════════════════════════╪═════════╪═══════════╪════════════╪══════════════╪════════╪═════╡ - │ 0 │ vecCopy(double*, double*, double*, int, │ 1 │ 20800.00 │ 20800.00 │ 20800.00 │ 100.00 │ * │ - │ │ int) [clone .kd] │ │ │ │ │ │ │ + │ 0 │ vecCopy(double*, double*, double*, int, │ 1.00 │ 18560.00 │ 18560.00 │ 18560.00 │ 100.00 │ * │ + │ │ int) │ │ │ │ │ │ │ ╘════╧══════════════════════════════════════════╧═════════╧═══════════╧════════════╧══════════════╧════════╧═════╛ ... ... ```