This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
products:sbc:vim3:npu:npu-performance [2023/09/12 03:55] sravan [Introduction] |
products:sbc:vim3:npu:npu-performance [2023/09/12 04:07] sravan |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== NPU Performance Analysis ====== | ====== NPU Performance Analysis ====== | ||
- | Obtain NPU performance | + | Obtain NPU performance |
===== Preparation ===== | ===== Preparation ===== | ||
Line 7: | Line 7: | ||
==== Upgrade The System ==== | ==== Upgrade The System ==== | ||
- | Please refer to [[../install-os/boot-into-upgrade-mode|Boot into Upgrade Mode]]. | + | Please refer to the [[../configurations/upgrade-system |
==== Reload the Driver Module ==== | ==== Reload the Driver Module ==== | ||
Line 23: | Line 23: | ||
``` | ``` | ||
- | ===== Get Interface Data ===== | + | ==== Set environment variables |
- | + | ||
- | ==== Set Environments | + | |
```shell | ```shell | ||
Line 31: | Line 29: | ||
$ export VIV_VX_DEBUG_LEVEL=1 | $ export VIV_VX_DEBUG_LEVEL=1 | ||
``` | ``` | ||
+ | |||
+ | ===== Fetch diagnostic data of the NPU ===== | ||
==== Run Model ==== | ==== Run Model ==== | ||
- | Use inception as a example | + | Here is a sample using the [[npu-prebuilt-demo-usage| |
```shell | ```shell | ||
Line 81: | Line 81: | ||
``` | ``` | ||
- | ===== Interface Data Description ===== | + | ==== Diagnostic data description |
- | + | ||
- | ==== Bandwidth Data Description | + | |
- | - '' | + | ^ Name ^ Description |
- | - '' | + | | **TOTAL_READ_BANDWIDTH** | Total read bandwidth |
- | - '' | + | | **TOTAL_WRITE_BANDWIDTH**| Total write bandwidth |
- | | + | | **AXI_READ_BANDWIDTH** |
- | - '' | + | | **AXI_WRITE_BANDWIDTH** |
- | | + | | **DDR_READ_BANDWIDTH** |
+ | | **DDR_WRITE_BANDWIDTH** | ||
==== Calculate Usage Rate ==== | ==== Calculate Usage Rate ==== | ||
- | - '' | + | * '' |
- | | + | |
- | Usage rate =('' | + | Usage rate = ('' |