Note:
The following example commands are given with the assumption that the
AMDuProfSys binary is located at the CWD (current working directory) -- <Installed Directory>/bin/AMDPerf.
Linux-valid commands are given here. To run on Windows, the appropriate
executable path should be used (.\AMDuProfSys.exe , if located in CWD). Modify these according
to your relative path when using.
| Task Description | Command |
|---|---|
| Display all help |
./AMDuProfSys --help-all
|
| Default metrics (core, L3 and DF) system-wide collection for 100 s. |
AMDuProfSys -o default -a -d
100
|
Monitor the entire system to collect core events
defined in config files for 50 seconds and generate the profiled
metrics report. |
./AMDuProfSys --config core -a -d
50
|
| Launch the workload /tmp/scimark2 with core affinity set to core 0 and monitor that core and generate profile report. |
./AMDuProfSys --config core -C 0 —affinity 0 /
tmp/scimark2
|
| Monitor the entire system to collect raw data over 20 s and generate metric reports in a new folder /tmp/all for core, L3, DF, UMC and HSMP profile types. |
./AMDuProfSys --config core,l3,df,umc,hsmp -o
/ tmp/all -a -d 20
|
| Collect any user defined custom metrics from command line. |
./AMDuProfSys --metrics core/
BrMisPredExTime="(0x4300C3)/(0x4300C2)",core/
ratio="((BrMisPredExTime * 0x430076)/0x4300C0)"-d
20
|
| Time series profile data for core metrics (core 0-5) using Linux Perf with a logging interval of 1000 ms and set affinity of the workload (/tmp/scimark2) to core 0. |
./AMDuProfSys --config core -C 0-5 -I 1000
--use-linux-perf -T -o output --affinity 0
/tmp/scimark2
|
| Collect using custom config files and generate report in two steps. |
./AMDuProfSys collect --config data/0x17_0x3/
configs/core/core_config.yaml -C 0 -o sci_perf taskset -c 0
scimark2
To generate a report file
sci_perf.csv containing computed
metrics.
|
| Collect multiple metric-types using predefined config files and generate report (in 2 steps) |
|
| Collect core events with multiplexing interval set to 32 ms |
./AMDuProfSys --config core -a --mux-interval
32 -d 10
|